Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 509470 - dev-lang/php-5.3.28-r3 should depend on sys-devel/bison (virtual/yacc?) - configure: error: bison is required to build PHP/Zend when building a GIT checkout!
Summary: dev-lang/php-5.3.28-r3 should depend on sys-devel/bison (virtual/yacc?) - con...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
: 517758 (view as bug list)
Depends on: 524216
Blocks:
  Show dependency tree
 
Reported: 2014-05-03 14:14 UTC by Róbert Čerňanský
Modified: 2015-05-05 02:48 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Róbert Čerňanský 2014-05-03 14:14:15 UTC
'emerge php' fails with error when bison is not installed:

[...]
checking for gawk... gawk
checking for bison... no
checking for byacc... no
checking for bison version... invalid
configure: WARNING: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 2.5 2.5.1 2.6 2.6.1 2.6.2 2.6.4 (found: none).
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: error: bison is required to build PHP/Zend when building a GIT checkout!
[...]

After emergin sys-devel/bison-2.4.3, php install correctly.  It is most likely the build dependency because it seems to run fine after removing bison again.

Reproduced on stable amd64 system.

emerge -pv php
[...]
[ebuild   R    ] dev-lang/php-5.3.28-r3:5.3  USE="apache2 berkdb bzip2 cli crypt ctype curl exif fileinfo filter ftp gd gdbm hash iconv imap ipv6 json kerberos ldap mysql nls pdo phar posix readline session simplexml snmp sockets sqlite ssl threads tokenizer unicode xml xmlwriter zip zlib -bcmath -calendar -cdb -cgi -cjk -curlwrappers -debug -embed -enchant -firebird -flatfile -fpm -gmp -inifile -intl -iodbc -ldap-sasl -libedit -mhash -mssql -mysqli -mysqlnd -oci8-instant-client -odbc -pcntl -postgres -qdbm -recode (-selinux) -sharedmem -soap -spell -sqlite2 (-sybase-ct) -sysvipc -tidy -truetype -wddx -xmlreader -xmlrpc -xpm -xslt" 0 kB
Comment 1 Michael Orlitzky gentoo-dev 2015-01-08 01:39:20 UTC
*** Bug 517758 has been marked as a duplicate of this bug. ***
Comment 2 Michael Orlitzky gentoo-dev 2015-01-08 01:50:12 UTC
This problem also exists in php-5.3.29, and as bug #517758 mentions, we need a lower bound on >=bison-2.4.3 now that the 2.3 series is gone.

But php-5.3 is being removed soon, hopefully, so I don't think we're going to have a fix for this before then (sorry).

If you're not married to php-5.3, this problem doesn't exist in 5.4, 5.5, or 5.6. So as a note-to-self, this will be fixed as part of removing php-5.3 from the tree.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2015-01-08 01:52:32 UTC
Adding depends to remind to close when php 5.3 is removed
Comment 4 Brian Evans (RETIRED) gentoo-dev 2015-05-05 02:48:54 UTC
php 5.3 removed