dev-scheme/c-wrapper: fix for >=sys-libs/glibc-2.25
authorAkinori Hattori <hattya@gentoo.org>
Wed, 11 Jul 2018 14:38:29 +0000 (23:38 +0900)
committerAkinori Hattori <hattya@gentoo.org>
Wed, 11 Jul 2018 14:39:30 +0000 (23:39 +0900)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild
dev-scheme/c-wrapper/files/c-wrapper-glibc-2.25.patch [new file with mode: 0644]

index c47ed5ad71e407518301c5648b74e5564043dde6..cd0348a0133adae7819bee218bee185375e7e85f 100644 (file)
@@ -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 (file)
index 0000000..0776b25
--- /dev/null
@@ -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))