dev-lang/php: Always call elibtoolize
authorBrian Evans <grknight@gentoo.org>
Thu, 25 Oct 2018 15:03:27 +0000 (11:03 -0400)
committerBrian Evans <grknight@gentoo.org>
Thu, 25 Oct 2018 15:03:27 +0000 (11:03 -0400)
Certain functions of external commands, like pecl, may use an older
libtool which is included with PHP.

Now we always have an updated ltmain.sh by calling elibtoolize

Bug: https://bugs.gentoo.org/669566
Signed-off-by: Brian Evans <grknight@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11

dev-lang/php/php-7.1.23.ebuild
dev-lang/php/php-7.2.11.ebuild
dev-lang/php/php-7.3.0_rc3.ebuild

index 4f54e9a7a8561a47c9c1b72307f3aab3e276aba9..b5d12b4aed606dd1eaad0a039b8b455b671e022e 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit flag-o-matic eapi7-ver systemd
+inherit flag-o-matic eapi7-ver systemd autotools
 
 DESCRIPTION="The PHP language runtime engine"
 HOMEPAGE="https://secure.php.net/"
@@ -219,6 +219,11 @@ src_prepare() {
        sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
                sapi/fpm/php-fpm.conf.in \
                || die 'failed to move the include directory in php-fpm.conf'
+
+       # Bug 669566 - necessary so that build tools are updated for commands like pecl
+       # Force rebuilding aclocal.m4
+       rm -f aclocal.m4 || die "failed to remove aclocal.m4 in src_prepare"
+       eautoreconf
 }
 
 src_configure() {
index 761d9460704b89a6d23e3fce0068f684f95b65a9..818e210d1a58e94e0b33edb6c2db5eb65807e567 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit flag-o-matic eapi7-ver systemd
+inherit flag-o-matic eapi7-ver systemd autotools
 
 DESCRIPTION="The PHP language runtime engine"
 HOMEPAGE="https://secure.php.net/"
@@ -224,6 +224,11 @@ src_prepare() {
        sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
                sapi/fpm/php-fpm.conf.in \
                || die 'failed to move the include directory in php-fpm.conf'
+
+       # Bug 669566 - necessary so that build tools are updated for commands like pecl
+       # Force rebuilding aclocal.m4
+       rm -f aclocal.m4 || die "failed to remove aclocal.m4 in src_prepare"
+       eautoreconf
 }
 
 src_configure() {
index 38dbc82aca6b00f0e6cd251a90e7506d8e69cd03..865dac62201a8fbed49a743fd24278d9d73d9b16 100644 (file)
@@ -3,7 +3,7 @@
 
 EAPI=6
 
-inherit flag-o-matic eapi7-ver systemd
+inherit flag-o-matic eapi7-ver systemd autotools
 
 MY_PV=${PV/_rc/RC}
 DESCRIPTION="The PHP language runtime engine"
@@ -226,6 +226,11 @@ src_prepare() {
        sed -i "s~^include=.*$~include=${PHP_INI_DIR}/fpm.d/*.conf~" \
                sapi/fpm/php-fpm.conf.in \
                || die 'failed to move the include directory in php-fpm.conf'
+
+       # Bug 669566 - necessary so that build tools are updated for commands like pecl
+       # Force rebuilding aclocal.m4
+       rm -f aclocal.m4 || die "failed to remove aclocal.m4 in src_prepare"
+       eautoreconf
 }
 
 src_configure() {