proot: termux-chroot needs to bind /linkerconfig/ld.config.txt on Android 11
Without /linkerconfig/ld.config.txt, dynamic linker will unable to find shared libraries provided by APEX modules.
This commit is contained in:
parent
11e6365843
commit
0729cb17ab
|
@ -5,7 +5,7 @@ TERMUX_PKG_MAINTAINER="@termux"
|
||||||
# Just bump commit and version when needed:
|
# Just bump commit and version when needed:
|
||||||
_COMMIT=336f4787d64e377039143ad2a50139aee4e10ad4
|
_COMMIT=336f4787d64e377039143ad2a50139aee4e10ad4
|
||||||
TERMUX_PKG_VERSION=5.1.107
|
TERMUX_PKG_VERSION=5.1.107
|
||||||
TERMUX_PKG_REVISION=35
|
TERMUX_PKG_REVISION=36
|
||||||
TERMUX_PKG_SRCURL=https://github.com/termux/proot/archive/${_COMMIT}.zip
|
TERMUX_PKG_SRCURL=https://github.com/termux/proot/archive/${_COMMIT}.zip
|
||||||
TERMUX_PKG_SHA256=09507f94151467ecc45b82b4300f2fd4579d055446c5122f92b1f34a505eb655
|
TERMUX_PKG_SHA256=09507f94151467ecc45b82b4300f2fd4579d055446c5122f92b1f34a505eb655
|
||||||
TERMUX_PKG_DEPENDS="libtalloc"
|
TERMUX_PKG_DEPENDS="libtalloc"
|
||||||
|
|
|
@ -45,6 +45,11 @@ if [ -d /apex ]; then
|
||||||
ARGS="$ARGS -b /apex:/apex"
|
ARGS="$ARGS -b /apex:/apex"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Android 11.
|
||||||
|
if [ -e "/linkerconfig/ld.config.txt" ]; then
|
||||||
|
ARGS="$ARGS -b /linkerconfig/ld.config.txt:/linkerconfig/ld.config.txt"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ -f /property_contexts ]; then
|
if [ -f /property_contexts ]; then
|
||||||
# Used by getprop (see https://github.com/termux/termux-packages/issues/1076)
|
# Used by getprop (see https://github.com/termux/termux-packages/issues/1076)
|
||||||
# but does not exist on Android 8.
|
# but does not exist on Android 8.
|
||||||
|
|
Loading…
Reference in New Issue