From 7600cf7b30627c727034f50a766171ef0c023bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 17 Apr 2021 19:22:17 +0700 Subject: [PATCH] tmux: update to 3.2. --- srcpkgs/tmux/patches/reallocarray.patch | 25 +++++++++++++++++++++++++ srcpkgs/tmux/template | 13 +++++++++---- 2 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 srcpkgs/tmux/patches/reallocarray.patch diff --git a/srcpkgs/tmux/patches/reallocarray.patch b/srcpkgs/tmux/patches/reallocarray.patch new file mode 100644 index 00000000000..ca96defd308 --- /dev/null +++ b/srcpkgs/tmux/patches/reallocarray.patch @@ -0,0 +1,25 @@ +Index: tmux-3.2/configure.ac +=================================================================== +--- tmux-3.2.orig/configure.ac ++++ tmux-3.2/configure.ac +@@ -158,18 +158,12 @@ AC_FUNC_STRNLEN + # system. When compiled it always returns NULL and crashes the program. To + # detect this we need a more complicated test. + AC_MSG_CHECKING([for working reallocarray]) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( +- [#include ], +- [return (reallocarray(NULL, 1, 1) == NULL);] +- )], ++AC_CHECK_FUNC(reallocarray, + AC_MSG_RESULT(yes), + [AC_LIBOBJ(reallocarray) AC_MSG_RESULT([no])] + ) + AC_MSG_CHECKING([for working recallocarray]) +-AC_RUN_IFELSE([AC_LANG_PROGRAM( +- [#include ], +- [return (recallocarray(NULL, 1, 1, 1) == NULL);] +- )], ++AC_CHECK_FUNC(recallocarray, + AC_MSG_RESULT(yes), + [AC_LIBOBJ(recallocarray) AC_MSG_RESULT([no])] + ) diff --git a/srcpkgs/tmux/template b/srcpkgs/tmux/template index df8e84bb4ab..b0f2178d49e 100644 --- a/srcpkgs/tmux/template +++ b/srcpkgs/tmux/template @@ -1,9 +1,9 @@ # Template file for 'tmux' pkgname=tmux -version=3.1c -revision=2 +version=3.2 +revision=1 build_style=gnu-configure -hostmakedepends="byacc" +hostmakedepends="byacc automake pkg-config" makedepends="libevent-devel ncurses-devel" depends="ncurses-base" short_desc="Terminal Multiplexer" @@ -12,7 +12,12 @@ license="ISC" homepage="https://tmux.github.io" changelog="https://raw.githubusercontent.com/tmux/tmux/master/CHANGES" distfiles="https://github.com/tmux/tmux/releases/download/${version}/tmux-${version}.tar.gz" -checksum=918f7220447bef33a1902d4faff05317afd9db4ae1c9971bef5c787ac6c88386 +checksum=664d345338c11cbe429d7ff939b92a5191e231a7c1ef42f381cebacb1e08a399 +patch_args=-Np1 + +pre_configure() { + autoreconf -fi +} post_install() { vlicense COPYING