Browse Source

tmux: update to 3.2a, needs locale

Waldemar Brodkorb 2 years ago
parent
commit
dd473e9030
3 changed files with 27 additions and 4 deletions
  1. 4 3
      package/tmux/Makefile
  2. 22 0
      package/tmux/patches/patch-configure_ac
  3. 1 1
      target/config/Config.in.runtime

+ 4 - 3
package/tmux/Makefile

@@ -4,14 +4,14 @@
 include $(ADK_TOPDIR)/rules.mk
 
 PKG_NAME:=		tmux
-PKG_VERSION:=		2.9
+PKG_VERSION:=		3.2a
 PKG_RELEASE:=		1
-PKG_HASH:=		34901232f486fd99f3a39e864575e658b5d49f43289ccc6ee57c365f2e2c2980
+PKG_HASH:=		551553a4f82beaa8dadc9256800bcc284d7c000081e47aa6ecbb6ff36eacd05f
 PKG_DESCR:=		terminal multiplexer
 PKG_SECTION:=		sys/utils
 PKG_BUILDDEP:=		libevent ncurses
 PKG_DEPENDS:=		libevent libncurses
-PKG_NEEDS:=		threads
+PKG_NEEDS:=		threads locale
 PKG_URL:=		http://tmux.github.io
 PKG_SITES:=		https://github.com/tmux/tmux/releases/download/$(PKG_VERSION)/
 
@@ -21,6 +21,7 @@ include $(ADK_TOPDIR)/mk/package.mk
 
 $(eval $(call PKG_template,TMUX,tmux,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
 
+AUTOTOOL_STYLE:=	autoreconf
 TARGET_LDFLAGS+=	-ltinfo
 CONFIGURE_ARGS+=	--disable-static
 

+ 22 - 0
package/tmux/patches/patch-configure_ac

@@ -0,0 +1,22 @@
+--- tmux-3.2a.orig/configure.ac	2021-06-10 10:20:51.000000000 +0200
++++ tmux-3.2a/configure.ac	2022-03-16 12:00:53.916934376 +0100
+@@ -150,18 +150,10 @@ AC_REPLACE_FUNCS([ \
+ 	strlcpy \
+ 	strndup \
+ 	strsep \
++	strtonum \
+ ])
+ AC_FUNC_STRNLEN
+ 
+-# Check if strtonum works.
+-AC_MSG_CHECKING([for working strtonum])
+-AC_RUN_IFELSE([AC_LANG_PROGRAM(
+-         [#include <stdlib.h>],
+-         [return (strtonum("0", 0, 1, NULL) == 0 ? 0 : 1);]
+-	 )],
+-	 [AC_DEFINE(HAVE_STRTONUM) AC_MSG_RESULT(yes)],
+-	 [AC_LIBOBJ(strtonum) AC_MSG_RESULT(no)]
+-)
+ 
+ # Clang sanitizers wrap reallocarray even if it isn't available on the target
+ # system. When compiled it always returns NULL and crashes the program. To

+ 1 - 1
target/config/Config.in.runtime

@@ -194,7 +194,7 @@ config ADK_RUNTIME_DEFAULT_LOCALE
 	string "default locale"
 	depends on ADK_TARGET_LIBC_WITH_LOCALE \
 		|| ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_MUSL
-	default "C.UTF-8"
+	default "en_US.UTF-8"
 	help
 	  Locale to be set in the target system as default.