This is a real fix for the warnings like,
ac-wrapper: warning: invalid WANT_AUTOCONF 'latest'; ignoring.
reported in bugs #329071 and #549268. In the first of the two, vapier
suggested running $PHPIZE through the autotools_run_tool wrapper, but
this caused builds to fail. In bug #329071, that's where the story
ends.
It turns out, the build failures were due to $PHPIZE containing an
absolute path. Vapier fixed the path handling in autotools.eclass
(commit
ecd9954), so now we are able to fix this properly in
php-ext-source-r2.eclass.
Bug: 329071
Bug: 549268
# Runs phpize and autotools in addition to the standard src_unpack
php-ext-source-r2_phpize() {
if [[ "${PHP_EXT_SKIP_PHPIZE}" != 'yes' ]] ; then
- # Create configure out of config.m4
- # I wish I could run this to solve #329071, but I cannot
- #autotools_run_tool ${PHPIZE}
- ${PHPIZE}
+ # Create configure out of config.m4. We use autotools_run_tool
+ # to avoid some warnings about WANT_AUTOCONF and
+ # WANT_AUTOMAKE (see bugs #329071 and #549268).
+ autotools_run_tool ${PHPIZE}
# force run of libtoolize and regeneration of related autotools
# files (bug 220519)
rm aclocal.m4