diff options
author | 2007-03-30 06:02:15 +0000 | |
---|---|---|
committer | 2007-03-30 06:02:15 +0000 | |
commit | ac64d8b26534524cfa9bce1009b403757fd3dc16 (patch) | |
tree | 241daa3d484c9d0b48e43e0056607f60e0428fbc /sys-devel/autogen/files | |
parent | Make cronjob prelinking control tristate (yes, no, user-controlled) as sugges... (diff) | |
download | historical-ac64d8b26534524cfa9bce1009b403757fd3dc16.tar.gz historical-ac64d8b26534524cfa9bce1009b403757fd3dc16.tar.bz2 historical-ac64d8b26534524cfa9bce1009b403757fd3dc16.zip |
Make sure -ggdb3 in CFLAGS doesnt cause a test failure #172533 by Kevin F. Quinn.
Package-Manager: portage-2.1.2.2
Diffstat (limited to 'sys-devel/autogen/files')
-rw-r--r-- | sys-devel/autogen/files/autogen-5.8.8-scrub-debug.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-devel/autogen/files/autogen-5.8.8-scrub-debug.patch b/sys-devel/autogen/files/autogen-5.8.8-scrub-debug.patch new file mode 100644 index 000000000000..b9e3a142328f --- /dev/null +++ b/sys-devel/autogen/files/autogen-5.8.8-scrub-debug.patch @@ -0,0 +1,25 @@ +The test autoopts/test/immediate.test fails if CFLAGS contains any of the debug +flags (apart from -g). This is because it tries to filter those flags out by +using this: + + CFLAGS="-g `echo ${CFLAGS} | \ + sed 's,-O2,,;s/-g//'`" + +which clearly replaces -ggdb2 (for example) with -gdb2 - which isn't a valid +CFLAG and the test compilation fails. A simple fix is to make the sed script a +little more consistent. + +Kevin F. Quinn <kevquinn@gentoo.org> +http://bugs.gentoo.org/172533 + +--- autoopts/test/immediate.test ++++ autoopts/test/immediate.test +@@ -51,7 +51,7 @@ _EOF_ + + INC=`echo ${INC} | sed 's/-lguile//;s/-lqthreads//'` + CFLAGS="-g `echo ${CFLAGS} | \ +- sed 's,-O2,,;s/-g//'`" ++ sed 's,-O2,,;s/-g[^[:space:]]*//'`" + + echo ${AG_L} ${testname}.def + ${AG_L} ${testname}.def || \ |