From owner-freebsd-ports Thu Jun 22 20: 0:10 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 592B537B7FC for ; Thu, 22 Jun 2000 20:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA15445; Thu, 22 Jun 2000 20:00:01 -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 736E937B7FC for ; 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 X-Send-Pr-Version: 3.2 Subject: ports/19457: The gimp port has /usr/local/bin hardwired in as the path to libtool. Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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