From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: * X-Spam-Status: No, score=1.1 required=5.0 tests=DATE_IN_PAST_12_24, DMARC_MISSING,FREEMAIL_FROM,FROM_LOCAL_DIGITS,FROM_LOCAL_HEX, FROM_STARTS_WITH_NUMS,INVALID_DATE,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=no autolearn_force=no version=4.0.0 Received: from mailout03.sul.t-online.com ([194.25.134.81]) by cvs.gentoo.org with esmtp (Exim 3.22 #1) id 14MZsX-0004DF-00 for gentoo-dev@gentoo.org; Sat, 27 Jan 2001 11:15:14 -0700 Received: from fwd07.sul.t-online.com by mailout03.sul.t-online.com with smtp id 14MZtG-0000vq-03; Sat, 27 Jan 2001 19:15:58 +0100 Received: from helios.bagwan (320095285153-0001@[62.155.143.168]) by fwd07.sul.t-online.com with smtp id 14MZtD-2KdArwC; Sat, 27 Jan 2001 19:15:55 +0100 Received: (qmail 6397 invoked by uid 0); 27 Jan 2001 20:57:07 -0000 Received: from sadchitananda2.bagwan (HELO gottinger.de) (achim@192.168.2.1) by helios.bagwan with SMTP; 27 Jan 2001 20:57:07 -0000 Message-ID: <3A7309C5.1E757FD5@gottinger.de> From: 320095285153-0001@t-online.de (Achim Gottinger) X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.14 i686) X-Accept-Language: en MIME-Version: 1.0 To: gentoo-dev@gentoo.org Subject: Re: [gentoo-dev] sys-build References: <3A72E971.21CE995B@gottinger.de> <20010127100337.C15584@cvs.gentoo.org> <3A730059.6C5E0FBC@gottinger.de> <20010127130035.A19292@bender.physast.uga.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Sender: 320095285153-0001@t-dialin.net Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0 Precedence: bulk Reply-To: gentoo-dev@gentoo.org X-Reply-To: achim@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux development list List-Unsubscribe: , List-Archive: Date: Sat Jan 27 11:16:01 2001 X-Original-Date: Sat, 27 Jan 2001 18:47:49 +0100 X-Archives-Salt: 06b77709-5ffa-4725-998a-dd73102dd7c9 X-Archives-Hash: c944aaa5954fffe7e2f0e8d890c6cb6d Andreas Schweitzer wrote: > On Sat, Jan 27, 2001 at 06:07:37PM +0100, Achim Gottinger wrote: > > drobbins@gentoo.org wrote: > > > > > On Sat, Jan 27, 2001 at 04:29:53PM +0100, Achim Gottinger wrote: > > > > Hi Guys, > > > > > > > > Today I build a working sys-build package that includes all the packages > > > > in sys-build, baselayout and portage. > > Sounds very interesting. > Where can I find it to try it out ? Not yet uploaded. > > > > > > This means we now have an environment to which we can chroot and build > > > > everithing else within. (I tested all sys-packages with success, so the > > > > rest should work too). > > > > I used exactly the same dir-layout as in the corresponding sys-* > > > > packages, so nothink statically linked remains > > > > after the corresponding packages are merged over. > > > > It is bigger(130MB, 28MB bzipped) than the 50MB I expectend it to be, > > > > maybe it can be reduced to around 100MB. :-/. > > > > What can we do now? > > > > > > > > 1. This build sytsem can be placed on a bootable cd together with the > > > > sources and the ebuild-tree. We can then > > > > unpack the build.tbz2 instead of the sys.tbz2 to our target partition, > > > > chroot there and build everything. > > > > > > OK, I'm very confused, so please explain how this works. Also, what > > me too :-) > > > > prevented us from just extracting sys.tbz2 and chrooting to /mnt/gentoo > > > and building everything? > > > > Ok, you can use sys.tbz2 too for that but build.tbz2 contains only the > > minimum required stuff, we can even > > place gcc and binutils in separate TARGET dependent packages, so it should be > > possible to make one cd that > > gives you the ability to build for all our intel targets. > > But /mnt/gentoo will contain the compiler etc. ? Yes you unpack build.tbz2 to /mnt/gentoo first. > And it will be overwritten ? Yes because build.tbz2 contains reduced to a minimum required and statically linked versions of packages . I used static linking because I want to be able to build the sys-build packages in one step without manually copying shared libraries from the system I build on. This offers the possibility to build you packages on every linux-system with a recent enogh kernel. You just have to unpack build.tbz2 to a temp dir mount the source-cd or a source-partition, chroot there and build as described below. > > Or at least some of the binaries in /mnt/gentoo ? > > > > And I assume that sys-build has nothing extra. For example, no star, no > > > iptables, etc? OK, I'm looking at /usr/portage/sys-build as I should > > > have done in the first place. Beautiful :) But please explain how the > > > build process is supposed to work (maybe by typing in example command-line > > > build install). > > > > Ok imagine you have a list of required packages that is sorted in order of > > dependencies > > and a filestructure on the cd that corresponds to that under /usr/portage > > > > --------------------------------------- > > Mkdir /mnt/gentoo/usr/portage > > mount /dev/cdrom /mnt/gentoo/usr/portage > > cp package-list /mnt/gentoo/root > > vi /mnt/gentoo/etc/make.conf > > chroot /mnt/gentoo > > source /etc/profile > > cd /usr/portage > > for i in 'cat /root/package-list'' > > do > > ebuild $i merge > > done > > --------------------------------------- > > A bit clearer. But again, this requires binaries in /mnt/gentoo > that you put there from unpacking build.tbz2 - right ? Yes > > > And there are no sources in build.tbz2 ? No > > Those should also be on the CDROM ? > Alternatively, include wget and rsync, and the sources can > be grabbed from the net (if somebody wants to get them from there). wget is on the boot-cd image, rsync not yes. All the required binaries and all kernel-network/nfs modules to set-up a network enviroment are on the bootcd-image. So it should not be to difficult to add that option too. achim~ > > > Still a newbie to gentoo - but it looks promising ! > > Cheers > Andreas > > -- > Department of Physics & Astronomy and Center for Simulational Physics > University of Georgia Phone ++1 (706) 542 5043 > Athens, GA 30602-2451 Fax ++1 (706) 542 2492 > USA http://dilbert.physast.uga.edu/~andy/ > > _______________________________________________ > gentoo-dev mailing list > gentoo-dev@gentoo.org > http://www.gentoo.org/mailman/listinfo/gentoo-dev