Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Oct 2005 14:13:51 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Doug Ambrisko <ambrisko@ambrisko.com>
Cc:        freebsd-emulation@freebsd.org
Subject:   Re: cross platform building under emulation
Message-ID:  <20051018181351.GB89074@xor.obsecurity.org>
In-Reply-To: <200510150227.j9F2R0Yl081732@ambrisko.com>
References:  <434EC854.31435.8209C41D@localhost> <200510150227.j9F2R0Yl081732@ambrisko.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--WYTEVAkct0FjGQmd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Oct 14, 2005 at 07:27:00PM -0700, Doug Ambrisko wrote:
> Dan Langille writes:
> | Daris has got me thinking about unpacking 4.9-release/bin into a=20
> | directory, and then doing a chroot.
>=20
> That sort-of works.  I've done some setups for companies and get
> iteratively better solutions.  I copy over some host bins & libs
> into special directories so mount, ps etc can be run from inside.
> I also have mods to libc so that uname & getosreldate so it can
> be set via env. variables so pkg_add, autoconf etc picks up the
> right stuff.  Now this is a little trickier for old version of
> libc that I haven't modified locally yet so I build a stub lib.
> of these in the chroot then load this then LD_PRELOAD.  If you don't
> then some things get messed up.
>=20
> This lets me build on a FreeBSD 6.X/amd64 host for FreeBSD 4.X/386,=20
> FreeBSD amd64 etc.  I've also at times loaded in the Linux tools and
> made that work so I could build Linux bins in chroots.
>=20
> I hope to commit my changes to getosreldate(3) and uname(3).
> This mirrors the env. variables in /usr/bin/uname.

I'd find this very useful too (and will start using your patch),
thanks!

Kris

--WYTEVAkct0FjGQmd
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDVTtfWry0BWjoQKURApf/AJ4u39sVY2NT9CQh46gmecgeO8E4OQCfTq+u
ylyKdqnvjSjgMGUSAK09ECg=
=8TU4
-----END PGP SIGNATURE-----

--WYTEVAkct0FjGQmd--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051018181351.GB89074>