From owner-freebsd-emulation@FreeBSD.ORG Tue Oct 18 18:13:55 2005 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 2025216A41F for ; Tue, 18 Oct 2005 18:13:55 +0000 (GMT) (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 34E0843D60 for ; Tue, 18 Oct 2005 18:13:53 +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 61C941A3C2C; Tue, 18 Oct 2005 11:13:52 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id B4070513F4; Tue, 18 Oct 2005 14:13:51 -0400 (EDT) Date: Tue, 18 Oct 2005 14:13:51 -0400 From: Kris Kennaway To: Doug Ambrisko Message-ID: <20051018181351.GB89074@xor.obsecurity.org> References: <434EC854.31435.8209C41D@localhost> <200510150227.j9F2R0Yl081732@ambrisko.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WYTEVAkct0FjGQmd" Content-Disposition: inline In-Reply-To: <200510150227.j9F2R0Yl081732@ambrisko.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-emulation@freebsd.org Subject: Re: cross platform building under emulation 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: Tue, 18 Oct 2005 18:13:55 -0000 --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--