travis-ci/travis-cookbooks — pull request #216 by gildegoma (2013-09-01 10:45:14+00:00)
Title: [php] include bison and libreadline tricky recipes

This change aims to solve following errors (if `bison` and `libreadline` are not explicitely set in the chef run_list):

```
[Info]: Building 5.3.3 into /home/vagrant/.phpenv/versions/5.3.3
[Downloading]: http://museum.php.net/php5/php-5.3.3.tar.bz2
[Preparing]: /tmp/php-build/source/5.3.3

-----------------
| BUILD ERROR |
-----------------

Here are the last 10 lines from the log:

-----------------------------------------
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 (found: 2.5).
configure: error: Please reinstall readline - I cannot find readline.h

```

@loicfrering @michaelklishin could you please review this ? Actually, I would propose to refactor even more and directly bundle `bison` and `libreadline` tricks into `php` cookbook... what do you think?

@joshk while being bitten by this problem, I noticed following [travis-images bootstrap step](https://github.com/travis-ci/travis-images/blob/master/lib/travis/cloud_images/vm_provisioner.rb#L25). Shouldn't we shift the installation of these apt packages to travis-cookbooks ?