tmate: fix build against msgpack-c 6.0
authorTianling Shen <cnsztl@immortalwrt.org>
Tue, 7 Mar 2023 02:52:37 +0000 (10:52 +0800)
committerJosef Schlehofer <pepe.schlehofer@gmail.com>
Fri, 1 Sep 2023 20:07:17 +0000 (22:07 +0200)
This patch is taken from
https://git.alpinelinux.org/aports/commit/?id=f923597f4bdea424dc28b1d026269df060596fac

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
(cherry picked from commit 928710813baba4f6f5130d936f0cab44c0033b90)

net/tmate/Makefile
net/tmate/patches/020-msgpack-c.patch [new file with mode: 0644]

index 0ab28a0ba0674f198aa3c0f02302231559863a3b..ee3c0b588d3aa4821c7e292012ed28a109773ab3 100644 (file)
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=tmate
 PKG_VERSION:=2.4.0
-PKG_RELEASE:=$(AUTORELEASE)
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=https://codeload.github.com/tmate-io/tmate/tar.gz/$(PKG_VERSION)?
diff --git a/net/tmate/patches/020-msgpack-c.patch b/net/tmate/patches/020-msgpack-c.patch
new file mode 100644 (file)
index 0000000..5d0cec6
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -201,7 +201,7 @@ fi
+ PKG_CHECK_MODULES(
+   MSGPACK,
+-  msgpack >= 1.1.0,
++  msgpack-c >= 1.1.0,
+   [
+     CPPFLAGS="$MSGPACK_CFLAGS $CPPFLAGS"
+     LIBS="$MSGPACK_LIBS $LIBS"