From owner-freebsd-emulation@FreeBSD.ORG Thu Sep 21 05:55:39 2006 Return-Path: X-Original-To: freebsd-emulation@freebsd.org Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8457416A403 for ; Thu, 21 Sep 2006 05:55:39 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id E341143D46 for ; Thu, 21 Sep 2006 05:55:37 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F41D.dip.t-dialin.net [84.165.244.29]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8L5W12v060481; Thu, 21 Sep 2006 07:32:02 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (webmail.Leidinger.net [192.168.1.102]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k8L5tWr7015521; Thu, 21 Sep 2006 07:55:32 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from psbru.cec.eu.int (psbru.cec.eu.int [158.169.131.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Thu, 21 Sep 2006 07:55:21 +0200 Message-ID: <20060921075521.635qo889nkkg80cs@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Thu, 21 Sep 2006 07:55:21 +0200 From: Alexander Leidinger To: John E Hein References: <20060918230348.I1031@ganymede.hub.org> <20060919022530.GA44301@lor.one-eyed-alien.net> <20060919092117.8asq42ers44w4wgg@webmail.leidinger.net> <20060920014127.GA52449@xor.obsecurity.org> <20060920102554.mxditjplogkscw44@webmail.leidinger.net> <20060920182156.GA83026@xor.obsecurity.org> <20060920212442.41c9ed0f@Magellan.Leidinger.net> <17681.39712.119019.147240@gromit.timing.com> In-Reply-To: <17681.39712.119019.147240@gromit.timing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1.3) / FreeBSD-7.0 X-Virus-Scanned: by amavisd-new Cc: freebsd-emulation@freebsd.org, Kris Kennaway Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2006 05:55:39 -0000 Quoting John E Hein (from Wed, 20 Sep 2006 13:48:48 -0600= ): > Alexander Leidinger wrote at 21:24 +0200 on Sep 20, 2006: > > Any ideas how to provide a chroot while not losing the fallthrough if > > not chrooted (and we try to identify other files/dirs where we want a > > fallthrough)? > > That smells a little like unionfs. Feel free to provide a description how to achieve this. I don't see it =20 at first look. And I don't like to mount stuff at installation time or =20 to request to mount something to get it working. > FWIW, I'd like to see a resurrection of linux_devtools or some > equivalent. Feel free to work on it. See below for your concerns regarding =20 automated building. > From a system building perspective, it seems difficult to build a > system in an automated way (as in a product) that needs to build apps > compiled for linux. > > We build packages in a FreeBSD chroot and pkg_add -p them into an > image hierarchy (which is then copied to the target media, typically a > Compact Flash). > > So, if we wanted to deploy a system that has linux_base and some > linux-compiled apps, we'd have to build the linux_base .tgz package in > our build chroot, pkg_delete it, then install linux_dist in order to > compile linux apps (there are some closed linux libs we need to link You don't need to delete the linux_base. linux_dist-gentoo-stage3 =20 installs into /usr/local/gentoo-stage3. As long as you do a chroot =20 into the linux directory, you will not have any problem. If you don't =20 do a chroot, you have to be careful to not pick up FreeBSD stuff. This =20 may or may not work. If you are very careful, you can do a =20 cross-build, but if you do real cross-development, you should really =20 do a chroot (else you have to verify in the worst case for every bug =20 that no FreeBSD stuff is picked up instead). > with otherwise we'd just compile the apps as freebsd). Maybe there's > an easier way, but if not, it would require changes to our build > infrastructure here. Feel free to describe how it looks currently. I try to get time to write up some docs in the wiki which someone from =20 doc@ can convert to docbook for the handbook. Feel free to nag me =20 about it after some days. Bye, Alexander. --=20 Air pollution is really making us pay through the nose. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137