From mwm@mired.org  Thu Jun 22 19:54:01 2000
Return-Path: <mwm@mired.org>
Received: from guru.mired.org (zoom2-182.telepath.com [216.14.2.182])
	by hub.freebsd.org (Postfix) with SMTP id 736E937B7FC
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 22 Jun 2000 19:53:57 -0700 (PDT)
	(envelope-from mwm@mired.org)
Received: (qmail 31539 invoked by uid 100); 23 Jun 2000 02:53:52 -0000
Message-Id: <20000623025352.31538.qmail@guru.mired.org>
Date: 23 Jun 2000 02:53:52 -0000
From: mwm@mired.org
Reply-To: mwm@mired.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: The gimp port has /usr/local/bin hardwired in as the path to libtool.
X-Send-Pr-Version: 3.2

>Number:         19457
>Category:       ports
>Synopsis:       The gimp port has /usr/local/bin hardwired in as the path to libtool.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    vanilla
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 22 20:00:00 PDT 2000
>Closed-Date:    Thu Oct 11 14:29:41 PDT 2001
>Last-Modified:  Thu Oct 11 14:30:17 PDT 2001
>Originator:     Mike Meyer
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
Meyer Consulting
>Environment:

	LOCALBASE is set to something other than /usr/local.

>Description:

	Trying to build the gimp port (/usr/ports/graphics/gimp1)
	fails if libtool was built with LOCALBASE set to something
	other than /usr/local. Note that not having the directory that
	libtool is in in your path causes ports that need libtool to fail
	in general as well.

>How-To-Repeat:

	After making sure that libtool is not installed...

	# cd /usr/ports/graphics/gimp1
	# make -DLOCALBASE=/tmp/localbase

	and the build should fail.

>Fix:

	The attached patch patches the patch file that hardwired /usr/local
	in as the path to libtool. Apply it in the gimp port directory.

--- patch-ah-broken	Thu Jun 22 19:02:13 2000
+++ patches/patch-ah	Thu Jun 22 20:58:24 2000
@@ -1,13 +1,14 @@
 --- configure.orig	Wed Mar 29 18:55:23 2000
 +++ configure	Sun Apr  9 14:46:44 2000
-@@ -1494,8 +1494,8 @@
+@@ -1494,8 +1494,9 @@
  LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
 -${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
 -$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
-+${CONFIG_SHELL-/bin/sh} /usr/local/share/libtool/ltconfig --no-reexec \
-+$libtool_flags --no-verify --disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh $lt_target \
++LIBTOOLPATH=`which libtool | sed 's^/bin/libtool^^'`
++${CONFIG_SHELL-/bin/sh} ${LIBTOOLPATH}/share/libtool/ltconfig --no-reexec \
++$libtool_flags --no-verify --disable-ltlibs --release-ignore ${LIBTOOLPATH}/share/libtool/ltmain.sh $lt_target \
  || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
  
  # Reload cache, that may have been modified by ltconfig
@@ -16,11 +17,11 @@
  
  # This can be used to rebuild libtool when needed
 -LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
-+LIBTOOL_DEPS="/usr/local/share/libtool/ltconfig --disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh"
++LIBTOOL_DEPS="${LIBTOOLPATH}/share/libtool/ltconfig --disable-ltlibs --release-ignore /usr/local/share/libtool/ltmain.sh"
  
  # Always use our own libtool.
 -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-+LIBTOOL="/usr/local/bin/libtool"
++LIBTOOL="${LIBTOOLPATH}/bin/libtool"
  
  # Redirect the config.log output again, so that the ltconfig log is not
  # clobbered by the next message.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->vanilla 
Responsible-Changed-By: alex 
Responsible-Changed-When: Tue Jun 27 07:27:51 PDT 2000 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19457 
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Thu Oct 11 14:29:41 PDT 2001 
State-Changed-Why:  
Closed at the request of the submitter. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19457 
>Unformatted:
