From owner-freebsd-current Sat Dec 9 19:40:36 2000 From owner-freebsd-current@FreeBSD.ORG Sat Dec 9 19:40:33 2000 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 0CA3037B400 for ; Sat, 9 Dec 2000 19:40:33 -0800 (PST) Received: (qmail 81998 invoked by uid 100); 10 Dec 2000 03:40:31 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14898.64303.432525.619458@guru.mired.org> Date: Sat, 9 Dec 2000 21:40:31 -0600 (CST) To: current@FreeBSD.ORG Subject: Re: /usr/local misuse (Was: Confusing error messages from shell image activation) In-Reply-To: <20001209192646.B32252@dragon.nuxi.com> 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> X-Mailer: VM 6.75 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David O'Brien types: > On Sat, Dec 09, 2000 at 01:59:51PM -0600, Mike Meyer wrote: > > I know. Unfortunately, support for PREFIX seems to draw more lip > > service than actual service. > I disagree. If one of the ports I maintain isn't PREFIX-clean, let me > know and it _will_ be fixed. If you know others, please open a PR, let > me know and I'll assign it to the maintainer. Like I said, I do report them when I find them. However, things like ports with perl modules being either PREFIX dirty or broken tend to be pretty damning. But my comment is based on the experience of running a system with LOCALBASE set to something other than /usr/local. If you run systems that way and have a different experience, I'd be interested in hearing about it. > > or that the porters handbook should include instructions for checking > > this (it's actually pretty easy), > I always thought ``make PREFIX=/tmp/foo package'' is pretty obvious.. but > maybe not... It's not obvious to me. It's also not mentioned in the handbook anywhere. I suspect that most people are like me, and seldomp build packages - which would explain why it's not obvious. What does the above command do if the port isn't PREFIX clean? 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.