dev-lang/php: Recent mysqlnd driver needs hash extension
authorBrian Evans <grknight@gentoo.org>
Thu, 20 Sep 2018 02:32:16 +0000 (22:32 -0400)
committerBrian Evans <grknight@gentoo.org>
Thu, 20 Sep 2018 02:32:16 +0000 (22:32 -0400)
Set REQUIRED_USE on mysql and mysqli to need hash as build failures occur without.

Example:
ext/mysqlnd/mysqlnd_auth.o: In function `php_mysqlnd_scramble_sha2':
mysqlnd_auth.c:(.text+0x1054): undefined reference to `PHP_SHA256Init'

Does not affect PHP 5.6 or 7.0 as they are security only

Closes: https://bugs.gentoo.org/666598

dev-lang/php/php-7.1.22.ebuild
dev-lang/php/php-7.2.10.ebuild

index 4d86e54abb4c38e12bf96b0aef6ad8ad1d11553c..feba2bb1708a66b18c69d17630c8496726e375c0 100644 (file)
@@ -142,7 +142,8 @@ REQUIRED_USE="
        readline? ( !libedit )
        recode? ( !imap !mysqli !mysql )
        session-mm? ( session !threads )
-       mysql? ( || ( mysqli pdo ) )
+       mysql? ( hash || ( mysqli pdo ) )
+       mysqli? ( hash )
 "
 PATCHES=(
        "${FILESDIR}/php-freetype-2.9.1.patch"
index 4b8bb35fe16011c7abf521ec1d9440a4aad8ec45..8056b502a1f4275b5183f060285d4a48d3db6a3a 100644 (file)
@@ -146,7 +146,8 @@ REQUIRED_USE="
        readline? ( !libedit )
        recode? ( !imap !mysqli !mysql )
        session-mm? ( session !threads )
-       mysql? ( || ( mysqli pdo ) )
+       mysql? ( hash || ( mysqli pdo ) )
+       mysqli? ( hash )
        zip-encryption? ( zip )
 "
 PATCHES=(