Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 342213 - dev-lang/php-5.3.3-r2 packages inherting php-pear-lib-r1 fail to build
Summary: dev-lang/php-5.3.3-r2 packages inherting php-pear-lib-r1 fail to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 16:10 UTC by Jamie Learmonth
Modified: 2010-10-31 12:03 UTC (History)
0 users

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 Jamie Learmonth 2010-10-22 16:10:20 UTC
After upgrading to slotted php, any package in the tree which inherits php-pear-lib-r1 fails to build as peardev can no longer find the php binary.



Reproducible: Always

Steps to Reproduce:
1. Upgrade to dev-lang/php-5.3.3-r2
2. emerge phpunit
3.

Actual Results:  
* PHPUnit-3.5.0.tgz RMD160 SHA1 SHA256 size ;-) ...                     [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * CPV:  dev-php5/phpunit-3.5.0
 * REPO: funtoo
 * USE:  elibc_glibc kernel_linux minimal userland_GNU x86
>>> Unpacking source...
>>> Unpacking PHPUnit-3.5.0.tgz to /var/tmp/portage/dev-php5/phpunit-3.5.0/work
>>> Source unpacked in /var/tmp/portage/dev-php5/phpunit-3.5.0/work
>>> Preparing source in /var/tmp/portage/dev-php5/phpunit-3.5.0/work/PHPUnit-3.5.0 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-php5/phpunit-3.5.0/work/PHPUnit-3.5.0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-php5/phpunit-3.5.0/work/PHPUnit-3.5.0 ...
>>> Source compiled.
>>> Test phase [not enabled]: dev-php5/phpunit-3.5.0

>>> Install phpunit-3.5.0 into /var/tmp/portage/dev-php5/phpunit-3.5.0/image/ category dev-php5
 * 
 * Using dev-lang/php-5.3.3-r2
 * 
/usr/bin/peardev: line 28: /usr/lib/php5/bin/php: No such file or directory
/usr/bin/peardev: line 28: exec: /usr/lib/php5/bin/php: cannot execute: No such file or directory
 * ERROR: dev-php5/phpunit-3.5.0 failed:
 *   Unable to install PEAR package
 * 
 * Call stack:
 *     ebuild.sh, line   48:  Called src_install
 *   environment, line 2970:  Called php-pear-lib-r1_src_install
 *   environment, line 2311:  Called die
 * The specific snippet of code:
 *               peardev -d php_bin="${PHP_BIN}" -d www_dir="${WWW_DIR}" install --force --loose --nodeps --offline --packagingroot="${D}" "${S}/package.xml" || die "Unable to install PEAR package";
 * 
 * If you need support, post the output of 'emerge --info =dev-php5/phpunit-3.5.0',
 * the complete build log and the output of 'emerge -pqv =dev-php5/phpunit-3.5.0'.
 * The complete build log is located at '/var/tmp/portage/dev-php5/phpunit-3.5.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-php5/phpunit-3.5.0/temp/environment'.
 * S: '/var/tmp/portage/dev-php5/phpunit-3.5.0/work/PHPUnit-3.5.0'

>>> Failed to emerge dev-php5/phpunit-3.5.0, Log file:

>>>  '/var/tmp/portage/dev-php5/phpunit-3.5.0/temp/build.log'


Expected Results:  
Successful merge

This affects all the packages which inherit this eclass:

dev-php5/phpunit
dev-php5/symfony
dev-php5/phing

and about 10 others...
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2010-10-31 12:03:07 UTC
Thanks for reporting. In the meantime this bug has already been fixed :)