Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 593278 - dev-lang/php-5.6.25 - configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).
Summary: dev-lang/php-5.6.25 - configure: WARNING: This bison version is not supported...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL: https://bugs.php.net/bug.php?id=69055
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-09 10:37 UTC by Jeroen Roovers (RETIRED)
Modified: 2016-09-30 15:08 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-lang:php-5.6.25:20160908-195431.log.xz (dev-lang:php-5.6.25:20160908-195431.log.xz,292.66 KB, application/x-xz)
2016-09-09 10:37 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2016-09-09 10:37:34 UTC
Created attachment 445298 [details]
dev-lang:php-5.6.25:20160908-195431.log.xz

checking for bison... bison -y
checking for bison version... invalid
configure: WARNING: This bison version is not supported for regeneration of the Zend/PHP parsers (found: 3.0, min: 204, excluded: 3.0).

[ebuild   R    ] sys-devel/bison-3.0.4-r1::gentoo  USE="nls {test} -examples -static" 0 KiB
Comment 1 Michael Orlitzky gentoo-dev 2016-09-22 22:26:02 UTC
This is an upstream bug, and should be an easy enough fix, but I'm not sure if they'll bother on the 5.6.x series. The problematic line is in Zend/acinclude.m4:

  bison_version_exclude="3.0"

Later versions like v3.0.1 are supposed to be OK, but I think the test chops off the "z" component of the version x.y.z, making v3.0.1 appear identical to v3.0.

php-7.x doesn't exclude any bison versions, so maybe we should require bison-3.0.4-r1 or newer for both series's ebuilds.
Comment 2 Michael Orlitzky gentoo-dev 2016-09-22 22:30:06 UTC
(In reply to Michael Orlitzky from comment #1)
> The problematic line is in Zend/acinclude.m4:
> 
> ...
> 
> php-7.x doesn't exclude any bison versions, so maybe we should require
> bison-3.0.4-r1 or newer for both series's ebuilds.

And then patch out that line, which is kinda the important part.
Comment 3 Michael Orlitzky gentoo-dev 2016-09-30 15:08:11 UTC
commit 523dcfa9e646dacf81f8e43bb9f1262bff211473
Author: Michael Orlitzky <mjo@gentoo.org>
Date:   Fri Sep 30 10:22:37 2016 -0400

    dev-lang/php: new 5.6 and 7.0 revisions with bison dependencies.

    The PHP build system checks for the presence of bison (even if it will
    not be needed), and it emits a warning if an appropriate version is
    not found. In the 7.0.x series, this is easy to address by simply
    adding a newish version of bison to DEPEND.

    In the 5.6.x series, however, there is a bug in the bison version
    check. A warning is emitted even when a suitable version of bison
    (>= 3.0.1) is present on the system. So in that series, we have added
    >=sys-devel/bison-3.0.1 to DEPEND, but also added a new patch. The
    patch disables the buggy bison version check, eliminating the
    warning. There should be no danger in doing so now that a newer bison
    is in DEPEND.

    Gentoo-Bug: 593278

    Package-Manager: portage-2.3.0