From owner-freebsd-questions@FreeBSD.ORG Mon Mar 5 16:53:25 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EE094106564A for ; Mon, 5 Mar 2012 16:53:25 +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]) by mx1.freebsd.org (Postfix) with ESMTP id 784F08FC08 for ; Mon, 5 Mar 2012 16:53:25 +0000 (UTC) Received: from seedling.local (seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q25GrLLF023836 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 5 Mar 2012 16:53:21 GMT (envelope-from m.seaman@infracaninophile.co.uk) X-DKIM: OpenDKIM Filter v2.4.3 smtp.infracaninophile.co.uk q25GrLLF023836 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infracaninophile.co.uk; s=201001-infracaninophile; t=1330966402; bh=zgHL3aTYg7ouoNZJanjW/MPNxYDbWtcBlHPAIpGgFDg=; h=Message-ID:Date:From:MIME-Version:To:Subject:References: In-Reply-To:Content-Type:Cc; b=hWlkP1JBk26/mnU2KCyY5N0fE5UC1X2OaeQuFT1Iy5KQ6xMnULyHmjD9ZTP6mjqgv 5n9hIfRcpN9cKY6QcBiqaeS8t3csyynxiNOXG+qjYEWMWuJPIXEcSDBnGHKPrtbqb9 ksTtoBdXKRdgDvZ5H8/i5GRTagBDrM1Qi0Y2jvGA= X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host seedling.black-earth.co.uk [IPv6:2001:8b0:151:1:fa1e:dfff:feda:c0bb] claimed to be seedling.local Message-ID: <4F54EF7A.2030109@infracaninophile.co.uk> Date: Mon, 05 Mar 2012 16:53:14 +0000 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <4F547C59.1040604@bananmonarki.se> <4F548571.1050203@gmail.com> <4F54ED12.1090409@bananmonarki.se> In-Reply-To: <4F54ED12.1090409@bananmonarki.se> X-Enigmail-Version: 1.3.5 OpenPGP: id=60AE908C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1132A294D9A53888E38C5AB8" X-Virus-Scanned: clamav-milter 0.97.3 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 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 Subject: Re: port to package amd64 to i386 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2012 16:53:26 -0000 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--