commit:     46e3bfa0e7adc1d2e5723403d8ec29aa8a01cd99
Author:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 30 14:53:57 2021 +0000
Commit:     Michael Orlitzky <mjo <AT> gentoo <DOT> org>
CommitDate: Sat Jan 30 14:57:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46e3bfa0

dev-lang/php: new revisions with updated oracle dependencies.

For a while, the dev-db/oracle-instantclient-basic package has been an
"alias" for dev-db/oracle-instantclient[sdk], to ease migration to the
latter. This commit adds revisions for the three supported PHP slots
to finally update the dependency. I can't really test the Oracle
client, but this should be at least as good as it was, given that
oracle-instantclient-basic was just pulling in oracle-instantclient
anyway.

I've also added a REQUIRED_USE blocker for LDAP when building PHP with
Oracle support. There are several reports that the instant client
brings its own LDAP library, and that linking it against another one
causes crashes. Again, who knows. Better safe than sorry?

Closes: https://bugs.gentoo.org/765634
Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>

 .../php/{php-8.0.1.ebuild => php-7.3.26-r1.ebuild} | 263 +++++++++++----------
 .../php/{php-8.0.1.ebuild => php-7.4.14-r1.ebuild} |  33 ++-
 .../php/{php-8.0.1.ebuild => php-8.0.1-r1.ebuild}  |   4 +-
 3 files changed, 162 insertions(+), 138 deletions(-)

diff --git a/dev-lang/php/php-8.0.1.ebuild b/dev-lang/php/php-7.3.26-r1.ebuild
similarity index 81%
copy from dev-lang/php/php-8.0.1.ebuild
copy to dev-lang/php/php-7.3.26-r1.ebuild
index bda8c364a3e..7fbb614a6a3 100644
--- a/dev-lang/php/php-8.0.1.ebuild
+++ b/dev-lang/php/php-7.3.26-r1.ebuild
@@ -3,11 +3,9 @@
 
 EAPI="7"
 
-WANT_AUTOMAKE="none"
-
 inherit flag-o-matic systemd autotools
 
-MY_PV=${PV/_rc/rc}
+MY_PV=${PV/_rc/RC}
 DESCRIPTION="The PHP language runtime engine"
 HOMEPAGE="https://www.php.net/";
 SRC_URI="https://www.php.net/distributions/${P}.tar.xz";
@@ -35,47 +33,21 @@ IUSE="${IUSE}
 
 IUSE="${IUSE} acl argon2 bcmath berkdb bzip2 calendar cdb cjk
        coverage +ctype curl debug
-       enchant exif ffi +fileinfo +filter firebird
-       +flatfile ftp gd gdbm gmp +iconv imap inifile
-       intl iodbc ipv6 kerberos ldap ldap-sasl libedit libressl lmdb
+       enchant exif +fileinfo +filter firebird
+       +flatfile ftp gd gdbm gmp +hash +iconv imap inifile
+       intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl lmdb
        mhash mssql mysql mysqli nls
        oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
-       readline selinux +session session-mm sharedmem
+       readline recode selinux +session session-mm sharedmem
        +simplexml snmp soap sockets sodium spell sqlite ssl
