Date: Mon, 05 Mar 2012 16:53:14 +0000 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: freebsd-questions@freebsd.org Subject: Re: port to package amd64 to i386 Message-ID: <4F54EF7A.2030109@infracaninophile.co.uk> In-Reply-To: <4F54ED12.1090409@bananmonarki.se> References: <4F547C59.1040604@bananmonarki.se> <4F548571.1050203@gmail.com> <4F54ED12.1090409@bananmonarki.se>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1132A294D9A53888E38C5AB8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 05/03/2012 16:42, Bernt Hansson wrote: >=20 > Thank you for the pointer. I do find it a bit overkill to setup jails > and such, just to build a few ports. I was thinking more along the line= of; >=20 > cd /usr/ports/"random port" >=20 > make "it for i386 even if we are building it on amd64, ooh by the way > build it as a package, and all dependencies as packages as well" >=20 > Oh man, man ports. But I do not find the flag > -build-for-another-system-cpu-whatever >=20 > Can the ports system be (ab)used in that way? In general, no. There may be some ports that you could cross-compile, but that depends on the upstream software having support for cross compilation (basically allowing "--target foo" into the compilation flags.) Even if you fix that you're going to run into difficulties as soon as you try and compile a port that depends on shared libraries from another port. I don't think there's any mechanism for installing 32-bit shlibs into ${LOCALBASE}/lib32 from packages. Oh, and making packages is potentially a mine field, as you need to install the port in order to package it. About the only way to cross-build ports is to set up a 32-bit jail on a 64-bit host. I believe that is do-able, but I could be delusional. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matthew@infracaninophile.co.uk Kent, CT11 9PW --------------enig1132A294D9A53888E38C5AB8 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.16 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk9U74EACgkQ8Mjk52CukIxd1wCfWTkN52EfUSqivMC4vzmh/hk/ 14QAnj/D/Z77/sm31hJqNWZSwGx9U4PG =OXOh -----END PGP SIGNATURE----- --------------enig1132A294D9A53888E38C5AB8--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4F54EF7A.2030109>