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

Bug 519768

Summary: dev-libs/libhid-0.2.16-r3 mangles CFLAGS=-frecord-gcc-switches
Product: Gentoo Linux Reporter: Robin Johnson <robbat2>
Component: [OLD] Keywording and StabilizationAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-08-13 01:13:57 UTC
Add -frecord-gcc-switches to CFLAGS
Compile.

make[2]: Entering directory '/dev/shm/portage/dev-libs/libhid-0.2.16-r3/work/libhid-0.2.16/hidparser'
if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I..   -DNDEBUG -fPIC -march=native -O2 -pipe -frecord -Wall -W -MT hidparser.lo -MD -MP -MF ".deps/hidparser.Tpo" -c -o hidparser.lo hidparser.c; \
then mv -f ".deps/hidparser.Tpo" ".deps/hidparser.Plo"; else rm -f ".deps/hidparser.Tpo"; exit 1; fi
mkdir .libs
 x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -DNDEBUG -fPIC -march=native -O2 -pipe -frecord -Wall -W -MT hidparser.lo -MD -MP -MF .deps/hidparser.Tpo -c hidparser.c  -fPIC -DPIC -o .libs/hidparser.o
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-frecord'
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-13 08:47:36 UTC
--- libhid-0.2.16-r3.ebuild     17 Dec 2012 20:56:20 -0000      1.4
+++ libhid-0.2.16-r3.ebuild     13 Aug 2014 08:46:55 -0000
@@ -31,6 +31,8 @@ src_prepare() {
        export OS_LDFLAGS="${LDFLAGS}"
        # Bug #260884
        sed -i -e 's/-Werror//' m4/md_conf_compiler.m4 || die
+       # bug #519768
+       sed -i -e '/MD_CONF_DEBUGGING/d' configure.ac || die
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-08-13 10:00:28 UTC

*** This bug has been marked as a duplicate of bug 429816 ***