Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 279569 - Latest auto-tools broken for Prefix (where /bin/bash doesn't exist)
Summary: Latest auto-tools broken for Prefix (where /bin/bash doesn't exist)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All IRIX
: High critical (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-29 09:27 UTC by Stuart Shelton
Modified: 2009-07-31 07:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-07-29 09:27:33 UTC
I have the following packages installed:

sys-devel/automake-1.9.6-r2
sys-devel/autoconf-2.63-r01.1
sys-devel/automake-1.7.9-r1
sys-devel/automake-1.10.2-r00.1
sys-devel/automake-1.11
sys-devel/autoconf-wrapper-7
sys-devel/automake-wrapper-4

I believe that autoconf was very recently updated.


Now builds are breaking - for example openssh fails with:

 * Running eautoreconf in '/usr/opt/gentoo/var/tmp/portage/net-misc/openssh-5.2_p1-r02.1/work/openssh-5.2p1' ...
 * Running autoconf ...                                                                                                                                                                      [ !! ]

 * Failed Running autoconf !
 *
 * Include in your bugreport the contents of:
 *
 *   /usr/opt/gentoo/var/tmp/portage/net-misc/openssh-5.2_p1-r02.1/temp/autoconf.out
 
 * ERROR: net-misc/openssh-5.2_p1-r02.1 failed:
 *   Failed Running autoconf !

... and the 'autoconf.out' log contains:

***** autoconf *****
***** PWD: /usr/opt/gentoo/var/tmp/portage/net-misc/openssh-5.2_p1-r02.1/work/openssh-5.2p1
***** autoconf

/opt/gentoo/usr/lib/portage/bin/ebuild.sh: /opt/gentoo/usr/bin/autoconf: /bin/bash: bad interpreter: No such file or directory

... which is clearly wrong.

apr-1.3.7 fails with:

 * Running eautoreconf in '/usr/opt/gentoo/var/tmp/portage/dev-libs/apr-1.3.7/work/apr-1.3.7' ...
 * Running aclocal -I build -I /opt/gentoo/usr/share/aclocal ...                                                                                                                             [ !! ]

 * Failed Running aclocal !
 * 
 * Include in your bugreport the contents of:
 * 
 *   /usr/opt/gentoo/var/tmp/portage/dev-libs/apr-1.3.7/temp/aclocal.out

 * ERROR: dev-libs/apr-1.3.7 failed:
 *   Failed Running aclocal !

... and aclocal.out contains:

***** aclocal *****
***** PWD: /usr/opt/gentoo/var/tmp/portage/dev-libs/apr-1.3.7/work/apr-1.3.7
***** aclocal -I build -I /opt/gentoo/usr/share/aclocal

build/apr_network.m4:24: warning: underquoted definition of APR_TYPE_IN_ADDR
build/apr_network.m4:24:   run info '(automake)Extending aclocal'
build/apr_network.m4:24:   or see http://sources.redhat.com/automake/automake.html#Extending-aclocal
sh: autom4te:  not found
aclocal-1.10: autom4te failed with exit status: 127

sys-devel/automake-1.9.6-r2 fails with:

>>> Source unpacked in /usr/opt/gentoo/var/tmp/portage/sys-devel/automake-1.9.6-r2/work
>>> Compiling source in /usr/opt/gentoo/var/tmp/portage/sys-devel/automake-1.9.6-r2/work/automake-1.9.6 ...
 * econf: updating automake-1.9.6/lib/config.guess with /opt/gentoo/usr/share/gnuconfig/config.guess
 * econf: updating automake-1.9.6/lib/config.sub with /opt/gentoo/usr/share/gnuconfig/config.sub
./configure --prefix=/opt/gentoo/usr --build=mips-sgi-irix6.5 --host=mips-sgi-irix6.5 --mandir=/opt/gentoo/usr/share/man --infodir=/opt/gentoo/usr/share/info --datadir=/opt/gentoo/usr/share --sysconfdir=/opt/gentoo/etc --localstatedir=/opt/gentoo/var/lib --libdir=/opt/gentoo/usr/lib32
checking build system type... mips-sgi-irix6.5
checking for a BSD-compatible install... /opt/gentoo/usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for perl... /opt/gentoo/usr/bin/perl
checking for tex... no
checking whether autoconf is installed... no
configure: error: Autoconf 2.58 or better is required.
    Please make sure it is installed and in your PATH.

!!! Please attach the following file when seeking support:
!!! /usr/opt/gentoo/var/tmp/portage/sys-devel/automake-1.9.6-r2/work/automake-1.9.6/config.log
 * ERROR: sys-devel/automake-1.9.6-r2 failed:
 *   econf failed

... which is again because automake is a link to ac-wrapper.sh, and ac-wrapper.sh starts with "#!/bin/bash" :(
Comment 1 Stuart Shelton 2009-07-29 09:33:08 UTC
The root cause seems to be ${EPREFIX}/usr/$(get_libdir)/misc/ac-wrapper.sh starting with '#!/bin/bash' rather than '#!/usr/bin/env bash'.

Correcting this appears to fix all builds...
Comment 2 Markus Duft (RETIRED) gentoo-dev 2009-07-29 09:33:50 UTC
hmm... i fixed autoconf-wrapper-7 already, try syncing and reinstalling it.
Comment 3 Fabian Groffen gentoo-dev 2009-07-29 09:35:42 UTC
mduft: might have to interrevbump it to avoid many other people hitting the same  problem
Comment 4 Markus Duft (RETIRED) gentoo-dev 2009-07-29 09:51:14 UTC
mhm - yeah - but i though i'm the only one not having /bin/bash since i'm on interix ;)
Comment 5 Markus Duft (RETIRED) gentoo-dev 2009-07-29 10:02:58 UTC
interrev-bump done. update should work now.
Comment 6 Fabian Groffen gentoo-dev 2009-07-31 07:20:29 UTC
Markus: I fixed your fix.  No need to sed in the ebuild, as you can just edit the file in files/ since it carries a CVS $Header.  Because of that autosync can apply only the changes because it is tracked.