Hello all, I'm not quite confortable enough with the eclass syntax to write a patch for the php-sapi.eclass file, but it appears as if the addition is relativly trivial. There is a "db2" use flag for IBM's DB2 engine listed on the gentoo site. It appears to have been implemented in the php 5.x ebuilds, but not in the 4.3.x ones. From my testing (limited to about 4-5 DB2 clients and a couple DB2 servers running gentoo), the only changed needed is for "--with-ibm-db2" to be added to the ${myconf} string in the eclass or ebuild. I've been just using an overlay with that added to the ebuilds as they are released, but this should probably be added to the eclass rather than the individual ebuild files. Thanks! -Dylan Vanderhoof
Created attachment 34464 [details, diff] php-sapi.eclass patch to allow DB2 support with auto-detection This is a simple patch to enable to db2 use flag for php. php autodetects DB2 in every test case I've tried. There is not a reliable environment variable for pointing to the DB2 instance directory that's guaranteed to be available. Autodetects appears to assume default of ~db2inst1/sqllib, which is correct in every DB2 install I've every been asked to deal with. $DB2_HOME doesn't appear to be being set by the DBM anymore.
I'm avoiding making feature changes to PHP4 already (consider it critical+security fixes only), instead working on getting PHP5 ready for ~arch and beyond. PHP5 coming to an ~arch near you very soon, so look for it there.