dev-lang/php: new revisions fixing opcache installation location logic.
authorMichael Orlitzky <mjo@gentoo.org>
Mon, 11 Jul 2016 14:37:48 +0000 (10:37 -0400)
committerMichael Orlitzky <mjo@gentoo.org>
Mon, 11 Jul 2016 14:38:09 +0000 (10:38 -0400)
We install the opcache extension with a call to dolib.so, which
requires an earlier call to "into" to set its installation
location. If the user enables any SAPIs other than apache2, that
happens incidentally. However, if only the apache2 SAPI is enabled,
the installation location is never set, ultimately causing the
extension to fail to load. This is fixed by adding a call to "into"
directly before the dolib.so call.

Two calls to use_if_iuse were also replaced with the simpler "use".

Gentoo-Bug: 550676

Package-Manager: portage-2.2.28

dev-lang/php/php-5.6.23-r2.ebuild [moved from dev-lang/php/php-5.6.23-r1.ebuild with 99% similarity]
dev-lang/php/php-7.0.8-r1.ebuild [moved from dev-lang/php/php-7.0.8.ebuild with 99% similarity]

similarity index 99%
rename from dev-lang/php/php-5.6.23-r1.ebuild
rename to dev-lang/php/php-5.6.23-r2.ebuild
index 0696638dbbe68effa3250b163c39bbe22e77aabb..071afe4e72df31c584a031fccd80b3a244388545 100644 (file)
@@ -255,7 +255,7 @@ php_install_ini() {
        dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
        dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
 
-       if use_if_iuse opcache; then
+       if use opcache; then
                elog "Adding opcache to $PHP_EXT_INI_DIR"
                echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
                         "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
@@ -666,7 +666,8 @@ src_install() {
        done
 
        # Installing opcache module
-       if use_if_iuse opcache ; then
+       if use opcache ; then
+               into "${PHP_DESTDIR#${EPREFIX}}"
                dolib.so "modules/opcache$(get_libname)"
        fi
 
similarity index 99%
rename from dev-lang/php/php-7.0.8.ebuild
rename to dev-lang/php/php-7.0.8-r1.ebuild
index 5925bb3a4da422991fb714be7265bb8855dab5e4..9bd15572e425781de0e10abdda5436f4baa2ef2e 100644 (file)
@@ -246,7 +246,7 @@ php_install_ini() {
        dodir "${PHP_EXT_INI_DIR#${EPREFIX}}"
        dodir "${PHP_EXT_INI_DIR_ACTIVE#${EPREFIX}}"
 
-       if use_if_iuse opcache; then
+       if use opcache; then
                elog "Adding opcache to $PHP_EXT_INI_DIR"
                echo "zend_extension=${PHP_DESTDIR}/$(get_libdir)/opcache.so" >> \
                         "${D}/${PHP_EXT_INI_DIR}"/opcache.ini
@@ -660,7 +660,8 @@ src_install() {
        done
 
        # Installing opcache module
-       if use_if_iuse opcache ; then
+       if use opcache ; then
+               into "${PHP_DESTDIR#${EPREFIX}}"
                dolib.so "modules/opcache$(get_libname)"
        fi