From owner-freebsd-questions@FreeBSD.ORG Mon Aug 31 16:33:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8D4DB106566C for ; Mon, 31 Aug 2009 16:33:37 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr16.xs4all.nl (smtp-vbr16.xs4all.nl [194.109.24.36]) by mx1.freebsd.org (Postfix) with ESMTP id 093108FC1F for ; Mon, 31 Aug 2009 16:33:36 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr16.xs4all.nl (8.13.8/8.13.8) with ESMTP id n7VGXZWD011779; Mon, 31 Aug 2009 18:33:35 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 114A9BA8F; Mon, 31 Aug 2009 18:33:35 +0200 (CEST) Date: Mon, 31 Aug 2009 18:33:35 +0200 From: Roland Smith To: Jim Message-ID: <20090831163334.GA18945@slackbox.xs4all.nl> References: <80f4f2b20908310628p5129acc1qdb98311136bb716e@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <80f4f2b20908310628p5129acc1qdb98311136bb716e@mail.gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: 32 bit ports on an AMD64 system 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, 31 Aug 2009 16:33:37 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Aug 31, 2009 at 09:28:44AM -0400, Jim wrote: > I want to compile some 32 bit ports on an AMD64 system. I know the GCC > has to receive the -m32 flag to compile the ports as 32 bit, but I > also want to change the install directory with 32 bit ports, I was > wondering which would be the most appropriate root given unix themes > and standard FreeBSD directory structure. >=20 > /usr/local/[same-as-before]-32 (i.e. [...]/bin32, [...]/lib32, > [...]/libexec32, etc) The one above sounds most logical. The base system puts 32 bit libraries in /usr/lib32.=20 > Also, would I be able to pass the appropriate flags through port > upgrade (or use environmental variables), or would I have to make > duplicates of the port directories and modify the makefiles? Currently the ports system is not set up to handle multiple versions of the same port, AFAIK. You could ask on the ports list. You'd need a separate /var/db/pkg32 to store information about installed 32-bit ports. And /var/db/ports32 for options for 32-bit ports. You would also need changed p= ort makefiles (different /ve/db paths, -m32 flag etc.) for this to work. It sho= uld be possible, but I don't think anybody has volunteered to do the work yet. = :-) The consensus seems to be that if you _really_ need 32-bit apps that badly, you should use the i386 architecture. A lot of people run amd64 because the hardware supports it, not because they need* it. (* 'need' in this case means that you are regularly running out of address space on i386.) Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --+QahgC5+KEYLbs62 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkqb+14ACgkQEnfvsMMhpyVGxACdG+fAAijegcmm25Djtx0urn0Q Cu0Anj58lKTvbG1Ah2OwEYp8pvN+3bes =NMR9 -----END PGP SIGNATURE----- --+QahgC5+KEYLbs62--