From owner-freebsd-ports Thu Jun 22 5:28:26 2000 Delivered-To: freebsd-ports@freebsd.org Received: from guru.mired.org (zoom0-185.telepath.com [216.14.0.185]) by hub.freebsd.org (Postfix) with SMTP id 5406637C279 for ; Thu, 22 Jun 2000 05:28:23 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 8815 invoked by uid 100); 22 Jun 2000 12:27:45 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14674.1601.564487.865999@guru.mired.org> Date: Thu, 22 Jun 2000 07:27:45 -0500 (CDT) To: freebsd-ports@freebsd.org Subject: Overridable commands in bsd.port.mk X-Mailer: VM 6.72 under 21.1 (patch 3) "Acadia" 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-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've started building a system with LOCALBASE changed (to /usr/opt, if anyone cares), and expect to be submitting patches for makefiles that have improper dependencies on /usr/local in them. The first one is strange. bsd.port.mk includes a set of commands (LIBTOOL was the one that tripped me up) that it expects to be in the path. The shell startup files in /root (/root/.profile, /root/.cshrc) includes /usr/local directories in the default path. This means that in the default environment, some misc. set of makes break if you change LOCALBASE (unless the tools in question are already installed in /usr/local, that is - which seems to be cheating). This just seems wrong to me - things should build under those conditions. However, the workaround is easy (fix your path), and the obvious fix to bsd.port.mk - change those commands to ${LOCALBASE}/command - doesn't work for libtool, as bsd.port.mk uses "which ${LIBTOOL} to find ${LOCALBASE}/share/libtool. There's also a downside to this change - you lose the ability to try a different set of these tools by changing your path, instead having to change them one at a time. I'm not sure this qualifies as a bug, or is worth fixing if it does, so I thought I'd ask about it.