From owner-freebsd-hackers Tue Mar 19 0:41:26 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from straylight.ringlet.net (discworld.nanolink.com [217.75.135.248]) by hub.freebsd.org (Postfix) with SMTP id E868637B402 for ; Tue, 19 Mar 2002 00:40:50 -0800 (PST) Received: (qmail 32553 invoked by uid 1000); 19 Mar 2002 08:15:10 -0000 Date: Tue, 19 Mar 2002 10:15:09 +0200 From: Peter Pentchev To: Brad Huntting Cc: John E Hein , hackers@FreeBSD.ORG Subject: Re: ports & DESTDIR (was: STLPORT and gcc3 (openoffice porting)) Message-ID: <20020319101509.E9136@straylight.oblivion.bg> Mail-Followup-To: Brad Huntting , John E Hein , hackers@FreeBSD.ORG References: <15510.8721.546546.172867@brain.timing.com> <200203182150.g2ILo5s60026@hunkular.glarp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="3O1VwFp74L81IIeR" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200203182150.g2ILo5s60026@hunkular.glarp.com>; from huntting@glarp.com on Mon, Mar 18, 2002 at 02:50:05PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --3O1VwFp74L81IIeR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 18, 2002 at 02:50:05PM -0700, Brad Huntting wrote: >=20 > > bsd.ports.mk uses DESTDIR differently (wrongly IMO) than FreeBSD's > > buildworld or the rest of the world as far as I have seen. See (and > > lobby for) ports/28155. Unfortunately, the fix in 28155 will make > > DESTDIR behave the "right" way, and thus anyone expecting the "wrong" > > behavior will be surprised. OTOH, any ports using DESTDIR will do the > > wrong thing now anyway in many cases (see the How-To-Repeat in PR 2815= 5). >=20 > Along these lines, we have a rather twisted setup at our shop. We > put 3d party software such as ports in directories with pathnames > like: >=20 > /nfs/i386+OpenBSD2/teTeX-1.0.7/{bin/,etc/,share/,...} >=20 > Using symlinks (and amd) it appears to the users as if it were >=20 > /nfs/teTeX -> teTeX-1.0.7 > /nfs/teTeX-1.0.7/{bin/,etc/,share/,...} >=20 > Since these are mounted read-only, we have to install the port in > another directory e.g: >=20 > /mnt/foo/nfs/teTeX-1.0.7/ >=20 > In a perfect world this would just mean using >=20 > DESTDIR=3D/mnt/foo > PREFIX=3D/nfs/teTeX-1.0.7 >=20 > But, this will cause the port to look for all it's _dependencies_ > in /nfs/teTeX-1.0.7 when they are really in /nfs/some-port-name. Actually, just setting PREFIX will *not* make a port look for its dependencies there. Ports look for their dependencies in either LOCALBASE or X11BASE, depending on whether the port itself uses X or not.. However, this does not help much in your particular case, since both LOCALBASE and X11BASE assume a single directory tree where all the header files and libs are located, and in your case, there are many such directory trees.. Hmf.. the best that I can come up with is some kind of a temporary directory providing symbolic links to all the headers and libs in all those dirs; this directory should be torn down and rebuilt before each new port build to make sure the symlinks are in sync with reality; and then there might be a problem with programs which hard-code library locations (are there any of those still around?) and do not trust rtld and ldconfig.. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 When you are not looking at it, this sentence is in Spanish. --3O1VwFp74L81IIeR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjyW840ACgkQ7Ri2jRYZRVOw4gCfQpR3TBPAxQzfvnU+sxLqi7DI aXUAoIKW8pweK4byMN7N+tbPFCoLT5Yk =uKBT -----END PGP SIGNATURE----- --3O1VwFp74L81IIeR-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message