I'm unsure whether this is a bug of portage or a bug in php. When I use sys-apps/portage-2.2.00.13133 to emerge dev-lang/php-5.2.8-r2 none of the configuration options get passed to configure. A little bit of experimentation brought up that the ebuild declares it's implementing EAPI 2, but it doesn't implement src_configure. I believe what happens is that a default src_configure is called that calls `econf` (at least that's what the ./configure parameters look like). I could get back to the normal behaviour by disabling EAPI 2 for this ebuild.
Created attachment 187527 [details, diff] Removing the EAPI 2 helped.
07 Mar 2009; Christian Faulhammer <fauli@gentoo.org> php-5.2.8-r1.ebuild, php-5.2.8-r2.ebuild: use EAPI 2 for USE flag check http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/php/php-5.2.8-r2.ebuild?r1=1.8&r2=1.9 Christian, If you make an ebuild EAPI=2, then you have to make sure it is doing the right things during src_configure. In this case, it is not, because the eclass is *not* EAPI-2 aware. Please fix your mess here in gentoo-x86. thx ;)
Just sorry, reverted.