Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2711 - php-4.2.0 ebuild breaks with -mysql in USE settings
Summary: php-4.2.0 ebuild breaks with -mysql in USE settings
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Jon Nelson (RETIRED)
Depends on:
Reported: 2002-05-13 17:31 UTC by Xavier
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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.

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-
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 
Comment 4 Ryan Phillips (RETIRED) gentoo-dev 2002-05-19 18:05:12 UTC
Fixed in #2820