Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 26669 - mysqlcc ebuild: CFLAGS/CXXFLAGS in Makefile are not replaced with the flags from make.conf
Summary: mysqlcc ebuild: CFLAGS/CXXFLAGS in Makefile are not replaced with the flags f...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-08-15 05:47 UTC by David Peter
Modified: 2003-08-15 11:38 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 David Peter 2003-08-15 05:47:27 UTC
There is a error in the mysqlcc-0.9.2.ebuild. The CFLAGS/CXXFLAGS in the
Makefile will not be replaced with the flags from /etc/make.conf. I hope the
following patch will fix this:

--- /usr/portage/dev-db/mysqlcc/mysqlcc-0.9.2.ebuild    2003-05-09
17:27:14.000000000 +0200
+++ /usr/local/portage/dev-db/mysqlcc/mysqlcc-0.9.2.ebuild      2003-08-15
17:15:45.000000000 +0200
@@ -44,8 +44,8 @@
        QMAKESPEC="linux-g++" LIBS=${LIBS} econf --with-qt=${QTDIR} || die

        cp Makefile Makefile.orig
-       sed -e "s:CFLAGS   = -pipe -Wall -W -g:CFLAGS   = ${CFLAGS}:" \
-               -e "s:CXXFLAGS = -pipe -Wall -W -g:CXXFLAGS = ${CXXFLAGS}:" \
+       sed -e "s:CFLAGS   = -pipe -Wall -W -O2:CFLAGS   = ${CFLAGS}:" \
+               -e "s:CXXFLAGS = -pipe -Wall -W -O2:CXXFLAGS = ${CXXFLAGS}:" \
                Makefile.orig > Makefile

        QTDIR=$QTDIR


Reproducible: Always
Steps to Reproduce:
1. emerge mysqlcc
2. look at the compiler flags
Actual Results:  
It uses the flags from the original Makefile

Expected Results:  
It should use the flags from /etc/make.conf
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2003-08-15 11:38:59 UTC
Fixed in portage, also makred x86 stable.  Thanks for the report.