Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 2711

Summary: php-4.2.0 ebuild breaks with -mysql in USE settings
Product: Gentoo Linux Reporter: Xavier <gentoo>
Component: New packagesAssignee: Jon Nelson (RETIRED) <jnelson>
Status: RESOLVED FIXED    
Severity: normal CC: bugs.gentoo.org
Priority: High    
Version: 1.1a   
Hardware: x86   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Xavier 2002-05-13 17:31:44 UTC
It's needed to include this in the src_compile() section of ebuild to work 
correctly (I suppouse that mysql support will be enabled by default in PHP 
configuration stage):

 use mysql || myconf="${myconf} --without-mysql"
Comment 1 Roman Weber 2002-05-14 02:39:57 UTC
Yes, it will automatically enabled, but shouldn't break the php build process.

I'll add it to the next ebuild version from me.

Roman
Comment 2 Xavier 2002-05-14 06:57:38 UTC
I think that only happens when mysql isn't emerged and the correspondig 
libraries are missing from system. How the mysql support it's enabled by 
default tries to compile/link the mysql module that breaks php emerge
Comment 3 SpanKY gentoo-dev 2002-05-17 10:06:06 UTC
i agree with Xavier on this one ... make sure mysql has been emerged ... mine 
did not compile until i emerged mysql.
however, for those people who do not want to emerge mysql (and thus dont want 
mysql support in php), there should be a line in the ebuild to enable --without-
mysql
my fix:
        use mysql && myconf="${myconf} --with-mysql=/usr"
        ! use mysql && myconf="${myconf} --without-mysql"
this disables mysql when ppl dont want it and enable mysql when they do ... if 
you always pass the --without-mysql flag, php will compile its own mysql 
module.  however, their mysql module is not the latest and greatest, it is a 
generic solution.  the reason they link with the mysql libraries is so that 
they can build an optimized mysql module that takes advantage of the latest 
features
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2002-05-19 18:05:12 UTC
Fixed in #2820