pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel



Module Name:    pkgsrc
Committed By:   nia
Date:           Wed Apr 20 17:56:29 UTC 2022

Modified Files:
        pkgsrc/devel: Makefile
Added Files:
        pkgsrc/devel/libmpack: DESCR Makefile PLIST buildlink3.mk distinfo
        pkgsrc/devel/libmpack/patches: patch-test_deps_tap_tap.c

Log Message:
devel: add libmpack

libmpack is a small binary serialization/RPC library that implements both
the msgpack and msgpack-rpc specifications.


To generate a diff of this commit:
cvs rdiff -u -r1.3717 -r1.3718 pkgsrc/devel/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/libmpack/DESCR \
    pkgsrc/devel/libmpack/Makefile pkgsrc/devel/libmpack/PLIST \
    pkgsrc/devel/libmpack/buildlink3.mk pkgsrc/devel/libmpack/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/devel/libmpack/patches/patch-test_deps_tap_tap.c

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

Modified files:

Index: pkgsrc/devel/Makefile
diff -u pkgsrc/devel/Makefile:1.3717 pkgsrc/devel/Makefile:1.3718
--- pkgsrc/devel/Makefile:1.3717        Wed Apr 20 17:41:08 2022
+++ pkgsrc/devel/Makefile       Wed Apr 20 17:56:29 2022
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3717 2022/04/20 17:41:08 nia Exp $
+# $NetBSD: Makefile,v 1.3718 2022/04/20 17:56:29 nia Exp $
 #
 
 COMMENT=       Development utilities
@@ -893,6 +893,7 @@ SUBDIR+=    libmemmgr
 SUBDIR+=       libmimedir
 SUBDIR+=       libmm
 SUBDIR+=       libmowgli
+SUBDIR+=       libmpack
 SUBDIR+=       libmtp
 SUBDIR+=       libnet
 SUBDIR+=       libnet10

Added files:

Index: pkgsrc/devel/libmpack/DESCR
diff -u /dev/null pkgsrc/devel/libmpack/DESCR:1.1
--- /dev/null   Wed Apr 20 17:56:29 2022
+++ pkgsrc/devel/libmpack/DESCR Wed Apr 20 17:56:29 2022
@@ -0,0 +1,2 @@
+libmpack is a small binary serialization/RPC library that implements both
+the msgpack and msgpack-rpc specifications.
Index: pkgsrc/devel/libmpack/Makefile
diff -u /dev/null pkgsrc/devel/libmpack/Makefile:1.1
--- /dev/null   Wed Apr 20 17:56:29 2022
+++ pkgsrc/devel/libmpack/Makefile      Wed Apr 20 17:56:29 2022
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2022/04/20 17:56:29 nia Exp $
+
+DISTNAME=      libmpack-1.0.5
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=libmpack/}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/libmpack/libmpack
+COMMENT=       Simple implementation of msgpack in C
+LICENSE=       mit
+
+USE_LIBTOOL=   yes
+USE_TOOLS+=    gmake
+
+PKGCONFIG_OVERRIDE+=   mpack.pc.in
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/devel/libmpack/PLIST
diff -u /dev/null pkgsrc/devel/libmpack/PLIST:1.1
--- /dev/null   Wed Apr 20 17:56:29 2022
+++ pkgsrc/devel/libmpack/PLIST Wed Apr 20 17:56:29 2022
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2022/04/20 17:56:29 nia Exp $
+include/mpack.h
+lib/libmpack.la
+lib/pkgconfig/mpack.pc
Index: pkgsrc/devel/libmpack/buildlink3.mk
diff -u /dev/null pkgsrc/devel/libmpack/buildlink3.mk:1.1
--- /dev/null   Wed Apr 20 17:56:29 2022
+++ pkgsrc/devel/libmpack/buildlink3.mk Wed Apr 20 17:56:29 2022
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/04/20 17:56:29 nia Exp $
+
+BUILDLINK_TREE+=       libmpack
+
+.if !defined(LIBMPACK_BUILDLINK3_MK)
+LIBMPACK_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libmpack+=       libmpack>=1.0.0
+BUILDLINK_PKGSRCDIR.libmpack?=         ../../devel/libmpack
+.endif # LIBMPACK_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libmpack
Index: pkgsrc/devel/libmpack/distinfo
diff -u /dev/null pkgsrc/devel/libmpack/distinfo:1.1
--- /dev/null   Wed Apr 20 17:56:29 2022
+++ pkgsrc/devel/libmpack/distinfo      Wed Apr 20 17:56:29 2022
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/04/20 17:56:29 nia Exp $
+
+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

Index: pkgsrc/devel/libmpack/patches/patch-test_deps_tap_tap.c
diff -u /dev/null pkgsrc/devel/libmpack/patches/patch-test_deps_tap_tap.c:1.1
--- /dev/null   Wed Apr 20 17:56:29 2022
+++ pkgsrc/devel/libmpack/patches/patch-test_deps_tap_tap.c     Wed Apr 20 17:56:29 2022
@@ -0,0 +1,21 @@
+$NetBSD: patch-test_deps_tap_tap.c,v 1.1 2022/04/20 17:56:29 nia Exp $
+
+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