summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <rhill@gentoo.org>2015-09-17 23:10:10 -0600
committerRyan Hill <rhill@gentoo.org>2015-10-12 17:22:16 -0600
commit8aee6d8f74df2c382da1e39c4324f5cd8f2ea962 (patch)
tree84531650abfd0227abc269ef91316725a92f8f80 /dev-scheme/guile/files
parentwww-client/epiphany: DEPEND on itstool (diff)
downloadgentoo-8aee6d8f74df2c382da1e39c4324f5cd8f2ea962.tar.gz
gentoo-8aee6d8f74df2c382da1e39c4324f5cd8f2ea962.tar.bz2
gentoo-8aee6d8f74df2c382da1e39c4324f5cd8f2ea962.zip
dev-scheme/guile: Fix breakage with GCC 5 (bug #560736)
Preprocessor changes in GCC 5 cause guile-snarf to output garbage. Gentoo-Bug: https://bugs.gentoo.org/560736
Diffstat (limited to 'dev-scheme/guile/files')
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-gcc5.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/dev-scheme/guile/files/guile-1.8.8-gcc5.patch b/dev-scheme/guile/files/guile-1.8.8-gcc5.patch
new file mode 100644
index 000000000000..742ea0ba9de2
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-gcc5.patch
@@ -0,0 +1,15 @@
+Preprocessor changes in GCC 5 cause guile-snarf to output garbage.
+
+https://bugs.gentoo.org/560736
+
+--- a/libguile/guile-snarf.in
++++ b/libguile/guile-snarf.in
+@@ -50,7 +50,7 @@
+ ## Apparently, AIX's preprocessor is unhappy if you try to #include an
+ ## empty file.
+ echo "/* cpp arguments: $@ */" ;
+- ${cpp} -DSCM_MAGIC_SNARF_INITS -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
++ ${cpp} -P -DSCM_MAGIC_SNARF_INITS -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
+ grep "^ *\^ *\^" ${temp} | sed -e "s/^ *\^ *\^//" -e "s/\^\ *:\ *\^.*/;/"
+ }
+