summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2018-07-11 23:38:29 +0900
committerAkinori Hattori <hattya@gentoo.org>2018-07-11 23:39:30 +0900
commit93dd144b582fb7ecfad95b1654125510d1d7aee5 (patch)
tree50e783b08822424de19ea6d0755e6314df8f37f8
parentdev-scheme/c-wrapper: fix for >=sys-devel/gcc-5 (diff)
downloadgentoo-93dd144b582fb7ecfad95b1654125510d1d7aee5.tar.gz
gentoo-93dd144b582fb7ecfad95b1654125510d1d7aee5.tar.bz2
gentoo-93dd144b582fb7ecfad95b1654125510d1d7aee5.zip
dev-scheme/c-wrapper: fix for >=sys-libs/glibc-2.25
Package-Manager: Portage-2.3.40, Repoman-2.3.9
-rw-r--r--dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild1
-rw-r--r--dev-scheme/c-wrapper/files/c-wrapper-glibc-2.25.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild b/dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild
index c47ed5ad71e4..cd0348a0133a 100644
--- a/dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild
+++ b/dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild
@@ -22,6 +22,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-closure.patch
"${FILESDIR}"/${PN}-gcc-5.patch
"${FILESDIR}"/${PN}-gentoo.patch
+ "${FILESDIR}"/${PN}-glibc-2.25.patch
)
HTML_DOCS=( doc/${PN}-ref{e,j}.html )
diff --git a/dev-scheme/c-wrapper/files/c-wrapper-glibc-2.25.patch b/dev-scheme/c-wrapper/files/c-wrapper-glibc-2.25.patch
new file mode 100644
index 000000000000..0776b255bbac
--- /dev/null
+++ b/dev-scheme/c-wrapper/files/c-wrapper-glibc-2.25.patch
@@ -0,0 +1,13 @@
+--- a/lib/c-wrapper/c-parser.scm
++++ b/lib/c-wrapper/c-parser.scm
+@@ -1115,7 +1115,9 @@
+ (raise e))))
+ (call-with-gcc-io include-dirs headers options
+ (lambda (in out)
+- (let ((macro-list (queue->list (macro-queue))))
++ (let ((macro-list (filter (lambda (m)
++ (not (string-prefix? "__glibc_macro_warning" (car m))))
++ (queue->list (macro-queue)))))
+ (for-each (lambda (macro-def)
+ (display (car macro-def) out)
+ (newline out))