From owner-freebsd-questions@FreeBSD.ORG Sat Oct 26 21:41:48 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 00BCABBA for ; Sat, 26 Oct 2013 21:41:47 +0000 (UTC) (envelope-from m.seaman@infracaninophile.co.uk) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 972CC258E for ; Sat, 26 Oct 2013 21:41:47 +0000 (UTC) Received: from seedling.black-earth.co.uk (seedling.black-earth.co.uk [81.2.117.99]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.7/8.14.7) with ESMTP id r9QLfhZe001238 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sat, 26 Oct 2013 22:41:43 +0100 (BST) (envelope-from m.seaman@infracaninophile.co.uk) DKIM-Filter: OpenDKIM Filter v2.8.3 smtp.infracaninophile.co.uk r9QLfhZe001238 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1382823703; bh=yigYwq2v2MnmSTWbeBj1uDJY7HuO/T47qWPiogEqt+I=; h=Date:From:To:Subject:References:In-Reply-To; z=Date:=20Sat,=2026=20Oct=202013=2022:41:42=20+0100|From:=20Matthew =20Seaman=20|To:=20Jason=20Birch= 20,=20=0D=0A=20"freebsd-questions@freebsd.org"= 20|Subject:=20Re:=20Kernel/World/Po rts=20compilation=20within=20jails=3B=20targeting=20many=20platfor ms.|References:=20|In-Reply-To:=20; b=rsOKMSKsOkukuNkG2TaZiWrbRns/5AwCrfXpAA49Cl9pp3qU/qYkFAOHwcDYchEJN y8/yk35Ay4/P7OKbWRKLCGLLj9fJbCad63eGgU6vhboKH1nFqikHinQFViRVBQhU75 Bd1iWuCyt2FTGHCctvhNIWMkrM0vyuveA7oBkm2M= Message-ID: <526C3716.4000802@infracaninophile.co.uk> Date: Sat, 26 Oct 2013 22:41:42 +0100 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 MIME-Version: 1.0 To: Jason Birch , "freebsd-questions@freebsd.org" Subject: Re: Kernel/World/Ports compilation within jails; targeting many platforms. References: In-Reply-To: X-Enigmail-Version: 1.5.2 OpenPGP: id=E7F39EBF Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Ka16ghPuv6LOC99RPjNlfw4vlMCuMhFv8" X-Virus-Scanned: clamav-milter 0.97.8 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Oct 2013 21:41:48 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --Ka16ghPuv6LOC99RPjNlfw4vlMCuMhFv8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 26/10/2013 11:53, Jason Birch wrote: > As a concrete example, my 'main' system is a FreeBSD 9.1-RELEASE amd64 > system, and I would like to compile FreeBSD 11-CURRENT for my BeagleBon= e > Black (ARMv7). Does it make more sense to create a jail environment on = my > 9.1-RELEASE machine to do all compilation and 'staging' for the BeagleB= lack? I don't know about 'good form' but using jails to compile for different FreeBSD versions is a well established practice. It's how the official pkg_tools and now pkgng packages are generated, for example. However, be aware there are some pretty major limitations to using jails this way. * You can have an older jail on a newer host system, but not the converse. So building in an 11-CURRENT jail on a 9.1-RELEASE system won't work. * You don't get cross-architecture builds -- jails generally have to be the same architecture as the host system. With one possible exception. It may be possible to use an i386 jail on an amd64 host. Dunno if that actually works for building serious quantities of ports. For your case, 11-CURRENT/armv7 isn't going to work on 9.1-RELEASE/amd64. Your best bet would be some sort of VM where you could emulate an armv7 CPU, if such a thing exists and is usable for your intended purpose. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey JID: matthew@infracaninophile.co.uk --Ka16ghPuv6LOC99RPjNlfw4vlMCuMhFv8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.20 (Darwin) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQJ8BAEBCgBmBQJSbDcWXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkAT28gP/05N1bYQF+CmaHdpKwdkB8Ic r8BKlCIEvfwmFr0xxCXPMtusUB3zcLaMHvE8IxaB2xiey2TLyur+6ZqxcZe+EPD+ 8Ee0ob4qmOB8HTPngqPGzxe51dg7dI7MHV3H16JOvneHWDTqXpU3QeFgvpKvizIA 3YXLbo3PDsbZAYynprRGTm9RcVL+eVtEtEQairhZxoK7T1fYgpcGD1k67JxGoT9U FVB7HuTMkGy5GED9mgkCdFbez725o7nLH7GiYklQKpL8RMv8178ptr2rwXsFwHE8 rYtnn+dDntEJ4jAHBHN8ZwgANfHLijTM69+bwOEvYhKA9eeH5b8yAntlnCFF/x2H P3jgknTdvKAVghWjSToUAYOZjJC40GfbzciJp2eFJ8lSvzmIPK7ux2heX7C6VzMJ 8oG7vQJbd3mQPdOy4E71yaF/Q6Wud09DOTlb80JheFvwdtEV7RBGyS0O+2DwnRjH esOi8iQOwNT4QJMUqq04XKfUbaK4xGPYEinei/W0zgwFdB+2GATlbzr4vRI2euP/ 2BHF1tN49HkoXj6tnoGNmwzjXW7IQx2Y0JMNlDrehktPA3nC36npOqo+BXsCY3BT c23a9dyzAkJOyPMe+i+iRuTEVbePQTCX0HnG3LEP7o0qk7+AB+qqHYZeY2WuEGb/ jOHLfafyeJzW2F4SZBZw =76Ok -----END PGP SIGNATURE----- --Ka16ghPuv6LOC99RPjNlfw4vlMCuMhFv8--