From owner-freebsd-emulation@FreeBSD.ORG Wed Sep 20 20:04:42 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 755EA16A4CA for ; Wed, 20 Sep 2006 20:04:42 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E38543DB8 for ; Wed, 20 Sep 2006 20:02:17 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id E08891A3C1A; Wed, 20 Sep 2006 13:02:16 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id DE35A513F0; Wed, 20 Sep 2006 16:02:15 -0400 (EDT) Date: Wed, 20 Sep 2006 16:02:15 -0400 From: Kris Kennaway To: Alexander Leidinger Message-ID: <20060920200215.GA84299@xor.obsecurity.org> 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> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <20060920212442.41c9ed0f@Magellan.Leidinger.net> User-Agent: Mutt/1.4.2.2i 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: Wed, 20 Sep 2006 20:04:42 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Sep 20, 2006 at 09:24:42PM +0200, Alexander Leidinger wrote: > Quoting Kris Kennaway (Wed, 20 Sep 2006 14:21:56 -0= 400): >=20 >=20 > > OK, but under linux_base-8 it was enough to install the linux_devtools > > and then chroot, in order to compile linux stuff; in fact this was > > precisely the purpose of the linux_devtools port. > >=20 > > Hopefully this will be addressed soon, it would be a shame to lose > > this functionality. Is anyone working on it? >=20 > Nobody is working on it and the linux base port diverged here since -8 > (let's call it a little shift in what to expect from it since Trevor > maintained them). >=20 > A chroot will not work as expected: > ---snip--- > REMOVE_DIRS=3D boot dev home initrd root tmp var/log var/run v= ar/tmp \ > usr/local usr/tmp > REMOVE_FILES=3D bin/df bin/su etc/exports etc/group etc/localti= me \ > etc/motd etc/passwd etc/printcap etc/services \ > etc/protocols > ---snip--- >=20 > We rely on the fallthrough to the FreeBSD files. The same applies to > e.g. fonts.conf in the linux-fontconfig (or linuxfreetype?) port. >=20 > For the gtk/X11 port I'm not sure if we already did the fallthrough for > the icons. >=20 > 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)? Actually none of these seem to be critical for typical compilation needs, except for /dev and /tmp. The former you'll have to mount devfs to supply (in principle linux_devtools can do this automatically, by startup script), and you can make linux_devtools create a /compat/linux/tmp to handle that problem too (it's not ideal to have it use a private /tmp, but not a big deal either). Kris P.S. I'm not sure that falling through some of the etc/ files will DTRT, since Linux may require a different file format. --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFEZ5HWry0BWjoQKURAi0BAJ9vLeLCbXfMilLFMZMCWeGd9XtYrQCeJIZs D870o5KbY5mO2s635In6HMI= =S472 -----END PGP SIGNATURE----- --u3/rZRmxL6MmkK24--