-       sysvipc systemd test tidy +tokenizer tokyocabinet truetype unicode webp
-       +xml xmlreader xmlwriter xpm xslt zip zlib"
-
-# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
-REQUIRED_USE="
-       || ( cli cgi fpm apache2 embed phpdbg )
-       cli? ( ^^ ( readline libedit ) )
-       !cli? ( ?? ( readline libedit ) )
-       truetype? ( gd zlib )
-       webp? ( gd zlib )
-       cjk? ( gd zlib )
-       exif? ( gd zlib )
-       xpm? ( gd zlib )
-       gd? ( zlib )
-       simplexml? ( xml )
-       soap? ( xml )
-       xmlreader? ( xml )
-       xmlwriter? ( xml )
-       xslt? ( xml )
-       ldap-sasl? ( ldap )
-       qdbm? ( !gdbm )
-       session-mm? ( session !threads )
-       mysql? ( || ( mysqli pdo ) )
-       firebird? ( pdo )
-       mssql? ( pdo )
-"
-
-RESTRICT="!test? ( test )"
+       sysvipc systemd test tidy +tokenizer tokyocabinet truetype unicode wddx 
webp
+       +xml xmlreader xmlwriter xmlrpc xpm xslt zip zip-encryption zlib"
 
 # The supported (that is, autodetected) versions of BDB are listed in
 # the ./configure script. Other versions *work*, but we need to stick to
 # the ones that can be detected to avoid a repeat of bug #564824.
 COMMON_DEPEND="
-       >=app-eselect/eselect-php-0.9.7[apache2?,fpm?]
+       >=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
        >=dev-libs/libpcre2-10.30[unicode]
        fpm? ( acl? ( sys-apps/acl ) )
        apache2? ( www-servers/apache[apache2_modules_unixd(+),threads=] )
@@ -89,30 +61,33 @@ COMMON_DEPEND="
        bzip2? ( app-arch/bzip2:0= )
        cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
        coverage? ( dev-util/lcov )
-       curl? ( >=net-misc/curl-7.29.0 )
-       enchant? ( app-text/enchant:2 )
-       ffi? ( >=dev-libs/libffi-3.0.11 )
+       curl? ( >=net-misc/curl-7.10.5 )
+       enchant? ( <app-text/enchant-2.0:0 )
        firebird? ( dev-db/firebird )
-       gd? ( >=virtual/jpeg-0-r3:0 media-libs/libpng:0= )
+       gd? ( >=virtual/jpeg-0-r3:0 media-libs/libpng:0= 
>=sys-libs/zlib-1.2.0.4 )
        gdbm? ( >=sys-libs/gdbm-1.8.0:0= )
        gmp? ( dev-libs/gmp:0= )
        iconv? ( virtual/libiconv )
        imap? ( >=virtual/imap-c-client-2[kerberos=,ssl=] )
        intl? ( dev-libs/icu:= )
+       iodbc? ( dev-db/libiodbc )
        kerberos? ( virtual/krb5 )
        ldap? ( >=net-nds/openldap-1.2.11 )
-       ldap-sasl? ( dev-libs/cyrus-sasl )
+       ldap-sasl? ( dev-libs/cyrus-sasl >=net-nds/openldap-1.2.11 )
        libedit? ( dev-libs/libedit )
        lmdb? ( dev-db/lmdb:= )
        mssql? ( dev-db/freetds[mssql] )
        nls? ( sys-devel/gettext )
-       oci8-instant-client? ( dev-db/oracle-instantclient-basic )
-       odbc? ( iodbc? ( dev-db/libiodbc ) !iodbc? ( >=dev-db/unixODBC-1.8.13 ) 
)
-       postgres? ( >=dev-db/postgresql-9.1:* )
+       oci8-instant-client? ( dev-db/oracle-instantclient[sdk] )
+       odbc? ( >=dev-db/unixODBC-1.8.13 )
+       postgres? ( dev-db/postgresql:* )
        qdbm? ( dev-db/qdbm )
        readline? ( sys-libs/readline:0= )
+       recode? ( app-text/recode:0= )
        session-mm? ( dev-libs/mm )
+       simplexml? ( >=dev-libs/libxml2-2.6.8 )
        snmp? ( >=net-analyzer/net-snmp-5.2 )
+       soap? ( >=dev-libs/libxml2-2.6.8 )
        sodium? ( dev-libs/libsodium:= )
        spell? ( >=app-text/aspell-0.50 )
        sqlite? ( >=dev-db/sqlite-3.7.6.3 )
