Gentoo Archives: gentoo-dev

From: Andreas Schweitzer <andy@×××××××××××.edu>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] sys-build
Date: Sat, 27 Jan 2001 10:59:45
Message-Id: 20010127130035.A19292@bender.physast.uga.edu
In Reply to: Re: [gentoo-dev] sys-build by 320095285153-0001@t-online.de (Achim Gottinger)
1 On Sat, Jan 27, 2001 at 06:07:37PM +0100, Achim Gottinger wrote:
2 > drobbins@g.o wrote:
3 >
4 > > On Sat, Jan 27, 2001 at 04:29:53PM +0100, Achim Gottinger wrote:
5 > > > Hi Guys,
6 > > >
7 > > > Today I build a working sys-build package that includes all the packages
8 > > > in sys-build, baselayout and portage.
9
10 Sounds very interesting.
11 Where can I find it to try it out ?
12
13 > > > This means we now have an environment to which we can chroot and build
14 > > > everithing else within. (I tested all sys-packages with success, so the
15 > > > rest should work too).
16 > > > I used exactly the same dir-layout as in the corresponding sys-*
17 > > > packages, so nothink statically linked remains
18 > > > after the corresponding packages are merged over.
19 > > > It is bigger(130MB, 28MB bzipped) than the 50MB I expectend it to be,
20 > > > maybe it can be reduced to around 100MB. :-/.
21 > > > What can we do now?
22 > > >
23 > > > 1. This build sytsem can be placed on a bootable cd together with the
24 > > > sources and the ebuild-tree. We can then
25 > > > unpack the build.tbz2 instead of the sys.tbz2 to our target partition,
26 > > > chroot there and build everything.
27 > >
28 > > OK, I'm very confused, so please explain how this works. Also, what
29
30 me too :-)
31
32 > > prevented us from just extracting sys.tbz2 and chrooting to /mnt/gentoo
33 > > and building everything?
34 >
35 > Ok, you can use sys.tbz2 too for that but build.tbz2 contains only the
36 > minimum required stuff, we can even
37 > place gcc and binutils in separate TARGET dependent packages, so it should be
38 > possible to make one cd that
39 > gives you the ability to build for all our intel targets.
40
41 But /mnt/gentoo will contain the compiler etc. ?
42 And it will be overwritten ?
43 Or at least some of the binaries in /mnt/gentoo ?
44
45 > > And I assume that sys-build has nothing extra. For example, no star, no
46 > > iptables, etc? OK, I'm looking at /usr/portage/sys-build as I should
47 > > have done in the first place. Beautiful :) But please explain how the
48 > > build process is supposed to work (maybe by typing in example command-line
49 > > build install).
50 >
51 > Ok imagine you have a list of required packages that is sorted in order of
52 > dependencies
53 > and a filestructure on the cd that corresponds to that under /usr/portage
54 >
55 > ---------------------------------------
56 > Mkdir /mnt/gentoo/usr/portage
57 > mount /dev/cdrom /mnt/gentoo/usr/portage
58 > cp package-list /mnt/gentoo/root
59 > vi /mnt/gentoo/etc/make.conf
60 > chroot /mnt/gentoo
61 > source /etc/profile
62 > cd /usr/portage
63 > for i in 'cat /root/package-list''
64 > do
65 > ebuild $i merge
66 > done
67 > ---------------------------------------
68
69 A bit clearer. But again, this requires binaries in /mnt/gentoo
70 that you put there from unpacking build.tbz2 - right ?
71
72 And there are no sources in build.tbz2 ?
73 Those should also be on the CDROM ?
74 Alternatively, include wget and rsync, and the sources can
75 be grabbed from the net (if somebody wants to get them from there).
76
77 Still a newbie to gentoo - but it looks promising !
78
79 Cheers
80 Andreas
81
82 --
83 Department of Physics & Astronomy and Center for Simulational Physics
84 University of Georgia Phone ++1 (706) 542 5043
85 Athens, GA 30602-2451 Fax ++1 (706) 542 2492
86 USA http://dilbert.physast.uga.edu/~andy/

Replies

Subject Author
Re: [gentoo-dev] sys-build 320095285153-0001@t-online.de (Achim Gottinger)