From owner-freebsd-current Sun Dec 10 11:19: 0 2000 From owner-freebsd-current@FreeBSD.ORG Sun Dec 10 11:18:59 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from bsdhome.dyndns.org (unknown [24.25.2.13]) by hub.freebsd.org (Postfix) with ESMTP id 5C82937B400 for ; Sun, 10 Dec 2000 11:18:58 -0800 (PST) Received: from vger.bsdhome.com (vger [192.168.220.2]) by bsdhome.dyndns.org (8.11.1/8.11.1) with ESMTP id eBAJIpW50718; Sun, 10 Dec 2000 14:18:51 -0500 (EST) (envelope-from bsd@bsdhome.com) Received: (from bsd@localhost) by vger.bsdhome.com (8.11.1/8.11.1) id eBAJIpb41775; Sun, 10 Dec 2000 14:18:51 -0500 (EST) (envelope-from bsd) Date: Sun, 10 Dec 2000 14:18:51 -0500 From: Brian Dean To: Mike Meyer Cc: freebsd-current@FreeBSD.ORG Subject: Re: Package installation location Message-ID: <20001210141851.C39643@vger.bsdhome.com> References: <20001210125026.A27718@drama.navipath.com> <20001210132152.B27718@drama.navipath.com> <14899.54065.737498.114689@guru.mired.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <14899.54065.737498.114689@guru.mired.org>; from mwm@mired.org on Sun, Dec 10, 2000 at 01:02:09PM -0600 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Dec 10, 2000 at 01:02:09PM -0600, Mike Meyer wrote: > The problem is that *it doesn't work*. Well, not very well. Part of it > is that it's only given lip service: the porters handbook says "make > your ports PREFIX clean"; portlint doesn't do any checking about it. > The porters handbook doesn't even provide instructions on how to test > for whether or not a port is PREFIX clean. Making things LOCALBASE > clean isn't even suggested. Just to nitpick this one statement, PREFIX is set to LOCALBASE (see /usr/ports/Mk/bsd.port.mk) so if PREFIX is honoured by the port, then LOCALBASE will be honoured by default. Not doing it this way would not allow you to override PREFIX for one particular port. Thus if you set LOCALBASE to /usr/opt in /etc/make.conf for instance, but for port "foo" you want it to go somewhere else, you can build that with make PREFIX=/usr/local/foo, for instance. If foo honoured LOCALBASE instead, it would ignore your one-time PREFIX override. Thus PREFIX is the correct thing for the ports to worry about, not LOCALBASE, LOCALBASE just being the default value for PREFIX. -Brian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message