add dev-lang/php-5.6.40
[portage-squeep] / dev-lang / php / files / php-5.6-no-bison-warnings.patch
1 From d3466a04345b31dfc62d94fe994b40321a6418ec Mon Sep 17 00:00:00 2001
2 From: Michael Orlitzky <michael@orlitzky.com>
3 Date: Thu, 29 Sep 2016 15:43:06 -0400
4 Subject: [PATCH 1/1] Zend/acinclude.m4: don't warn about >=bison-3.0.1
5 versions.
6
7 The PHP configure script will emit a warning if it thinks your bison
8 version is insufficient:
9
10 WARNING: This bison version is not supported for regeneration of
11 the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
12
13 However, there is an error in the test that causes it to treat all
14 3.0.x versions as if they were 3.0. The result is that users get
15 warned about a perfectly acceptable version of bison.
16
17 This patch is meant only for Gentoo, where we can require a working
18 version of bison (something newer than 3.0.1). Having done so, this
19 patch removes the check and the WARNING.
20
21 Gentoo-Bug: 593278
22 PHP-Bug: 69055
23 ---
24 Zend/acinclude.m4 | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27 diff --git a/Zend/acinclude.m4 b/Zend/acinclude.m4
28 index 7fa8c99..9d6cb1d 100644
29 --- a/Zend/acinclude.m4
30 +++ b/Zend/acinclude.m4
31 @@ -9,7 +9,7 @@ AC_DEFUN([LIBZEND_BISON_CHECK],[
32 # non-working versions, e.g. "3.0 3.2";
33 # remove "none" when introducing the first incompatible bison version an
34 # separate any following additions by spaces
35 - bison_version_exclude="3.0"
36 + bison_version_exclude=""
37
38 # for standalone build of Zend Engine
39 test -z "$SED" && SED=sed
40 --
41 2.7.3
42