Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37537 - am-wrapper.pl selects automake version 1.5 if configure.ac is the input file even if macros in configure.ac suggest use of version 1.6 (or 1.7)
Summary: am-wrapper.pl selects automake version 1.5 if configure.ac is the input file ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-07 16:05 UTC by Samuel Newbold
Modified: 2004-09-01 06:36 UTC (History)
1 user (show)

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 Samuel Newbold 2004-01-07 16:05:59 UTC
the script am-wrapper.pl acts basically as documented in the comments at the beginning of the script, the problem is that one of these behaviors is counter-intuitive. If a package has a configure.ac file rather than a configure.in file, and an acinclude.m4 rather than aclocal.m4 then any directives as to the version of automake in either of those files will be ignored and automake 1.5 will be used. The autoconf documentation implies that configure.ac is the preferred version and so the test for the AC_PREREQ macro should be in that file. This seems to stem from the 1.5 version of this script which decided that if configure.ac existed then the most current version of automake should be used. As the script was updated, this test was left, causing autoconf 1.5 to be preferred.
It is important to note that the first time this script is run is when aclocal is run, thus it may be possible for acinclude.m4 to be processed using version 1.5, and then a version of autoconf to be used on configure.ac to get version 1.6 to be used on makefile.am

Reproducible: Always
Steps to Reproduce:
1.write a package that requires automake version 1.6
2.use configure.ac for autoconf
3.run autoreconf without aclocal.h or configure already being present

Actual Results:  
errors like:
automake-1.5: configure.ac: `AM_INIT_AUTOMAKE' must be used


Expected Results:  
compilation without errors

There is a simple work-around, namely set the environment variable
"WANT_AUTOMAKE=1.6". Once the package compiles once, files such as aclocal.m4 or
configure will give the versions of their creators and compiling will proceed
without the environment variable.
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-03 12:29:59 UTC
It has to do with kde ...  Can the KDE guys tell us if the kde system still
need 1.5 automake version?
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2004-02-03 12:38:14 UTC
The more recent versions of kde (3.1 and 3.2) work fine with automake 1.7 (and prefer it I do believe).

Portage still includes 3.0 for posterity, which I *believe* works okay with 1.6, but I don't know for sure.

There are still (kde) applications in portage, though, that demand the older automake.

Is the thought here to remove this support?
Comment 3 SpanKY gentoo-dev 2004-08-11 19:45:34 UTC
this applies to automake-1.8.5-r1 ? or automake-1.8.3 ?
Comment 4 SpanKY gentoo-dev 2004-09-01 06:36:24 UTC
re-open if 1.8.5-r1 doesnt address this issue (i'm not sure how to test if it's been fixed ...