From owner-freebsd-hackers Mon Mar 18 13:51: 2 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from hunkular.glarp.com (hunkular.glarp.com [199.117.25.251]) by hub.freebsd.org (Postfix) with ESMTP id 2D14E37B42F for ; Mon, 18 Mar 2002 13:50:35 -0800 (PST) Received: from hunkular.glarp.com (localhost [127.0.0.1]) by hunkular.glarp.com (8.11.6/8.11.6) with ESMTP id g2ILo5s60026; Mon, 18 Mar 2002 14:50:05 -0700 (MST) (envelope-from huntting@hunkular.glarp.com) Message-Id: <200203182150.g2ILo5s60026@hunkular.glarp.com> To: John E Hein Cc: hackers@FreeBSD.ORG Subject: Re: ports & DESTDIR (was: STLPORT and gcc3 (openoffice porting)) In-Reply-To: Your message of "Mon, 18 Mar 2002 10:21:21 MST." <15510.8721.546546.172867@brain.timing.com> Date: Mon, 18 Mar 2002 14:50:05 -0700 From: Brad Huntting 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 > 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 28155). 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: /nfs/i386+OpenBSD2/teTeX-1.0.7/{bin/,etc/,share/,...} Using symlinks (and amd) it appears to the users as if it were /nfs/teTeX -> teTeX-1.0.7 /nfs/teTeX-1.0.7/{bin/,etc/,share/,...} Since these are mounted read-only, we have to install the port in another directory e.g: /mnt/foo/nfs/teTeX-1.0.7/ In a perfect world this would just mean using DESTDIR=/mnt/foo PREFIX=/nfs/teTeX-1.0.7 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. It is ugly, but we have such a large environment that we usually have to keep different versions of the same software online for different users on the same machine. Is there any way to specify a different PREFIX for each port+version? brad To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message