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

Bug 285419

Summary: dev-lang/php: php5_2-sapi.eclass - minor annoyances
Product: Gentoo Linux Reporter: Rafał Mużyło <galtgendo>
Component: Current packagesAssignee: PHP Bugs <php-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Rafał Mużyło 2009-09-18 08:38:46 UTC
While pdo-odbc indeed needs either unixODBC or ibm-db2,
we're not building that extension anyway.
odbc extension, on the other hand, can use libiodbc,
but for some reason, iodbc useflag forces unixODBC
dep - I don't see any reason for it, it build fine
without it (though I think I needed to make one other
correction in eclass, except the dep).
I would also want to repeat my question about the use
of '--host=${CHOST}' by configure, perhaps there was a historical
reason for it, but now, it seems to cause only a configure
warning and builds fine without it.

On a semi-related note:  libiodbc-3.52.7 has been released
a few days ago - it seems just minor fixes, old ebuild works
(yeah, probably I should open a separate bug about this).
Comment 1 Rafał Mużyło 2009-09-26 18:09:22 UTC
Looking at portage sources, it seems that the simplest
solution of 'host' warning would be adding '${CBUILD:+--build=${CBUILD}}'
to configure parameters, just as portage does for econf
(if I read them correctly, CBUILD is always set anyway,
either explicitly, or equal to CHOST).
Comment 2 Matti Bickel (RETIRED) gentoo-dev 2010-05-28 19:15:21 UTC
All the work is going into the php-5.3.2 ebuild, wnich has the correct iodbc deps and does not use the --host configure parameter anymore.
I don't have plans to fix php5_2-sapi.eclass, as we focus all of the energy on getting php-5.3 ready and these issues are not critical.

Nevertheless, thanks for pointing them out.