summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2018-07-11 23:33:20 +0900
committerAkinori Hattori <hattya@gentoo.org>2018-07-11 23:39:29 +0900
commita87a1d38d3df77636fcd39600bd54e2b047c0de3 (patch)
tree8242b9566055e7903a628718bafbafc3fd8c0242 /dev-scheme
parentdev-scheme/c-wrapper: respect CFLAGS (diff)
downloadgentoo-a87a1d38d3df77636fcd39600bd54e2b047c0de3.tar.gz
gentoo-a87a1d38d3df77636fcd39600bd54e2b047c0de3.tar.bz2
gentoo-a87a1d38d3df77636fcd39600bd54e2b047c0de3.zip
dev-scheme/c-wrapper: fix finalizer of ffi_closure
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild (renamed from dev-scheme/c-wrapper/c-wrapper-0.6.1.ebuild)5
-rw-r--r--dev-scheme/c-wrapper/files/c-wrapper-closure.patch10
2 files changed, 14 insertions, 1 deletions
diff --git a/dev-scheme/c-wrapper/c-wrapper-0.6.1.ebuild b/dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild
index 864680e0294..709c8c2eb64 100644
--- a/dev-scheme/c-wrapper/c-wrapper-0.6.1.ebuild
+++ b/dev-scheme/c-wrapper/c-wrapper-0.6.1-r1.ebuild
@@ -18,7 +18,10 @@ RDEPEND="dev-scheme/gauche
virtual/libffi"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}"/${PN}-gentoo.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-closure.patch
+ "${FILESDIR}"/${PN}-gentoo.patch
+)
HTML_DOCS=( doc/${PN}-ref{e,j}.html )
src_prepare() {
diff --git a/dev-scheme/c-wrapper/files/c-wrapper-closure.patch b/dev-scheme/c-wrapper/files/c-wrapper-closure.patch
new file mode 100644
index 00000000000..24be1d052fd
--- /dev/null
+++ b/dev-scheme/c-wrapper/files/c-wrapper-closure.patch
@@ -0,0 +1,10 @@
+--- a/src/closure_alloc.c
++++ b/src/closure_alloc.c
+@@ -100,6 +100,7 @@
+ ++(node->n);
+ return;
+ }
++ node = node->next;
+ }
+
+ node = malloc(sizeof(FreeNode));