Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138761 - mysql should not export ldflags as libraries
Summary: mysql should not export ldflags as libraries
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Linux MySQL bugs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-01 13:11 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2008-01-15 15:32 UTC (History)
1 user (show)

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


Attachments
mysql-4.1.20-noexportldflags.patch (mysql-4.1.20-noexportldflags.patch,976 bytes, patch)
2006-07-01 13:12 UTC, Diego Elio Pettenò (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-01 13:11:46 UTC
I got this reported by a few users on #amarok @ freenode, as Amarok can use MySQL.

The problem is that mysql_config --libs returns the LDFLAGS used for building in its output, which is wrong, very wrong, as autotools expects only libraries to be passed on _LIBADD for instance.

The attached patch fixes the script in the sources not to export the ldflags in --libs, still exporting it in --ldflags, as I'm afraid it might be required, although broken that, too.

HTH,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-07-01 13:12:15 UTC
Created attachment 90637 [details, diff]
mysql-4.1.20-noexportldflags.patch
Comment 2 Gergan Penkov 2007-01-21 14:17:58 UTC
this also breaks gammu - upstream bug about mysql_config misbehaviors, which I filed almost an year ago http://bugs.mysql.com/bug.php?id=19900 (ssl thing is now fixed, although I don't know if this is on the gentoo side)
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2008-01-15 15:32:00 UTC
please try 5.0.54 when it comes out of pmask.