From owner-freebsd-ports@FreeBSD.ORG Fri May 25 07:04:36 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BD0A0106566B for ; Fri, 25 May 2012 07:04:36 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id 2EC2F8FC0C for ; Fri, 25 May 2012 07:04:35 +0000 (UTC) Received: from server.rulingia.com (c220-239-254-65.belrs5.nsw.optusnet.com.au [220.239.254.65]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id q4P74V9j072360 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 25 May 2012 17:04:33 +1000 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from aspire.rulingia.com (aspire.rulingia.com [192.168.123.161]) by server.rulingia.com (8.14.5/8.14.5) with ESMTP id q4P74P4K036246 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 25 May 2012 17:04:25 +1000 (EST) (envelope-from peter@rulingia.com) Received: from aspire.rulingia.com (localhost [127.0.0.1]) by aspire.rulingia.com (8.14.5/8.14.5) with ESMTP id q4P6GUaK026420 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 May 2012 16:16:50 +1000 (EST) (envelope-from peter@aspire.rulingia.com) Received: (from peter@localhost) by aspire.rulingia.com (8.14.5/8.14.5/Submit) id q4P6GNqh026419; Fri, 25 May 2012 16:16:23 +1000 (EST) (envelope-from peter) Date: Fri, 25 May 2012 16:16:22 +1000 From: Peter Jeremy To: Thomas Mueller Message-ID: <20120525061622.GD2675@aspire.rulingia.com> References: <4F.AB.17241.4D11EBF4@smtp02.insight.synacor.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="wULyF7TL5taEdwHz" Content-Disposition: inline In-Reply-To: <4F.AB.17241.4D11EBF4@smtp02.insight.synacor.com> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ports@freebsd.org Subject: Re: Build ports in chroot for i386 when booted with amd64 kernel? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 May 2012 07:04:36 -0000 --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 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--