Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 358343

Summary: dev-php5/xcache is not slotted for PHP 5.2
Product: Gentoo Linux Reporter: Brian Moon <brianm-gentoo>
Component: New packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Brian Moon 2011-03-11 05:41:28 UTC
When the slotting for PHP was done, some PECL extensions did not get slotted for 5.2 that work perfectly well with 5.2 and worked fine with it before slotting.

Reproducible: Always

Steps to Reproduce:
1. Mask PHP 5.3 out
2. Attempt to emerge dev-php5/xcache

Actual Results:  
Will not emerge. Complains that it needs PHP 5.3.

Expected Results:  
Emerges dev-php5/xcache for PHP 5.2 slot.

Had the same problem with pecl/memcache and it was fixed.
Comment 1 Ole Markus With (RETIRED) gentoo-dev 2011-03-11 13:38:06 UTC
Works for me:

# PHP_TARGETS=php5-2 emerge -pv xcache
[ebuild  N    ] virtual/httpd-php-5.3  0 kB
[ebuild  N    ] dev-php5/xcache-1.3.0-r2  PHP_TARGETS="php5-2 -php5-3" 0 kB
Comment 2 Brian Moon 2011-03-11 15:05:41 UTC
Hmm, yeah, if I put PHP_TARGETS in make.conf it works. But, should that be required if I have only PHP 5.2 installed and selected?
Comment 3 Ole Markus With (RETIRED) gentoo-dev 2011-03-11 22:32:46 UTC
That would be tricky. Extensions would have to be dependant on the particular PHP version installed and such. It is better to just set the PHP_TARGETS variable, emerge an extension and let PHP be pulled in as a dependency.