public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Creating a LFS system with Portage
@ 2006-09-18 15:05 Alon Keren
  2006-09-18 16:16 ` Hans-Werner Hilse
  2006-09-18 16:44 ` Alan McKinnon
  0 siblings, 2 replies; 8+ messages in thread
From: Alon Keren @ 2006-09-18 15:05 UTC (permalink / raw
  To: gentoo-user

Hi,

I'm considering using Portage to build a Linux From Scratch system
(LFS basically means building a completely customized Linux machine,
using a toolchain).
The little documentation online regarding such a feat, along with my
little experience with Portage, means that I would have to go
knee-deep (in creating ebuilds) before even knowing if it is feasible,
so I thought I'd ask here for some insight.

I noticed that the Catalyst project deals with toolchain building, but
it is Gentoo-centric, and with virtually no documentation.
I also noticed that Portage allows defining the ROOT environment
variable (in '/etc/make.conf') in order "to  specify  the  target
root  filesystem to be used for merging packages or ebuilds". I wonder
if emerging this way is enough to build a runnable OS, or if there are
special prerequisites the host system (aside from running emerge) or
destination file-system must meet.

Thanks in advance,
  Alon

PS.

Please CC me your replies as I'm not subscribed to messages from this list
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <6WsV4-8eP-11@gated-at.bofh.it>]
* Re: [gentoo-user] Creating a LFS system with Portage
@ 2006-09-19 13:21 Alon Keren
  2006-09-19 19:54 ` Daniel da Veiga
  2006-09-19 20:33 ` Richard Fish
  0 siblings, 2 replies; 8+ messages in thread
From: Alon Keren @ 2006-09-19 13:21 UTC (permalink / raw
  To: gentoo-user

Alan McKinnon wrote:
> I'm not sure why you want to do this or what your line of
> reasoning is. A stage 1 gentoo install is very similar to
> building LFS, except that you don't have to type './configure
> && make && sudo make install' 300 times. Well, conceptually
> similar at least.
>
> The whole point of LFS is to do it by hand and see how it all
> works at an even lower level than gentoo provides. You could
> use portage to automate the LFS build process, but then you end
> up with essentially a clone of gentoo. I say this as someone
> who has built an LFS as a learning exercise then moved on to
> gentoo for pragmatic reasons.
>
> Perhaps if you explained why you want to try this and especially
> what you want to accomplish, then we can advise you better.
>

My aim is to have the ability to regularly build and maintain
completely customized Linux systems. I simply don't want to be
dependent - at any stage - on the whims or habits of a distribution.
While LFS allows me to build a completely customized Linux system, it
takes, as you say, a lot of time and effort to build a single one.
Also, it offers nothing in the sense of package-management.
So, what I'm looking for is something to automate the LFS
build-process and to do it under some system of package-management.
Portage seemls likely to meet those needs.

>From what I read about stage1 and stage2, they both come as is, which
is somewhat problematic for my needs (for examle, if I want to use one
version of gcc instead of another). Even if stage1 is used 'out of the
box', some mechanism should be in place in order to build a new system
on a chroot environment, no?

The ROOT variable is probably a major part of the solution, but is it
enough? I've also found '/usr/portage/scripts/bootstrap.sh', which
seems suspiciously relevant, but comes with little external
documentation.

>
> > Please CC me your replies as I'm not subscribed to messages
> > from this list
>
> Nope. Asking that is exceptionally rude. I wade through 200+
> messages per day looking for places I can assist others. The
> least you can do is subscribe to the list like everyone else
> (and how did you manage to post without a subscription?), and
> download the same looking for replies to your question.
> Besides, the answers you get might help someone else.

I'm sorry that you find my request rude. I would rather not go through
200 messages every day if I could help it, and I personally don't find
it too troublesome to add an address to the CC line. Replying to the
list and having me as CC will obviously not prevent others to take
place in the discussion or read it later on as reference.
At any case, I would look in online archives to search for any
messages which haven't reached me.

Alon


PS.

Please CC me your replies as I'm not subscribed to messages from this list
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-09-20  5:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-18 15:05 [gentoo-user] Creating a LFS system with Portage Alon Keren
2006-09-18 16:16 ` Hans-Werner Hilse
2006-09-18 16:44 ` Alan McKinnon
     [not found] <6WsV4-8eP-11@gated-at.bofh.it>
     [not found] ` <6WutO-430-7@gated-at.bofh.it>
2006-09-19  1:06   ` Peter Wu
  -- strict thread matches above, loose matches on Subject: below --
2006-09-19 13:21 Alon Keren
2006-09-19 19:54 ` Daniel da Veiga
2006-09-19 20:33 ` Richard Fish
2006-09-20  5:24   ` Alon Keren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox