Bug 57368

Summary: forever cycled when building libtool 1.5
Product: Ports & Packages Reporter: Seva Gluschenko <gvs>
Component: Individual Port(s)Assignee: Ade Lovett <ade>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Seva Gluschenko 2003-09-29 18:30:11 UTC
	Ports makefiles 'cause libtool 1.5 build to fall into eternal cycle
	because it depends on itself by occasion.

Fix: 

comment out WANT_LIBTOOL_VER in /etc/make.conf. Weird but true.
How-To-Repeat: 	place WANT_LIBTOOL_VER=15 in /etc/make.conf
	cvsup to the latest /usr/ports/devel/libtool15
	cd there and type make. After unpacking and patching you will see:

===>   libtool-1.5 depends on file: /usr/local/libexec/libtool15/libtool - not found
===>    Verifying install for /usr/local/libexec/libtool15/libtool in /usr/ports/devel/libtool15
===>   libtool-1.5 depends on file: /usr/local/libexec/libtool15/libtool - not found
===>    Verifying install for /usr/local/libexec/libtool15/libtool in /usr/ports/devel/libtool15
===>   libtool-1.5 depends on file: /usr/local/libexec/libtool15/libtool - not found
===>    Verifying install for /usr/local/libexec/libtool15/libtool in /usr/ports/devel/libtool15
===>   libtool-1.5 depends on file: /usr/local/libexec/libtool15/libtool - not found
===>    Verifying install for /usr/local/libexec/libtool15/libtool in /usr/ports/devel/libtool15
===>   libtool-1.5 depends on file: /usr/local/libexec/libtool15/libtool - not found
===>    Verifying install for /usr/local/libexec/libtool15/libtool in /usr/ports/devel/libtool15
===>   libtool-1.5 depends on file: /usr/local/libexec/libtool15/libtool - not found
===>    Verifying install for /usr/local/libexec/libtool15/libtool in /usr/ports/devel/libtool15
===>   libtool-1.5 depends on file: /usr/local/libexec/libtool15/libtool - not found
===>    Verifying install for /usr/local/libexec/libtool15/libtool in /usr/ports/devel/libtool15
===>   libtool-1.5 depends on file: /usr/local/libexec/libtool15/libtool - not found
===>    Verifying install for /usr/local/libexec/libtool15/libtool in /usr/ports/devel/libtool15
^C
Comment 1 Kirill Ponomarev freebsd_committer freebsd_triage 2003-09-29 19:04:15 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ade

Over to maintainer
Comment 2 Ade Lovett freebsd_committer freebsd_triage 2003-10-13 22:29:12 UTC
State Changed
From-To: open->closed

This falls into the category of "don't do that".  If you look at the ball of 
wax that is libtool support in bsd.port.mk, you'll see it references 
WANT_LIBTOOL_VER as an internal variable.  The port (libtool*) Makefile 
checks for USE_LIBTOOL and USE_LIBTOOL_VER and tells you not to do that, 
but not for WANT_LIBTOOL_VER. 

Since the whole enchilada is being reworked and, in the process, the 
WANT_<blah> stuff is getting wasted, there's nothing really to be done 
here. 

Given that ports usually require a specific version of libtool (and, indeed, 
autoconf and automake) to run, overriding this with global variables in 
/etc/make.conf (or elsewhere) will result in Bad Things Happening.