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

Bug 449390

Summary: dev-db/mysql injects build flags in mysql_config
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: Gentoo Linux MySQL bugs team <mysql-bugs>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: vivo75
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2012-12-31 02:03:39 UTC
flame@cptquarters mydumper-0.5.2 % mysql_config --cflags
-I/usr/include/mysql -pipe -ggdb -g -frecord-gcc-switches -fno-strict-aliasing  -g


This is not correct — I might not want to use -ggdb for all other software that links to MySQL, I might not want (or can't) use -frecord-gcc-switches.

Please look to make sure these are stripped out. Thanks.
Comment 1 Francesco Riosa 2013-01-02 19:31:31 UTC
uhm, maybe one of 
mysql-extras-20120906-1344Z/01050_all_mariadb_mysql_config_cleanup-5.1.41.patch
mysql-extras-20120906-1344Z/01050_all_mysql_config_cleanup-5.0.60.patch
mysql-extras-20120906-1344Z/01050_all_mysql_config_cleanup-5.1.41.patch
mysql-extras-20120906-1344Z/01050_all_mysql_config_cleanup.patch
should be applied?

Diego, filtering is done, but it's done by gentoo, not upstream mysql-config.
Please look at build log if some of these patches is applied.
Also the patch was discussed on dev-gentoo ml, but that's ancient stuff (say around 2005)
Comment 2 Brian Evans (RETIRED) gentoo-dev 2013-10-09 14:04:29 UTC
This should block bug 474800.

I've put a patch for 5.5 in the mysql-extras overlay based on 5.1.

IRC comments mentioned we should discuss what should be filtered.
With stabilization wanted soon, now seems like a good time.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2014-04-25 00:56:47 UTC
Patch activated in the tree.  Please test the latest version of 5.5 and report back.