Skip site navigation (1)Skip section navigation (2)
Date:      23 Jun 2000 02:53:52 -0000
From:      mwm@mired.org
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/19457: The gimp port has /usr/local/bin hardwired in as the path to libtool.
Message-ID:  <20000623025352.31538.qmail@guru.mired.org>

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

>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:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 22 20:00:00 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>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?20000623025352.31538.qmail>