tmux: update to 3.2.

This commit is contained in:
Đoàn Trần Công Danh 2021-04-17 19:22:17 +07:00 committed by Đoàn Trần Công Danh
parent d6f96dfd57
commit 7600cf7b30
2 changed files with 34 additions and 4 deletions

View file

@ -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 <stdlib.h>],
- [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 <stdlib.h>],
- [return (recallocarray(NULL, 1, 1, 1) == NULL);]
- )],
+AC_CHECK_FUNC(recallocarray,
AC_MSG_RESULT(yes),
[AC_LIBOBJ(recallocarray) AC_MSG_RESULT([no])]
)

View file

@ -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