I need mysql 4.1 support in my website, So I just unmasked some mysql 4.1 releated packages from portage, then install the mysql 4.1.8 everything is going well. Then I need php5 build with both mysql and mysqli extension.But when I try to emerge php5 and mod_php5, it tolds me can not build mysql and mysqli both. I searched the php.net, PHP surely can build with both mysql and mysqli. The only thing need to care is that when build with both mysql and mysqli, the config option for mysql extension need a location of installed mysql. I found the problem is the configure option. This needs to change the eclass file php5-sapi.eclass at here: original php5-sapi.eclass: if useq mysql; then enable_extension_with "mysql" "mysql" 1 enable_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" fi if change to : if useq mysql; then enable_extension_with "mysql" "mysql" 1 "/usr" enable_extension_with "mysql-sock" "mysql" 0 "/var/run/mysqld/mysqld.sock" fi then emerge php and mod_php will make one have both mysql and mysqli support. BTW, I think mysql 4.1 is so important, and RHEL 4 now includes mysql 4.1, when gentoo will unmask the mysql 4.1 ? Reproducible: Always Steps to Reproduce: 1.unmask the mysql 4.1.x in portage 2.emerge mysql 4.1 3.emerge mod_php5 and php5 Actual Results: ebuild system can not build both mysql and mysqli.
"BTW, I think mysql 4.1 is so important, and RHEL 4 now includes mysql 4.1, when gentoo will unmask the mysql 4.1 ?" +100000000
This could be concidered a dupe of bug #53886 but there is a small difference, no matter the state of #53886 USE="mysql mysqli" should not be in conflict.
The solution posted here works for me: http://forums.gentoo.org/viewtopic-p-2297500.html#2297500 I'd really like to see this resolved.
The change should be to: (wrt. mysql:) enable_extension_with "mysql" "mysql" 0 "/usr/lib/mysql" (and, wrt. mysqli:) enable_extension_with "mysqli" "mysqli" 0 "/usr/bin/mysql_config" I keep patching this myself each time I emerge sync :-p.
This is sort of a duplicate of bug #53886, by the way.
*** This bug has been marked as a duplicate of 53886 ***