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
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.
(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.
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