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

Bug 148638

Summary: libwbxml-ebuild breaks if CFLAGS contains "-ggdb"
Product: Gentoo Linux Reporter: Simon Stelling (RETIRED) <blubb>
Component: New packagesAssignee: Michele Noberasco (RETIRED) <s4t4n>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Simon Stelling (RETIRED) gentoo-dev 2006-09-22 05:35:10 UTC
libwbxml-ebuild breaks if CFLAGS contains "-ggdb":

 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/include -DHAVE_CONFIG_H -DHAVE_EXPAT -D_REENTRANT -DWBXML_ENCODER_USE_STRTBL -DWBXML_SUPPORT_WML -DWBXML_SUPPORT_WTA -DWBXML_SUPPORT_SI -DWBXML_SUPPORT_SL -DWBXML_SUPPORT_CO -DWBXML_SUPPORT_PROV -DWBXML_SUPPORT_EMN -DWBXML_SUPPORT_DRMREL -DWBXML_SUPPORT_OTA_SETTINGS -DWBXML_SUPPORT_SYNCML -DWBXML_SUPPORT_WV -DWBXML_SUPPORT_AIRSYNC -Wall -Wimplicit -Wreturn-type -Wunused -Wswitch -Wcomment -Wuninitialized -Wparentheses -Wpointer-arith -Wmissing-prototypes gdb -march=k8 -pipe -MT wbxml_base64.lo -MD -MP -MF .deps/wbxml_base64.Tpo -c wbxml_base64.c  -fPIC -DPIC -o .libs/wbxml_base64.o
x86_64-pc-linux-gnu-gcc: gdb: No such file or directory

this patch fixes it, if you don't object i'll go and commit the fix

--- libwbxml-0.9.2.ebuild       21 Sep 2006 19:38:13 -0000      1.3
+++ libwbxml-0.9.2.ebuild       22 Sep 2006 12:32:16 -0000
@@ -38,10 +38,7 @@
        epatch ${FILESDIR}/${MY_P}.make_install.patch

        # Add support for our own CFLAGS
-       sed -i -e "s:-O3\\\:${CFLAGS}:"   src/Makefile.am
-       sed -i -e "s:    -g::"            src/Makefile.am
-       sed -i -e "s:-O3\\\:${CFLAGS}:" tools/Makefile.am
-       sed -i -e "s:    -g::"          tools/Makefile.am
+       sed -i -e "s:    -g::" -e "s:-O3\\\:${CFLAGS}:" {src,tools}/Makefile.am

        chmod 755 bootstrap
 }
Comment 1 Simon Stelling (RETIRED) gentoo-dev 2006-09-24 02:43:40 UTC
i take that as a "yeah sure go on" ;)