linux cross-development (was: Re: /dev/null: No such file or directory)

Alexander Leidinger Alexander at Leidinger.net
Wed Sep 20 12:24:13 PDT 2006


Quoting Kris Kennaway <kris at obsecurity.org> (Wed, 20 Sep 2006 14:21:56 -0400):


> 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.
> 
> Hopefully this will be addressed soon, it would be a shame to lose
> this functionality.  Is anyone working on it?

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).

A chroot will not work as expected:
---snip---
REMOVE_DIRS=            boot dev home initrd root tmp var/log var/run var/tmp \
                        usr/local usr/tmp
REMOVE_FILES=           bin/df bin/su etc/exports etc/group etc/localtime \
                        etc/motd etc/passwd etc/printcap etc/services \
                        etc/protocols
---snip---

We rely on the fallthrough to the FreeBSD files. The same applies to
e.g. fonts.conf in the linux-fontconfig (or linuxfreetype?) port.

For the gtk/X11 port I'm not sure if we already did the fallthrough for
the icons.

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)?

Bye,
Alexander.

-- 
Systems tend to grow and as they grow they encroach.
http://www.Leidinger.net  Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org     netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-emulation mailing list