From owner-freebsd-emulation@FreeBSD.ORG Fri Sep 22 09:23:57 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 41E1A16A403 for ; Fri, 22 Sep 2006 09:23:57 +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 8F7AA43D69 for ; Fri, 22 Sep 2006 09:23:55 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F5E0.dip.t-dialin.net [84.165.245.224]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k8M905pm067467; Fri, 22 Sep 2006 11:00:06 +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 k8M9Nlxb047190; Fri, 22 Sep 2006 11:23:47 +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; Fri, 22 Sep 2006 11:23:36 +0200 Message-ID: <20060922112336.fa6ckmswis8cssw0@webmail.leidinger.net> X-Priority: 3 (Normal) Date: Fri, 22 Sep 2006 11:23:36 +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> <20060921075521.635qo889nkkg80cs@webmail.leidinger.net> <17682.61115.942535.166114@gromit.timing.com> In-Reply-To: <17682.61115.942535.166114@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: Fri, 22 Sep 2006 09:23:57 -0000 Quoting John E Hein (from Thu, 21 Sep 2006 13:57:47 -0600= ): > Alexander Leidinger wrote at 07:55 +0200 on Sep 21, 2006: > > Quoting John E Hein (from Wed, 20 Sep 2006 =20 > 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 wan= t a > > > > fallthrough)? > > > > > > That smells a little like unionfs. > > > > Feel free to provide a description how to achieve this. I don't see > > it at first look. > > I haven't thought about it. It just sounded a bit like unionfs. Yes, but the pitfalls are in the details. > > And I don't like to mount stuff at installation time or to request > > to mount something to get it working. > > I agree. > Okay, I see that linux_base & linux_dist can co-exist. But I still see > some problems... > > I'd have to change our build to get the source code into the gentoo > chroot. Plus right now, the app is built as a FreeBSD port, so I'd You would have to do this (chroot) with the linux_base too. > have to get the FreeBSD ports infrastructure (and make(1)) working > under the gentoo chroot, too. That could be a lot of work. If you have a build machine which is just that, so you don't need the =20 linux_base for something else, you can try the =20 linux_base-gentoo-stage3 port instead for the generation of the =20 package. We do this for the linux_kdump port, but it only uses the =20 linuc-gcc to preprocess some files to get the linux-numbers instead of =20 the FreeBSD ones when using the FreeBSD-gcc to generate a FreeBSD =20 executable which is able to decode the linux syscalls when ktracing =20 them. If you know what you are doing, you don't need to chroot (I =20 don't chroot in the linux_kdump port), but you have to be very careful. > Also, if I build in the gentoo chroot, but deploy the app to be run > under linux_base, I suspect there may be library conflicts (this is > not unlike the problems that have been mentioned for linux_devtools). For the standard libs (glibc) I don't think there are more problems =20 than on any native linux system (I would expect less problems), for =20 other ones (gtk) you should notice the difference immediatly and then =20 you can try to find a suitable one for either the gentoo build env or =20 for linux_base (I would expect you are lucky and it just works, module =20 bugs in the code of the libs). Bye, Alexander. --=20 The one sure way to make a lazy man look respectable is to put a fishing rod in his hand. http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137