From owner-freebsd-ports Thu Jul 31 00:40:18 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA13414 for ports-outgoing; Thu, 31 Jul 1997 00:40:18 -0700 (PDT) Received: from ghpc8.ihf.rwth-aachen.de (ghpc8.ihf.RWTH-Aachen.DE [134.130.90.8]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA13400 for ; Thu, 31 Jul 1997 00:40:13 -0700 (PDT) Received: from ghpc6.ihf.rwth-aachen.de (ghpc6.ihf.rwth-aachen.de [134.130.90.6]) by ghpc8.ihf.rwth-aachen.de (8.8.5/8.8.5) with ESMTP id JAA10104; Thu, 31 Jul 1997 09:39:41 +0200 (CEST) Received: (from thomas@localhost) by ghpc6.ihf.rwth-aachen.de (8.8.6/8.8.5) id JAA05701; Thu, 31 Jul 1997 09:39:41 +0200 (CEST) To: "Jordan K. Hubbard" Cc: scott@statsci.com, freebsd-ports@FreeBSD.ORG Subject: Re: how to handle compiled in paths? References: <20201.870333554@time.cdrom.com> From: Thomas Gellekum Date: 31 Jul 1997 09:39:40 +0200 In-Reply-To: "Jordan K. Hubbard"'s message of Thu, 31 Jul 1997 00:19:14 -0700 Message-ID: <87204f8ybn.fsf@ghpc6.ihf.rwth-aachen.de> Lines: 22 X-Mailer: Gnus v5.4.37/XEmacs 19.15 Sender: owner-freebsd-ports@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk "Jordan K. Hubbard" writes: > > I was just noticing something with my nmh port...it seems that the prefix is > > compiled into the binaries, so if you make a package out of it, you can't > > retarget the prefix with the pkg_add -p option (without recompilation, which > > kind of defeats the purpose of the package & its -p option). How is this > > kind of stuff normally handled? > > You repeat the @cwd line twice at the top of the package's PLIST, > "stapling" it to the canned prefix and preventing a -p override. Not > every user's desire, of course, this still at least ensures that > what's installed will work and is probably the best that can be done > under the circumstances. I think the `-p' option should just go away. We have hundreds of ports with compiled in paths, most of which are dealt with at compile time. Splitting the ports up into those that can be moved and those that have to be recompiled is more of a pain than simply saying ``The provided packages install into /usr/local, period. Please recompile if you want another directory prefix.''. tg