Date: Wed, 20 Sep 2006 16:02:15 -0400 From: Kris Kennaway <kris@obsecurity.org> To: Alexander Leidinger <Alexander@Leidinger.net> Cc: freebsd-emulation@freebsd.org, Kris Kennaway <kris@obsecurity.org> Subject: Re: linux cross-development (was: Re: /dev/null: No such file or directory) Message-ID: <20060920200215.GA84299@xor.obsecurity.org> In-Reply-To: <20060920212442.41c9ed0f@Magellan.Leidinger.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <kris@obsecurity.org> (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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060920200215.GA84299>