Skip site navigation (1)Skip section navigation (2)
Date:      23 Jun 2000 01:42:38 -0000
From:      mwm@mired.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19456: the sp port is hardwired to install it's binaries in /usr/local/bin
Message-ID:  <20000623014238.63937.qmail@guru.mired.org>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000623014238.63937.qmail>