From 4a82ccd489dad39bf05b3a060754561bf79315b3 Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Sat, 22 Mar 2025 03:27:54 +0500 Subject: [PATCH 1/4] login: export `libtermux-exec-ld-preload.so` for `termux-exec` package version `>= 2.0.0` --- scripts/login.in | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/scripts/login.in b/scripts/login.in index 393322e..2e7aa79 100644 --- a/scripts/login.in +++ b/scripts/login.in @@ -39,8 +39,17 @@ if [ -z "${TERMUX_APP_PACKAGE_MANAGER-}" ]; then fi fi -if [ -f @TERMUX_PREFIX@/lib/libtermux-exec.so ]; then - export LD_PRELOAD=@TERMUX_PREFIX@/lib/libtermux-exec.so +# Export `libtermux-exec-ld-preload.so` for `termux-exec` +# package version `>= 2.0.0`. +# Some devices may not support setting `$LD_PRELOAD`. +# - https://github.com/termux/termux-packages/issues/2066 +# - https://github.com/termux/termux-packages/commit/1ec6c042 +# - https://github.com/termux/termux-packages/commit/6fb2bb2f +if [ -f "@TERMUX_PREFIX@/lib/libtermux-exec-ld-preload.so" ]; then + export LD_PRELOAD="@TERMUX_PREFIX@/lib/libtermux-exec-ld-preload.so" + $SHELL -c "coreutils --coreutils-prog=true" > /dev/null 2>&1 || unset LD_PRELOAD +elif [ -f "@TERMUX_PREFIX@/lib/libtermux-exec.so" ]; then + export LD_PRELOAD="@TERMUX_PREFIX@/lib/libtermux-exec.so" $SHELL -c "coreutils --coreutils-prog=true" > /dev/null 2>&1 || unset LD_PRELOAD fi From ba2903dc6e3aaa22a9a981363b497521e3e4fabf Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Sat, 22 Mar 2025 03:34:10 +0500 Subject: [PATCH 2/4] termux-info: add supported ABIs info for armv8l and 64-bit-only aarch64 devices --- scripts/termux-info.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/termux-info.in b/scripts/termux-info.in index f932ed1..92b7ba8 100644 --- a/scripts/termux-info.in +++ b/scripts/termux-info.in @@ -132,6 +132,10 @@ Device manufacturer: $(getprop ro.product.manufacturer) Device model: $(getprop ro.product.model) +Supported ABIs: +SUPPORTED_ABIS: $(getprop ro.product.cpu.abilist) +SUPPORTED_32_BIT_ABIS: $(getprop ro.product.cpu.abilist32) +SUPPORTED_64_BIT_ABIS: $(getprop ro.product.cpu.abilist64) LD Variables: LD_LIBRARY_PATH=$LD_LIBRARY_PATH LD_PRELOAD=$LD_PRELOAD" From 0f28caca0c125b63ed725684eeec1b895a0eae2a Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Sat, 22 Mar 2025 03:43:06 +0500 Subject: [PATCH 3/4] termux-info: add `--no-set-clipboard` flag to help --- scripts/termux-info.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/termux-info.in b/scripts/termux-info.in index 92b7ba8..f7ec782 100644 --- a/scripts/termux-info.in +++ b/scripts/termux-info.in @@ -3,7 +3,7 @@ NO_SET_CLIPBOARD=0 show_usage () { - echo 'usage: termux-info' + echo 'usage: termux-info [--no-set-clipboard]' echo 'Provides information about Termux, and the current system. Helpful for debugging.' exit 0 From a62f7b21bc6cdfb343c319d920097ad69b814134 Mon Sep 17 00:00:00 2001 From: agnostic-apollo Date: Sat, 22 Mar 2025 03:53:23 +0500 Subject: [PATCH 4/4] version 1.45.0 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6559647..bc20ae8 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ dnl along with termux-tools. If not, see dnl . AC_PREREQ([2.69]) -AC_INIT([termux-tools], [1.44.7], [support@termux.dev]) +AC_INIT([termux-tools], [1.45.0], [support@termux.dev]) AM_INIT_AUTOMAKE([foreign])