@@ -124,11 +99,16 @@ COMMON_DEPEND="
        tokyocabinet? ( dev-db/tokyocabinet )
        truetype? ( =media-libs/freetype-2* )
        unicode? ( dev-libs/oniguruma:= )
+       wddx? ( >=dev-libs/libxml2-2.6.8 )
        webp? ( media-libs/libwebp:0= )
-       xml? ( >=dev-libs/libxml2-2.9.0 )
+       xml? ( >=dev-libs/libxml2-2.6.8 )
+       xmlrpc? ( >=dev-libs/libxml2-2.6.8 virtual/libiconv )
+       xmlreader? ( >=dev-libs/libxml2-2.6.8 )
+       xmlwriter? ( >=dev-libs/libxml2-2.6.8 )
        xpm? ( x11-libs/libXpm )
-       xslt? ( dev-libs/libxslt )
-       zip? ( >=dev-libs/libzip-1.2.0:= )
+       xslt? ( dev-libs/libxslt >=dev-libs/libxml2-2.6.8 )
+       zip? ( >=sys-libs/zlib-1.2.0.4:0= )
+       zip-encryption? ( >=dev-libs/libzip-1.2.0:= )
        zlib? ( >=sys-libs/zlib-1.2.0.4:0= )
 "
 
@@ -147,9 +127,42 @@ DEPEND="${COMMON_DEPEND}
 
 BDEPEND="virtual/pkgconfig"
 
-PHP_MV="$(ver_cut 1)"
+# Without USE=readline or libedit, the interactive "php -a" CLI will hang.
+# The Oracle instant client provides its own incompatible ldap library.
+REQUIRED_USE="
+       || ( cli cgi fpm apache2 embed phpdbg )
+       cli? ( ^^ ( readline libedit ) )
+       truetype? ( gd zlib )
+       webp? ( gd zlib )
+       cjk? ( gd zlib )
+       exif? ( gd zlib )
+       xpm? ( gd zlib )
+       gd? ( zlib )
+       simplexml? ( xml )
+       soap? ( xml )
+       wddx? ( xml )
+       xmlrpc? ( || ( xml iconv ) )
+       xmlreader? ( xml )
+       xslt? ( xml )
+       ldap-sasl? ( ldap )
+       mhash? ( hash )
+       oci8-instant-client? ( !ldap )
+       phar? ( hash )
+       qdbm? ( !gdbm )
+       readline? ( !libedit )
+       recode? ( !imap !mysqli !mysql )
+       session-mm? ( session !threads )
+       mysql? ( || ( mysqli pdo ) )
+       zip-encryption? ( zip )
+"
+
+RESTRICT="!test? ( test )"
 
