Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55631 - db2 use flag unsupported with php-sapi eclass (4.3.x)
Summary: db2 use flag unsupported with php-sapi eclass (4.3.x)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-29 18:29 UTC by Dylan Vanderhoof
Modified: 2004-08-07 12:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
php-sapi.eclass patch to allow DB2 support with auto-detection (php-sapi.eclass-ibm-db2-patch.diff.txt,1.21 KB, patch)
2004-06-29 18:50 UTC, Dylan Vanderhoof
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dylan Vanderhoof 2004-06-29 18:29:58 UTC
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
Comment 1 Dylan Vanderhoof 2004-06-29 18:50:33 UTC
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.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2004-08-07 12:32:40 UTC
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.