Date: Fri, 25 May 2012 16:16:22 +1000 From: Peter Jeremy <peter@rulingia.com> To: Thomas Mueller <mueller23@insightbb.com> Cc: freebsd-ports@freebsd.org Subject: Re: Build ports in chroot for i386 when booted with amd64 kernel? Message-ID: <20120525061622.GD2675@aspire.rulingia.com> In-Reply-To: <4F.AB.17241.4D11EBF4@smtp02.insight.synacor.com> References: <4F.AB.17241.4D11EBF4@smtp02.insight.synacor.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--wULyF7TL5taEdwHz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-May-24 06:47:48 -0400, Thomas Mueller <mueller23@insightbb.com> wro= te: >Is it feasible to chroot into an i386 environment when booted to FreeBSD a= md64 for the purpose of building and installing ports for i386? Yes. I have built i386 code (both world & ports) using both chroot and jail. The only caveat is that the i386 world should be no newer than the host kernel. Assuming /tank/m3 has an i386 world installed: On the host: # mount -r -t nullfs /usr/src /tank/m3/usr/src # mount -r -t nullfs /usr/ports /tank/m3/usr/ports # mount -t devfs devfs /tank/m3/dev # chroot /tank/m3 bin/sh Inside the chroot: # export MACHINE=3Di386 UNAME_p=3Di386 UNAME_m=3Di386 # cd /usr/src && make buildworld # cd /usr/ports/.../... && make install etc So far, I've only had this fail when building MPIR (which isn't a port and seems to have broken CPU detection code). --=20 Peter Jeremy --wULyF7TL5taEdwHz Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk+/I7YACgkQ/opHv/APuIc/mACcDsNVdkSxURo96q4QFAO3PaUu AqcAnjW0VnfJQ6PnkwQGDihK4QRvL4er =hdbN -----END PGP SIGNATURE----- --wULyF7TL5taEdwHz--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120525061622.GD2675>