-PATCHES=( "${FILESDIR}/php-iodbc-header-location.patch" )
+PATCHES=(
+       "${FILESDIR}/php-freetype-2.9.1.patch"
+)
+
+PHP_MV="$(ver_cut 1)"
 
 php_install_ini() {
        local phpsapi="${1}"
@@ -219,11 +232,10 @@ src_prepare() {
                sapi/fpm/php-fpm.conf.in \
                || die 'failed to move the include directory in php-fpm.conf'
 
-       # Emulate buildconf to support cross-compilation
-       rm -fr aclocal.m4 autom4te.cache config.cache \
-               configure main/php_config.h.in || die
-       eautoconf --force
-       eautoheader
+       # 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() {
@@ -242,91 +254,101 @@ src_configure() {
                --with-libdir="$(get_libdir)"
                --localstatedir="${EPREFIX}/var"
                --without-pear
-               $(use_enable threads zts)
+               $(use_enable threads maintainer-zts)
        )
 
        our_conf+=(
                $(use_with argon2 password-argon2 "${EPREFIX}/usr")
-               $(use_enable bcmath)
+               $(use_enable bcmath bcmath)
                $(use_with bzip2 bz2 "${EPREFIX}/usr")
-               $(use_enable calendar)
+               $(use_enable calendar calendar)
                $(use_enable coverage gcov)
-               $(use_enable ctype)
-               $(use_with curl)
+               $(use_enable ctype ctype)
+               $(use_with curl curl "${EPREFIX}/usr")
                $(use_enable xml dom)
-               $(use_with enchant)
-               $(use_enable exif)
-               $(use_with ffi)
-               $(use_enable fileinfo)
-               $(use_enable filter)
-               $(use_enable ftp)
+               $(use_with enchant enchant "${EPREFIX}/usr")
+               $(use_enable exif exif)
+               $(use_enable fileinfo fileinfo)
+               $(use_enable filter filter)
+               $(use_enable ftp ftp)
                $(use_with nls gettext "${EPREFIX}/usr")
                $(use_with gmp gmp "${EPREFIX}/usr")
+               $(use_enable hash hash)
                $(use_with mhash mhash "${EPREFIX}/usr")
                $(use_with iconv iconv \
                        $(use elibc_glibc || use elibc_musl || use 
elibc_FreeBSD || echo "${EPREFIX}/usr"))
-               $(use_enable intl)
-               $(use_enable ipv6)
-               $(use_with kerberos)
-               $(use_with xml libxml)
+               $(use_enable intl intl)
+               $(use_enable ipv6 ipv6)
+               $(use_enable json json)
+               $(use_with kerberos kerberos "${EPREFIX}/usr")
+               $(use_enable xml libxml)
+               $(use_with xml libxml-dir "${EPREFIX}/usr")
                $(use_enable unicode mbstring)
-               $(use_with ssl openssl)
-               $(use_enable pcntl)
-               $(use_enable phar)
-               $(use_enable pdo)
-               $(use_enable opcache)
+               $(use_with unicode onig "${EPREFIX}/usr")
+               $(use_with ssl openssl "${EPREFIX}/usr")
+               $(use_with ssl openssl-dir "${EPREFIX}/usr")
+               $(use_enable pcntl pcntl)
+               $(use_enable phar phar)
+               $(use_enable pdo pdo)
+               $(use_enable opcache opcache)
                $(use_with postgres pgsql "${EPREFIX}/usr")
-               $(use_enable posix)
+               $(use_enable posix posix)
                $(use_with spell pspell "${EPREFIX}/usr")
-               $(use_enable simplexml)
+               $(use_with recode recode "${EPREFIX}/usr")
+               $(use_enable simplexml simplexml)
                $(use_enable sharedmem shmop)
                $(use_with snmp snmp "${EPREFIX}/usr")
-               $(use_enable soap)
-               $(use_enable sockets)
-               $(use_with sodium)
-               $(use_with sqlite sqlite3)
+               $(use_enable soap soap)
+               $(use_enable sockets sockets)
+               $(use_with sodium sodium "${EPREFIX}/usr")
+               $(use_with sqlite sqlite3 "${EPREFIX}/usr")
                $(use_enable sysvipc sysvmsg)
                $(use_enable sysvipc sysvsem)
                $(use_enable sysvipc sysvshm)
                $(use_with tidy tidy "${EPREFIX}/usr")
-               $(use_enable tokenizer)
-               $(use_enable xml)
-               $(use_enable xmlreader)
-               $(use_enable xmlwriter)
-               $(use_with xslt xsl)
-               $(use_with zip)
+               $(use_enable tokenizer tokenizer)
+               $(use_enable wddx wddx)
+               $(use_enable xml xml)
+               $(use_enable xmlreader xmlreader)
+               $(use_enable xmlwriter xmlwriter)
+               $(use_with xmlrpc xmlrpc)
+               $(use_with xslt xsl "${EPREFIX}/usr")
+               $(use_enable zip zip)
+               $(use_with zip-encryption libzip "${EPREFIX}/usr")
                $(use_with zlib zlib "${EPREFIX}/usr")
-               $(use_enable debug)
+               $(use_enable debug debug)
        )
 
        # DBA support
        if use cdb || use berkdb || use flatfile || use gdbm || use inifile \
                || use qdbm || use lmdb || use tokyocabinet ; then
-               our_conf+=( "--enable-dba" )
+               our_conf+=( "--enable-dba${shared}" )
        fi
 
        # DBA drivers support
        our_conf+=(
-               $(use_with cdb)
+               $(use_with cdb cdb)
                $(use_with berkdb db4 "${EPREFIX}/usr")
-               $(use_enable flatfile)
+               $(use_enable flatfile flatfile)
                $(use_with gdbm gdbm "${EPREFIX}/usr")
-               $(use_enable inifile)
+               $(use_enable inifile inifile)
                $(use_with qdbm qdbm "${EPREFIX}/usr")
-               $(use_with tokyocabinet tcadb "${EPREFIX}/usr")
                $(use_with lmdb lmdb "${EPREFIX}/usr")
        )
 
        # Support for the GD graphics library
        our_conf+=(
-               $(use_with truetype freetype)
+               $(use_with truetype freetype-dir "${EPREFIX}/usr")
                $(use_enable cjk gd-jis-conv)
-               $(use_with gd jpeg)
-               $(use_with xpm)
-               $(use_with webp)
+               $(use_with gd jpeg-dir "${EPREFIX}/usr")
+               $(use_with gd png-dir "${EPREFIX}/usr")
+               $(use_with xpm xpm-dir "${EPREFIX}/usr")
        )
+       if use webp; then
+               our_conf+=( --with-webp-dir="${EPREFIX}/usr" )
+       fi
        # enable gd last, so configure can pick up the previous settings
-       our_conf+=( $(use_enable gd) )
+       our_conf+=( $(use_with gd gd) )
 
        # IMAP support
        if use imap ; then
@@ -336,11 +358,14 @@ src_configure() {
                )
        fi
 
+       # Interbase/firebird support
+       our_conf+=( $(use_with firebird interbase "${EPREFIX}/usr") )
+
        # LDAP support
        if use ldap ; then
                our_conf+=(
                        $(use_with ldap ldap "${EPREFIX}/usr")
-                       $(use_with ldap-sasl)
+                       $(use_with ldap-sasl ldap-sasl "${EPREFIX}/usr")
                )
        fi
 
@@ -356,25 +381,10 @@ src_configure() {
        fi
 
        # ODBC support
-       if use odbc && use iodbc ; then
-               our_conf+=(
-                       --without-unixODBC
-                       --with-iodbc
-                       $(use_with pdo pdo-odbc "iODBC,${EPREFIX}/usr")
-               )
-       elif use odbc ; then
-               our_conf+=(
-                       --with-unixODBC="${EPREFIX}/usr"
-                       --without-iodbc
-                       $(use_with pdo pdo-odbc "unixODBC,${EPREFIX}/usr")
-               )
-       else
-               our_conf+=(
-                       --without-unixODBC
-                       --without-iodbc
-                       --without-pdo-odbc
-               )
-       fi
+       our_conf+=(
+               $(use_with odbc unixODBC "${EPREFIX}/usr")
+               $(use_with iodbc iodbc "${EPREFIX}/usr")
+       )
 
        # Oracle support
        our_conf+=( $(use_with oci8-instant-client oci8) )
@@ -385,8 +395,9 @@ src_configure() {
                        $(use_with mssql pdo-dblib "${EPREFIX}/usr")
                        $(use_with mysql pdo-mysql "${mysqllib}")
                        $(use_with postgres pdo-pgsql)
-                       $(use_with sqlite pdo-sqlite)
+                       $(use_with sqlite pdo-sqlite "${EPREFIX}/usr")
                        $(use_with firebird pdo-firebird "${EPREFIX}/usr")
+                       $(use_with odbc pdo-odbc "unixODBC,${EPREFIX}/usr")
                        $(use_with oci8-instant-client pdo-oci)
                )
        fi
@@ -394,24 +405,28 @@ src_configure() {
        # readline/libedit support
        our_conf+=(
                $(use_with readline readline "${EPREFIX}/usr")
-               $(use_with libedit)
+               $(use_with libedit libedit "${EPREFIX}/usr")
        )
 
        # Session support
        if use session ; then
                our_conf+=( $(use_with session-mm mm "${EPREFIX}/usr") )
        else
-               our_conf+=( $(use_enable session) )
+               our_conf+=( $(use_enable session session) )
        fi
 
        # Use pic for shared modules such as apache2's mod_php
        our_conf+=( --with-pic )
 
        # we use the system copy of pcre
-       # --with-external-pcre affects ext/pcre
+       # --with-pcre-regex affects ext/pcre
+       # --with-pcre-dir affects ext/filter and ext/zip
+       # --with-pcre-valgrind cannot be enabled with system pcre
        # Many arches don't support pcre-jit
        our_conf+=(
-               --with-external-pcre
+               --with-pcre-regex="${EPREFIX}/usr"
+               --with-pcre-dir="${EPREFIX}/usr"
+               --without-pcre-valgrind
                --without-pcre-jit
        )
 
@@ -538,7 +553,7 @@ src_install() {
                                # We're specifically not using emake 
install-sapi as libtool
                                # may cause unnecessary relink failures (see 
bug #351266)
                                insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
-                               newins ".libs/libphp$(get_libname)" \
+                               newins ".libs/libphp${PHP_MV}$(get_libname)" \
                                           "libphp${PHP_MV}$(get_libname)"
                                keepdir "/usr/$(get_libdir)/apache2/modules"
                        else
@@ -561,7 +576,7 @@ src_install() {
                                                source="sapi/fpm/php-fpm"
                                                ;;
                                        embed)
-                                               
source="libs/libphp$(get_libname)"
+                                               
source="libs/libphp${PHP_MV}$(get_libname)"
                                                ;;
                                        phpdbg)
                                                source="sapi/phpdbg/phpdbg"

diff --git a/dev-lang/php/php-8.0.1.ebuild b/dev-lang/php/php-7.4.14-r1.ebuild
similarity index 96%
copy from dev-lang/php/php-8.0.1.ebuild
copy to dev-lang/php/php-7.4.14-r1.ebuild
index bda8c364a3e..b2e7b3262c0 100644
--- a/dev-lang/php/php-8.0.1.ebuild
+++ b/dev-lang/php/php-7.4.14-r1.ebuild
@@ -7,7 +7,7 @@ WANT_AUTOMAKE="none"
 
 inherit flag-o-matic systemd autotools
 
-MY_PV=${PV/_rc/rc}
+MY_PV=${PV/_rc/RC}
 DESCRIPTION="The PHP language runtime engine"
 HOMEPAGE="https://www.php.net/";
 SRC_URI="https://www.php.net/distributions/${P}.tar.xz";
@@ -37,15 +37,16 @@ IUSE="${IUSE} acl argon2 bcmath berkdb bzip2 calendar cdb 
cjk
        coverage +ctype curl debug
        enchant exif ffi +fileinfo +filter firebird
        +flatfile ftp gd gdbm gmp +iconv imap inifile
-       intl iodbc ipv6 kerberos ldap ldap-sasl libedit libressl lmdb
+       intl iodbc ipv6 +json kerberos ldap ldap-sasl libedit libressl lmdb
        mhash mssql mysql mysqli nls
        oci8-instant-client odbc +opcache pcntl pdo +phar +posix postgres qdbm
        readline selinux +session session-mm sharedmem
        +simplexml snmp soap sockets sodium spell sqlite ssl
        sysvipc systemd test tidy +tokenizer tokyocabinet truetype unicode webp
-       +xml xmlreader xmlwriter xpm xslt zip zlib"
+       +xml xmlreader xmlwriter xmlrpc xpm xslt zip zlib"
 
 # Without USE=readline or libedit, the interactive "php -a" CLI will hang.
+# The Oracle instant client provides its own incompatible ldap library.
 REQUIRED_USE="
        || ( cli cgi fpm apache2 embed phpdbg )
        cli? ( ^^ ( readline libedit ) )
@@ -58,10 +59,12 @@ REQUIRED_USE="
        gd? ( zlib )
        simplexml? ( xml )
        soap? ( xml )
+       xmlrpc? ( xml iconv )
        xmlreader? ( xml )
        xmlwriter? ( xml )
        xslt? ( xml )
        ldap-sasl? ( ldap )
+       oci8-instant-client? ( !ldap )
        qdbm? ( !gdbm )
        session-mm? ( session !threads )
        mysql? ( || ( mysqli pdo ) )
@@ -75,7 +78,7 @@ RESTRICT="!test? ( test )"
 # the ./configure script. Other versions *work*, but we need to stick to
 # the ones that can be detected to avoid a repeat of bug #564824.
 COMMON_DEPEND="
-       >=app-eselect/eselect-php-0.9.7[apache2?,fpm?]
+       >=app-eselect/eselect-php-0.9.1[apache2?,fpm?]
        >=dev-libs/libpcre2-10.30[unicode]
        fpm? ( acl? ( sys-apps/acl ) )
        apache2? ( www-servers/apache[apache2_modules_unixd(+),threads=] )
@@ -89,8 +92,8 @@ COMMON_DEPEND="
        bzip2? ( app-arch/bzip2:0= )
        cdb? ( || ( dev-db/cdb dev-db/tinycdb ) )
        coverage? ( dev-util/lcov )
-       curl? ( >=net-misc/curl-7.29.0 )
-       enchant? ( app-text/enchant:2 )
+       curl? ( >=net-misc/curl-7.10.5 )
+       enchant? ( <app-text/enchant-2.0:0 )
        ffi? ( >=dev-libs/libffi-3.0.11 )
        firebird? ( dev-db/firebird )
        gd? ( >=virtual/jpeg-0-r3:0 media-libs/libpng:0= )
@@ -106,9 +109,9 @@ COMMON_DEPEND="
        lmdb? ( dev-db/lmdb:= )
        mssql? ( dev-db/freetds[mssql] )
        nls? ( sys-devel/gettext )
-       oci8-instant-client? ( dev-db/oracle-instantclient-basic )
+       oci8-instant-client? ( dev-db/oracle-instantclient[sdk] )
        odbc? ( iodbc? ( dev-db/libiodbc ) !iodbc? ( >=dev-db/unixODBC-1.8.13 ) 
)
-       postgres? ( >=dev-db/postgresql-9.1:* )
+       postgres? ( dev-db/postgresql:* )
        qdbm? ( dev-db/qdbm )
        readline? ( sys-libs/readline:0= )
        session-mm? ( dev-libs/mm )
@@ -125,7 +128,7 @@ COMMON_DEPEND="
        truetype? ( =media-libs/freetype-2* )
        unicode? ( dev-libs/oniguruma:= )
        webp? ( media-libs/libwebp:0= )
-       xml? ( >=dev-libs/libxml2-2.9.0 )
+       xml? ( >=dev-libs/libxml2-2.7.6 )
        xpm? ( x11-libs/libXpm )
        xslt? ( dev-libs/libxslt )
        zip? ( >=dev-libs/libzip-1.2.0:= )
@@ -149,7 +152,9 @@ BDEPEND="virtual/pkgconfig"
 
 PHP_MV="$(ver_cut 1)"
 
-PATCHES=( "${FILESDIR}/php-iodbc-header-location.patch" )
+PATCHES=(
+       "${FILESDIR}"/php-iodbc-header-location.patch
+)
 
 php_install_ini() {
        local phpsapi="${1}"
@@ -242,7 +247,7 @@ src_configure() {
                --with-libdir="$(get_libdir)"
                --localstatedir="${EPREFIX}/var"
                --without-pear
-               $(use_enable threads zts)
+               $(use_enable threads maintainer-zts)
        )
 
        our_conf+=(
@@ -267,6 +272,7 @@ src_configure() {
                        $(use elibc_glibc || use elibc_musl || use 
elibc_FreeBSD || echo "${EPREFIX}/usr"))
                $(use_enable intl)
                $(use_enable ipv6)
+               $(use_enable json)
                $(use_with kerberos)
                $(use_with xml libxml)
                $(use_enable unicode mbstring)
@@ -293,6 +299,7 @@ src_configure() {
                $(use_enable xml)
                $(use_enable xmlreader)
                $(use_enable xmlwriter)
+               $(use_with xmlrpc)
                $(use_with xslt xsl)
                $(use_with zip)
                $(use_with zlib zlib "${EPREFIX}/usr")
@@ -538,7 +545,7 @@ src_install() {
                                # We're specifically not using emake 
install-sapi as libtool
                                # may cause unnecessary relink failures (see 
bug #351266)
                                insinto "${PHP_DESTDIR#${EPREFIX}}/apache2/"
-                               newins ".libs/libphp$(get_libname)" \
+                               newins ".libs/libphp${PHP_MV}$(get_libname)" \
                                           "libphp${PHP_MV}$(get_libname)"
                                keepdir "/usr/$(get_libdir)/apache2/modules"
                        else
@@ -561,7 +568,7 @@ src_install() {
                                                source="sapi/fpm/php-fpm"
                                                ;;
                                        embed)
-                                               
source="libs/libphp$(get_libname)"
+                                               
source="libs/libphp${PHP_MV}$(get_libname)"
                                                ;;
                                        phpdbg)
                                                source="sapi/phpdbg/phpdbg"

diff --git a/dev-lang/php/php-8.0.1.ebuild b/dev-lang/php/php-8.0.1-r1.ebuild
similarity index 99%
rename from dev-lang/php/php-8.0.1.ebuild
rename to dev-lang/php/php-8.0.1-r1.ebuild
index bda8c364a3e..cdcf7cd4d0c 100644
--- a/dev-lang/php/php-8.0.1.ebuild
+++ b/dev-lang/php/php-8.0.1-r1.ebuild
@@ -46,6 +46,7 @@ IUSE="${IUSE} acl argon2 bcmath berkdb bzip2 calendar cdb cjk
        +xml xmlreader xmlwriter xpm xslt zip zlib"
 
 # Without USE=readline or libedit, the interactive "php -a" CLI will hang.
+# The Oracle instant client provides its own incompatible ldap library.
 REQUIRED_USE="
        || ( cli cgi fpm apache2 embed phpdbg )
        cli? ( ^^ ( readline libedit ) )
@@ -62,6 +63,7 @@ REQUIRED_USE="
        xmlwriter? ( xml )
        xslt? ( xml )
        ldap-sasl? ( ldap )
+       oci8-instant-client? ( !ldap )
        qdbm? ( !gdbm )
        session-mm? ( session !threads )
        mysql? ( || ( mysqli pdo ) )
@@ -106,7 +108,7 @@ COMMON_DEPEND="
        lmdb? ( dev-db/lmdb:= )
        mssql? ( dev-db/freetds[mssql] )
        nls? ( sys-devel/gettext )
-       oci8-instant-client? ( dev-db/oracle-instantclient-basic )
+       oci8-instant-client? ( dev-db/oracle-instantclient[sdk] )
        odbc? ( iodbc? ( dev-db/libiodbc ) !iodbc? ( >=dev-db/unixODBC-1.8.13 ) 
)
        postgres? ( >=dev-db/postgresql-9.1:* )
        qdbm? ( dev-db/qdbm )

Reply via email to