Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401605 - autotools.eclass: eautoreconf always runs aclocal when WANT_AUTOMAKE="none"
Summary: autotools.eclass: eautoreconf always runs aclocal when WANT_AUTOMAKE="none"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 401505 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-31 07:17 UTC by bay
Modified: 2012-05-20 10:39 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 bay 2012-01-31 07:17:40 UTC
When one inherits autotools with WANT_AUTOMAKE="none", a package sys-devel/automake not placed in DEPEND.

But an utility aclocal from sys-devel/automake is always called, even with WANT_AUTOMAKE="none": eautoreconf->eaclocal->autotools_run_tool->aclocal. A build fails if aclocal is not founded.

Please, or place sys-devel/automake in DEPEND in this case, or don't run aclocal always when WANT_AUTOMAKE is "none".
Comment 1 SpanKY gentoo-dev 2012-01-31 15:05:18 UTC
eaclocal is only run if the package is using it already, and if the package is using automake already, you shouldn't be disabling the depend by setting it to "none"
Comment 2 Ulrich Müller gentoo-dev 2012-01-31 17:21:28 UTC
(In reply to comment #1)
> eaclocal is only run if the package is using it already, and if the package
> is using automake already, you shouldn't be disabling the depend by setting
> it to "none"

As far as I can see, eautoreconf calls eaclocal unconditionally. Does this imply that eautoreconf can't/shouldn't be used with WANT_AUTOMAKE="none"?
Comment 3 bay 2012-01-31 18:28:49 UTC
The related bug: https://bugs.gentoo.org/show_bug.cgi?id=401505
Comment 4 SpanKY gentoo-dev 2012-01-31 20:09:55 UTC
i misread the logic at the top of eaclocal()

will probably have to update that func to skip `aclocal` if the dep is disabled
Comment 5 SpanKY gentoo-dev 2012-01-31 20:09:58 UTC
*** Bug 401505 has been marked as a duplicate of this bug. ***
Comment 6 SpanKY gentoo-dev 2012-03-25 15:38:22 UTC
autoreconf itself unconditionally executes aclocal.  i'm not sure the few packages that can get by w/out running aclocal are worth supporting this workflow.  it's very hard to know if other m4 files are available that will need to be gathered up by aclocal so that autoconf will have them available.

in short, i think i'll change the eclass to always depend on automake.
Comment 7 SpanKY gentoo-dev 2012-05-20 10:39:47 UTC
the eclass now always depends on automake

http://sources.gentoo.org/eclass/autotools.eclass?r1=1.132&r2=1.133