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

Bug 239901

Summary: app-admin/mcelog-0.7: CFLAGS are ignored
Product: Gentoo Linux Reporter: Diego Elio Pettenò (RETIRED) <flameeyes>
Component: New packagesAssignee: AMD64 Project <amd64>
Status: RESOLVED FIXED    
Severity: normal Keywords: Inclusion
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-10-05 10:53:30 UTC
I don't know the build system for this program (and this is a generic bug template so I cannot tell you which program exactly is), but my tests shows that it's not respecting CFLAGS properly.

Please look into it, since it's important to respect user CFLAGS.

Thanks,
Diego
Comment 1 Chad A. Simmons 2008-10-07 14:00:47 UTC
I was going to post a patch but this is very simple. Simply add the following section to the ebuild.

src_unpack() {
        unpack ${A}
        cd "${S}"
        sed -i -e 's:-g:${CFLAGS}:g' Makefile || die "sed makefile failed"
}

Verfied this works
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-14 00:54:06 UTC
Thanks Chad, done.