Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 Oct 2013 22:41:42 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        Jason Birch <jbirch@jbirch.net>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Kernel/World/Ports compilation within jails; targeting many platforms.
Message-ID:  <526C3716.4000802@infracaninophile.co.uk>
In-Reply-To: <CAA=KUht4Kyz=-J6yGJdPfO4Bnr0a8-qU8k_Aj2Gp0MKjjPM=Qw@mail.gmail.com>
References:  <CAA=KUht4Kyz=-J6yGJdPfO4Bnr0a8-qU8k_Aj2Gp0MKjjPM=Qw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



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