diff --git a/srcpkgs/tmux/patches/reallocarray.patch b/srcpkgs/tmux/patches/reallocarray.patch new file mode 100644 index 0000000000..ca96defd30 --- /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 df8e84bb4a..b0f2178d49 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