pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

libmpack: fix build.



Module Name:	pkgsrc-wip
Committed By:	nikita <nikita%NetBSD.org@localhost>
Pushed By:	nikita
Date:		Tue Jun 16 19:39:42 2020 +0200
Changeset:	769fcde5d6918b6525e5bfa360a33d9e250482b8

Modified Files:
	libmpack/distinfo
Added Files:
	libmpack/patches/patch-test_deps_tap_tap.c

Log Message:
libmpack: fix build.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=769fcde5d6918b6525e5bfa360a33d9e250482b8

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 libmpack/distinfo                          |  1 +
 libmpack/patches/patch-test_deps_tap_tap.c | 21 +++++++++++++++++++++
 2 files changed, 22 insertions(+)

diffs:
diff --git a/libmpack/distinfo b/libmpack/distinfo
index 8f431d4d30..90647f1c17 100644
--- a/libmpack/distinfo
+++ b/libmpack/distinfo
@@ -4,3 +4,4 @@ SHA1 (libmpack-1.0.5.tar.gz) = 5b496b6a59285c56053f0337ed4b4f923b2d1fa2
 RMD160 (libmpack-1.0.5.tar.gz) = 9fe75c368af72d7b96fc6ea03b07ef8daeb41d87
 SHA512 (libmpack-1.0.5.tar.gz) = 6e30edafcacfb580b410bc6749ed7fe8f18b3be0cb98959339853e77bc3ec0cda6df08a0f1f22768cfc773458a2ea6bcef4f0421eea55cf56c58981d13711a04
 Size (libmpack-1.0.5.tar.gz) = 32966 bytes
+SHA1 (patch-test_deps_tap_tap.c) = fd935cbc243e54ef02d692fd9d514923cc61de15
diff --git a/libmpack/patches/patch-test_deps_tap_tap.c b/libmpack/patches/patch-test_deps_tap_tap.c
new file mode 100644
index 0000000000..7d0fafe2ec
--- /dev/null
+++ b/libmpack/patches/patch-test_deps_tap_tap.c
@@ -0,0 +1,21 @@
+$NetBSD$
+
+Fix redefinition of MAP_ANONYMOUS
+https://github.com/libmpack/libmpack/issues/42
+
+--- test/deps/tap/tap.c.orig    2017-03-19 21:48:19.000000000 +0100
++++ test/deps/tap/tap.c 2020-06-16 19:33:41.583771997 +0200
+@@ -298,8 +298,12 @@
+ #include <sys/param.h>
+ #include <regex.h>
+ 
+-#if defined __APPLE__ || defined BSD
++#ifndef MAP_ANONYMOUS
++#ifdef MAP_ANON
+ #define MAP_ANONYMOUS MAP_ANON
++#else
++#error "System does not support mapping anonymous pages"
++#endif
+ #endif
+ 
+ /* Create a shared memory int to keep track of whether a piece of code executed


Home | Main Index | Thread Index | Old Index