Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278439 - dev-lang/php: only one sapi's php-config gets installed
Summary: dev-lang/php: only one sapi's php-config gets installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 11:29 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-06-14 17:01 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 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-07-20 11:29:39 UTC
As I've described to hoffie, when multiple sapis are enabled in the php ebuild, the last one that gets build (usually the apache2sapi modul) installs the php-config script. This in turns causes php-config --sapis to just report apache2, and that's what causes pecl packages from skipping over tests [1]


[1] http://blog.flameeyes.eu/2009/07/18/tinderbox-help-needed-for-php

One trick would be to just sed php-config in src_install to list the sapis properly: php_sapis="apache2handler cli cgi"
Comment 1 Matti Bickel (RETIRED) gentoo-dev 2010-04-05 19:33:29 UTC
I need to dig the php build process for php-5.3 anyway, so i'll have a look. sed seems to be a hackish way to do this, but if that's what's needed, i'll do it.
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-06-13 23:53:57 UTC
I've just pushed a change to src_install, seding php-config as mentioned, to the php overlay. The change will migrate to the main tree shortly.

Thanks to ferringb for helping me out with the bash voodoo.
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2010-06-14 17:01:52 UTC
This is fixed in php-5.3.2