From owner-freebsd-current Sun Dec 10 11:54: 5 2000 From owner-freebsd-current@FreeBSD.ORG Sun Dec 10 11:54:02 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 948D137B400 for ; Sun, 10 Dec 2000 11:54:02 -0800 (PST) Received: from dragon.nuxi.com (Ipittythefoolthattrustsident@trang.nuxi.com [209.152.133.57]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id LAA53141; Sun, 10 Dec 2000 11:54:01 -0800 (PST) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.1/8.11.1) id eBAJs0d81241; Sun, 10 Dec 2000 11:54:00 -0800 (PST) (envelope-from obrien) Date: Sun, 10 Dec 2000 11:53:59 -0800 From: "David O'Brien" To: Mike Meyer Cc: current@FreeBSD.ORG Subject: Re: /usr/local misuse (Was: Confusing error messages from shell image activation) Message-ID: <20001210115359.I80274@dragon.nuxi.com> Reply-To: current@FreeBSD.ORG References: <14898.33404.356173.963351@guru.mired.org> <75248.976389688@verdi.nethelp.no> <20001209142430.B671@puck.firepipe.net> <14898.36663.855320.410475@guru.mired.org> <20001209192646.B32252@dragon.nuxi.com> <14898.64303.432525.619458@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: <14898.64303.432525.619458@guru.mired.org>; from mwm@mired.org on Sat, Dec 09, 2000 at 09:40:31PM -0600 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: obrien@NUXI.com Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Dec 09, 2000 at 09:40:31PM -0600, Mike Meyer wrote: > > I always thought ``make PREFIX=/tmp/foo package'' is pretty obvious.. but ... > What does the above command do if the port isn't PREFIX clean? Installs the ports's bits into [most likely] /usr/local, cause an error while trying to build the package, and create a situation where `pkg_delete' could not be used to delete the installed bits. > My personal test is "make PREFIX=/tmp/foo install && make > deinstall". If something in the plist is installed outside of > /tmp/foo, the deinstall will complain when it can't find it. Just a different flavor of catching the errors. "make PREFIX=/tmp/foo package" will also complain if it cannot find the binaries to tar up in PREFIX. -- -- David (obrien@FreeBSD.org) GNU is Not Unix / Linux Is Not UniX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message