Bug 121296

Summary: devel/libtool15 build failure with WITHOUT_INFO=yes
Product: Ports & Packages Reporter: Olivier <olivier>
Component: Individual Port(s)Assignee: Ade Lovett <ade>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Olivier 2008-03-02 18:10:03 UTC
devel/libtool15 can't be built when world has been installed with WITHOUT_INFO=yes in make.conf or src.conf. 'Making all in doc' need makeinfo.

=> libtool-1.5.24.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://ftp.gnu.org/gnu/libtool/.
libtool-1.5.24.tar.gz                         100% of 2851 kB  316 kBps
===>  Extracting for libtool-1.5.24
=> MD5 Checksum OK for libtool-1.5.24.tar.gz.
=> SHA256 Checksum OK for libtool-1.5.24.tar.gz.
===>  Patching for libtool-1.5.24
===>  Applying FreeBSD patches for libtool-1.5.24
===>  Configuring for libtool-1.5.24
[...]
===>  Building for libtool-1.5.24
Making all in .
CONFIG_FILES=libtoolize CONFIG_HEADERS= /bin/sh ./config.status
config.status: creating libtoolize
config.status: executing depfiles commands
chmod +x libtoolize
Making all in libltdl
rm -f stamp-h1
touch ./config-h.in
cd . && /bin/sh ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make  all-am
Making all in doc
restore=: && backupdir=".am$$" &&  am__cwd=`pwd` && cd . &&  rm -rf $backupdir && mkdir $backupdir &&  if (makeinfo --no-split --version) >/dev/null 2>&1; then  for f in ./libtool.info ./libtool.info-[0-9] ./libtool.info-[0-9][0-9] ./libtool.i[0-9] ./libtool.i[0-9][0-9]; do  if test -f $f; then mv $f $backupdir; restore=mv; else :; fi;  done;  else :; fi &&  cd "$am__cwd";  if makeinfo --no-split   -I .  -o ./libtool.info ./libtool.texi;  then  rc=0;  cd .;  else  rc=$?;  cd . &&  $restore $backupdir/* `echo "././libtool.info" | sed 's|[^/]*$||'`;  fi;  rm -rf $backupdir; exit $rc
makeinfo: not found
*** Error code 127

Stop in /usr/ports/devel/libtool15/work/libtool-1.5.24/doc.
*** Error code 1

Stop in /usr/ports/devel/libtool15/work/libtool-1.5.24.
*** Error code 1

Stop in /usr/ports/devel/libtool15.
*** Error code 1

Fix: 

I don't have a patch. But I could install libtool by removing the line 'CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"' in the port's Makefile. After that, "make" displays a warning cause makeinfo is missing, but it doesn't fail.
How-To-Repeat: Try to install devel/libtool15 in a jail which has been installed with WITHOUT_INFO=yes in make.conf or src.conf.
Comment 1 Olivier 2008-03-02 18:18:33 UTC
I also had to remove the line 'INFO?=          libtool' from the
port's Makefile in order to be able to "make install". Else :

Making install in doc
test -z "/usr/local/info/" || .././install-sh -c -d "/usr/local/info/"
 install  -o root -g wheel -m 444 './libtool.info'
'/usr/local/info//libtool.info'
Making install in tests
install-info --quiet /usr/local/info/libtool.info /usr/local/info/dir
install-info:No such file or directory
*** Error code 1

Stop in /usr/ports/devel/libtool15.
*** Error code 1

-- 
Olivier Smedts                                                 _
                                        ASCII ribbon campaign ( )
e-mail: olivier@gid0.org        - against HTML email & vCards  X
www: http://www.gid0.org    - against proprietary attachments / \

  "Il y a seulement 10 sortes de gens dans le monde :
  ceux qui comprennent le binaire,
  et ceux qui ne le comprennent pas."
Comment 2 Remko Lodder freebsd_committer freebsd_triage 2008-03-02 20:32:35 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-ports-bugs

reassign to ports team
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2008-03-02 21:39:16 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ade

Over to maintainer(s).
Comment 4 Ade Lovett freebsd_committer freebsd_triage 2008-03-15 04:53:57 UTC
State Changed
From-To: open->closed

Building word with various WITHOUT_* knobs (particularly WITHOUT_INFO) 
will break a considerable number of ports, not just libtool, that make 
use of makeinfo et al. -- ie: this is not libtool-specific. 

A case could possibly be made for some extra logic within Mk/bsd.port.mk 
where a port defines INFO, and then suitable checks are made for either 
a base-supplied makeinfo, or fallback to BUILD_DEPENDS on the texinfo 
port, but that is outside of the scope of this PR.