Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 56670 - ac-wrapper.pl incorrectly calls autoheader-2.13 instead of 2.59 when template file specified
Summary: ac-wrapper.pl incorrectly calls autoheader-2.13 instead of 2.59 when template...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 66478
  Show dependency tree
 
Reported: 2004-07-11 04:22 UTC by Ákos Maróy
Modified: 2004-10-25 16:16 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 Ákos Maróy 2004-07-11 04:22:45 UTC
the autoconf package installs both autoconf 2.13 and 2.59, and uses the /usr/lib/autoconf/ac-wrapper.pl wrapper to determine which one to call. the comments in the beginning of the wrapper script say the following:

# - defaults to autoconf-2.13
# - runs autoconf-2.59 if it exists and...
#   - envvar WANT_AUTOCONF is set to `2.5'
#     -or-
#   - configure.ac is present
#     -or-
#   - `configure.in' contains AC_PREREQ and the value's 3 first letters
#     are stringwise greater than '2.1'
#     -or-
#   - `configure' is already present and was generated by autoconf greater than
#     '2.1'
#     -or-
#   - `Makefile.in' was generated by automake-1.6 or superior, which
#     specifically needs autoconf-2.59


but, even if AC_PREREQ is set to 2.5 or 2.59 in a configure.ac file, the wrapper calls autoheader 2.13 if configure.ac is explicitly specified as a command line argument.

Reproducible: Always
Steps to Reproduce:
1. create a minimal configure.ac file, and put it into a seperate directory than the current one. put AC_PREREQ(2.59) into this configure.ac
2. invoke autoheader with the configure.ac as an argument
3. see that autoheader 2.13 is invoked, instead of 2.59

Actual Results:  
$ autoheader etc/configure.ac
FATAL ERROR: Autoconf version 2.59 or higher is required for this script
/* config.h.in.  Generated automatically from etc/configure.ac by autoheader.  */


Expected Results:  
calling autoheader-2.59 explicitly runs the correct verson:

$ autoheader-2.59 etc/configure.ac


and of course there is a reason I would want to run autoheader-2.59, as it
actually generates the header file in my case, whereas 2.13 doesn't. here's the
configure.ac file I used for testing:


AC_INIT(Hello, 1.0)
AC_PREREQ(2.59)
AC_CONFIG_SRCDIR(src/main.cxx)
AC_CONFIG_HEADERS(src/configure.h)
AC_PROG_CXX()
AC_CONFIG_FILES(Makefile)
AC_OUTPUT()


and the directory structure is as follows:
.
|-- Makefile.in
|-- etc
|   `-- configure.ac
`-- src
    |-- configure.h.in
    `-- main.cxx
Comment 1 jago25_98 2004-09-30 07:01:39 UTC
This is stopping me from emerging kde and arts. 
I have tried replacing /usr/lib/autoconf/ac-wrapper.pl as referenced in a bug that I can no longer find. Have also tried re-emerging autoconf

Basic steps to reproduce:

root@betty.net[/usr/bin] # auto[tab]
auto.ftpfs       autoconf-2.59    autoheader-2.59  automake-1.4     autool           autoreconf-2.57  autoscan-2.59    autozen
auto.sshfs       autocutsel       autom4te         automake-1.5     autopoint        autoreconf-2.59  autoupdate       
autoconf         autoheader       autom4te-2.57    automake-1.6     autopopups       autoscan         autoupdate-2.13  
autoconf-2.13    autoheader-2.13  autom4te-2.59    automake-1.7     autoreconf       autoscan-2.13    autoupdate-2.57  
autoconf-2.57    autoheader-2.57  automake         automake-1.8     autoreconf-2.13  autoscan-2.57    autoupdate-2.59  

root@betty.net[/usr/bin] # autoheader
/usr/bin/m4: configure.in: No such file or directory

root@betty.net[/usr/bin] # autoheader --version
Autoconf version 2.13
root@betty.net[/usr/bin] # 
Comment 2 SpanKY gentoo-dev 2004-10-20 18:03:11 UTC
fixed in autoconf-2.59-r6+