Gentoo Archives: gentoo-commits

From: Brian Evans <grknight@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/php/
Date: Thu, 20 Sep 2018 02:33:18
Message-Id: 1537410736.a51890c8496984b6e774706bcdb05ff72bc8c4ce.grknight@gentoo
1 commit: a51890c8496984b6e774706bcdb05ff72bc8c4ce
2 Author: Brian Evans <grknight <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 20 02:32:16 2018 +0000
4 Commit: Brian Evans <grknight <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 20 02:32:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a51890c8
7
8 dev-lang/php: Recent mysqlnd driver needs hash extension
9
10 Set REQUIRED_USE on mysql and mysqli to need hash as build failures occur without.
11
12 Example:
13 ext/mysqlnd/mysqlnd_auth.o: In function `php_mysqlnd_scramble_sha2':
14 mysqlnd_auth.c:(.text+0x1054): undefined reference to `PHP_SHA256Init'
15
16 Does not affect PHP 5.6 or 7.0 as they are security only
17
18 Closes: https://bugs.gentoo.org/666598
19
20 dev-lang/php/php-7.1.22.ebuild | 3 ++-
21 dev-lang/php/php-7.2.10.ebuild | 3 ++-
22 2 files changed, 4 insertions(+), 2 deletions(-)
23
24 diff --git a/dev-lang/php/php-7.1.22.ebuild b/dev-lang/php/php-7.1.22.ebuild
25 index 4d86e54abb4..feba2bb1708 100644
26 --- a/dev-lang/php/php-7.1.22.ebuild
27 +++ b/dev-lang/php/php-7.1.22.ebuild
28 @@ -142,7 +142,8 @@ REQUIRED_USE="
29 readline? ( !libedit )
30 recode? ( !imap !mysqli !mysql )
31 session-mm? ( session !threads )
32 - mysql? ( || ( mysqli pdo ) )
33 + mysql? ( hash || ( mysqli pdo ) )
34 + mysqli? ( hash )
35 "
36 PATCHES=(
37 "${FILESDIR}/php-freetype-2.9.1.patch"
38
39 diff --git a/dev-lang/php/php-7.2.10.ebuild b/dev-lang/php/php-7.2.10.ebuild
40 index 4b8bb35fe16..8056b502a1f 100644
41 --- a/dev-lang/php/php-7.2.10.ebuild
42 +++ b/dev-lang/php/php-7.2.10.ebuild
43 @@ -146,7 +146,8 @@ REQUIRED_USE="
44 readline? ( !libedit )
45 recode? ( !imap !mysqli !mysql )
46 session-mm? ( session !threads )
47 - mysql? ( || ( mysqli pdo ) )
48 + mysql? ( hash || ( mysqli pdo ) )
49 + mysqli? ( hash )
50 zip-encryption? ( zip )
51 "
52 PATCHES=(