Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329071 - php-ext-source-r2.eclass has depcreated WANT_AUTOCONF="latest" WANT_AUTOMAKE="latest"
Summary: php-ext-source-r2.eclass has depcreated WANT_AUTOCONF="latest" WANT_AUTOMAKE=...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-20 08:23 UTC by Thomas Kahle (RETIRED)
Modified: 2011-02-17 09:25 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 Thomas Kahle (RETIRED) gentoo-dev 2010-07-20 08:23:47 UTC
As per summary. Triggers things like this

ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; ignoring.
ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; ignoring.

during emerge of e.g. dev-php5/pecl-yaz.


Reproducible: Always
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2010-07-26 11:41:03 UTC
This is a general error. It's not specific to this eclass. Here's what i put together:
(1) the eclass inherits autotools.eclass
(2) autotools.eclass exports WANT_AUTOCONF with the value taken from the environment, defaulting to "latest" if not set
(3) php-ext-source-r1.eclass calls phpize, which in turn calls ac-wrapper to update the php extension sources
(4) ac-wrapper outputs the messages you reported

@base-system: you maintain autotools.eclass - can you advise on how to solve this?
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2010-07-26 11:47:37 UTC
Just remove

WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"

from the eclass, and profit?
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-07-26 15:59:41 UTC
I did. autotools.eclass sets those as defaults, then exports them. At least, that's what I figured from line 20ff of it.
Comment 4 SpanKY gentoo-dev 2010-07-26 21:40:58 UTC
if you arent using the e* helpers from autotools.eclass and instead are executing autotools directly, why are you inheriting autotools.eclass ?
Comment 5 Matti Bickel (RETIRED) gentoo-dev 2010-07-27 07:51:14 UTC
After running phpize (which calls ac-wrapper directly), the eclass runs eautoreconf.
phpize is external to the eclass and installed along with php. Maybe I can patch it, but a generic solution might be more effective?
Comment 6 SpanKY gentoo-dev 2010-07-27 08:29:58 UTC
what if you ran phpize differently.  like so:
(PHP_AUTOCONF=eautoconf; PHP_AUTOHEADER=eautoheader; . ${PHPIZE}) || die

your other option might be to do something like:
autotools_run_tool ${PHPIZE}
Comment 7 Matti Bickel (RETIRED) gentoo-dev 2010-07-27 13:28:06 UTC
I will need to revisit that, but for now i fixed it with autotools_run_tool phpize

${PHPIZE} expands to the full path and kills the build process. I couldn't figure out why. For the moment, /usr/bin/phpize is a link to our (only) copy of phpize in /usr/$(get_libdir)/php5/bin/phpize

This may change once we introduce minor version slotting into the mix and there'll be multiple phpizes once again.
Comment 8 Matti Bickel (RETIRED) gentoo-dev 2010-11-03 21:27:13 UTC
Well the issue resurfaced with php-ext-source-r2.eclass
@vapier: I tried your other fix, but braindead phpize does test -x on the PHP_AUTOCONF you're passing it. Having no eautoconf binary ready kills the process.

I figured I /can/ run ${PHPIZE} (the full path version) if I mkdir the path before calling autotools_run_tool, but I'd rather avoid that.
Comment 9 Ole Markus With (RETIRED) gentoo-dev 2011-02-17 09:25:46 UTC
Should be fixed by mabi in php-5.3.5-r1