Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83931 - php5-sapi.eclass can not build both mysql and mysqli extension when mysql 4.1.x installed
Summary: php5-sapi.eclass can not build both mysql and mysqli extension when mysql 4.1...
Status: RESOLVED DUPLICATE of bug 53886
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-03 03:23 UTC by Steve Yin
Modified: 2005-05-31 15:19 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Yin 2005-03-03 03:23:10 UTC
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.
Comment 1 Ben 2005-03-15 08:36:07 UTC
"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
Comment 2 John Nilsson 2005-03-15 09:01:15 UTC
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.
Comment 3 Frederik Kunz 2005-04-11 04:34:52 UTC
The solution posted here works for me:

http://forums.gentoo.org/viewtopic-p-2297500.html#2297500

I'd really like to see this resolved.
Comment 4 Sune Foldager 2005-05-22 14:16:20 UTC
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.
Comment 5 Sune Foldager 2005-05-22 14:17:38 UTC
This is sort of a duplicate of bug #53886, by the way.
Comment 6 Stuart Herbert (RETIRED) gentoo-dev 2005-05-31 15:19:15 UTC

*** This bug has been marked as a duplicate of 53886 ***