Bug 12930

Summary: libtool create defuct makefiles if PREFIX is used
Product: Ports & Packages Reporter: dirk.meyer <dirk.meyer>
Component: Individual Port(s)Assignee: Satoshi Asami <asami>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Bill Fumerola 1999-08-02 17:15:54 UTC
On Mon, 2 Aug 1999 dirk.meyer@dinoex.sub.org wrote:

>  	ports try to call /usr/local/bin/libtool despite it was
>  	build under /usr/extra too.

libtool uses ${LOCALBASE}, not ${PREFIX}, you should probably set both.

-- 
- bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp -
- ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org  -
Comment 1 dirk.meyer 1999-08-02 18:10:00 UTC
	Building any package using libtool
	graphics/gd devel/gettext ....

Fix: 

none found yet
Comment 2 sprice 1999-08-02 18:38:18 UTC
On Mon, 2 Aug 1999 dirk.meyer@dinoex.sub.org wrote:

# >Environment:
# 
# 	PREFIX=/usr/extra
# 
# >Description:
# 
# 	Building any package using libtool
# 	graphics/gd devel/gettext ....
# 
# >How-To-Repeat:
# >Fix:
# 
# 	none found yet
# 
# 
# >Release-Note:
# >Audit-Trail:
# >Unformatted:
#  >How-To-Repea: 
#  
#  	ports try to call /usr/local/bin/libtool despite it was
#  	build under /usr/extra too.

One solution is to use the following patch.  I use it all the
time with no ill-effects.  I proposed it when the libtool
changes were last made but it was shot down.  Just make sure that
libtool can be found in your PATH and it should work for you as
well.

-steve

Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.315
diff -u -r1.315 bsd.port.mk
--- bsd.port.mk	1999/07/23 09:36:54	1.315
+++ bsd.port.mk	1999/08/01 16:20:22
@@ -666,7 +666,7 @@
 # Miscellaneous overridable commands:
 GMAKE?=			gmake
 AUTOCONF?=		autoconf
-LIBTOOL?=		${LOCALBASE}/bin/libtool
+LIBTOOL?=		`which libtool || echo ${LOCALBASE}/bin/libtool`
 XMKMF?=			xmkmf -a
 .if exists(/sbin/md5)
 MD5?=			/sbin/md5
Comment 3 jseger freebsd_committer freebsd_triage 1999-09-10 18:25:28 UTC
Responsible Changed
From-To: freebsd-ports->asami

Proposed fix is a bsd.port.mk issue, those go to Satoshi. 
Comment 4 Pete Fritchman freebsd_committer freebsd_triage 2001-11-19 22:22:42 UTC
State Changed
From-To: open->analyzed

Dirk, it looks like the problem was you just needed to set LOCALBASE.  Can 
this be closed now?
Comment 5 Pete Fritchman freebsd_committer freebsd_triage 2001-11-20 18:24:07 UTC
State Changed
From-To: analyzed->closed

Submitter reports problem is solved.