Skip to content

Commit 71aff4e

Browse files
committed
package: DEFPATH workaround for Android/Termux
1 parent fde2288 commit 71aff4e

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

bin/package

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1686,11 +1686,13 @@ DEFPATH=$(
16861686
) || DEFPATH=/bin:/usr/bin:/sbin:/usr/sbin
16871687
# Fix for Android/Termux. The /bin directory exists with standard
16881688
# utilities (sh, Toybox utils) but it is not included in _PATH_DEFPATH.
1689-
# It should come first because /bin is read-only.
1689+
# However, Android is so buggy that some stuff in /bin is broken (e.g.,
1690+
# invoking /bin/df produces a syntax error from the shell). Let /bin come
1691+
# last so broken binaries can be overridden.
16901692
if test -d /data/data/com.termux && test "$(/bin/uname -o 2>/dev/null)" = Android
16911693
then case ":$DEFPATH:" in
16921694
*:/bin:* ) ;;
1693-
* ) DEFPATH=/bin:$DEFPATH ;;
1695+
* ) DEFPATH=$DEFPATH:/bin ;;
16941696
esac
16951697
fi
16961698
# Fix for NixOS. Not all POSIX standard utilities come with the default system,

src/lib/libast/comp/conf.tab

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#
22
# posix { getconf limits } macro table
33
#
4-
# @(#)conf.tab (ksh 93u+m) 2024-07-01
4+
# @(#)conf.tab (ksh 93u+m) 2025-04-11
55
#
66
# name standard call section flags [ header ... ] [ value ... ]
77
#

0 commit comments

Comments
 (0)