Summary: | dev-lang/php provide mans to build IBM DB2 PDO support | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Maciej Mrozowski <reavertm> |
Component: | New packages | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | src_configure patch |
Description
Maciej Mrozowski
2010-09-15 17:14:16 UTC
Created attachment 247482 [details, diff]
src_configure patch
Makes src_configure aware of DB2_HOME environment variable (modeled after ORACLE_HOME).
Resulting php cgi/cli/apache2-mod objects have proper RPATH appendend sp no further care required. LD_LIBRARY_PATH (see patch) is only needed for src_configure purpose.
Thanks for reporting this! Just one question about the patch: shouldn't it be LD_LIBRARY_PATH+=...? Yeah, why not. If there's LD_LIBRARY_PATH defined already (it actually shouldn't be the case, and it's not supposed to be needed) let's preserve it. I see. After reading up on LD_LIBRARY_PATH seperators, it doesn't seem to be a good idea to use +=":${DB2_HOME}/`get_libdir`" here. Empty entries are "." by default and something tells me this is going to come back and bite us security-wise. So I committed the patch as initially thought. Thanks :) |