From owner-freebsd-ports Thu Jun 22 18:50: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id F3B1D37B7D0 for ; Thu, 22 Jun 2000 18:49:59 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA07220; Thu, 22 Jun 2000 18:50:00 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from guru.mired.org (zoom2-182.telepath.com [216.14.2.182]) by hub.freebsd.org (Postfix) with SMTP id 06FB237B554 for ; Thu, 22 Jun 2000 18:42:45 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 63938 invoked by uid 100); 23 Jun 2000 01:42:38 -0000 Message-Id: <20000623014238.63937.qmail@guru.mired.org> Date: 23 Jun 2000 01:42:38 -0000 From: mwm@mired.org Reply-To: mwm@mired.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19456: the sp port is hardwired to install it's binaries in /usr/local/bin Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19456 >Category: ports >Synopsis: the sp port is hardwired to install it's binaries in /usr/local/bin >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 22 18:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Mike Meyer >Release: FreeBSD 5.0-CURRENT i386 >Organization: Meyer Consulting >Environment: /usr/ports/textproc/sp build with LOCALBASE set to something other than /usr/local. >Description: The sp port installs it's binaries in /usr/local/bin, regardless of what LOCALBASE is set to. Since it installs everything else in ${LOCALBASE}, cleaning up after this is interesting. >How-To-Repeat: # cd /usr/ports/textproc/sp # make -DLOCALBASE=/tmp/tmplocal install And notice the new binaries in /usr/locla/bin (sp, nsgmls, etc.) >Fix: The attached patch file will fix the patches to eliminate the hardwired /usr/local during the install. diff -Nu patches/patch-ab patches-broken/patch-ab --- patches/patch-ab Thu Jun 22 20:24:08 2000 +++ patches-broken/patch-ab Mon Jun 19 01:32:37 2000 @@ -5,7 +5,7 @@ # See the file COPYING for copying permission. -prefix=/opt/local -+prefix=${LOCALBASE} ++prefix=/usr/local exec_prefix=$(prefix) # Where to install the binaries bindir=$(exec_prefix)/bin @@ -20,7 +20,7 @@ # which doesn't appropriately define sig_atomic_t). # Add -DJADE_MIF to include the Jade MIF backend -XDEFINES= -+XDEFINES=-DSGML_CATALOG_FILES_DEFAULT=\"${LOCALBASE}/share/sgml/catalog\" ++XDEFINES=-DSGML_CATALOG_FILES_DEFAULT=\"/usr/local/share/sgml/catalog\" DEFINES=-DSP_HAVE_BOOL -DSP_ANSI_CLASS_INST -DSP_MULTI_BYTE $(XDEFINES) CXXFLAGS=-ansi $(DEBUG) $(WARN) # Flag to pass to CXX to make it output list of dependencies as a Makefile. diff -Nu patches/patch-ad patches-broken/patch-ad --- patches/patch-ad Thu Jun 22 20:24:35 2000 +++ patches-broken/patch-ad Mon Jun 19 01:32:37 2000 @@ -2,7 +2,7 @@ +++ Makefile.lib Wed Jun 2 16:00:57 1999 @@ -1,16 +1,30 @@ -CLEANFILES=lib$(LIB).a $(OBJS) $(COBJS) core -+prefix=${LOCALBASE} ++prefix=/usr/local +exec_prefix=$(prefix) +# Where to install the binaries +bindir=$(exec_prefix)/bin >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message