From c7f63bf667804b42221d8608b4c49e0dea19c5b2 Mon Sep 17 00:00:00 2001 From: 23xvx <120558411+23xvx@users.noreply.github.com> Date: Tue, 9 Apr 2024 17:30:42 +0800 Subject: [PATCH] Set DEBOOTSTRAP_DIR for termux --- plugins/envsetup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/envsetup b/plugins/envsetup index e2bf860..b1a65a7 100755 --- a/plugins/envsetup +++ b/plugins/envsetup @@ -288,7 +288,11 @@ do_build() { chroot_dir=$target_dir if [[ ! $DEBOOTSTRAP_DIR ]]; then - if [ "$BUILD_PLATFORM" != "termux" ]; then + if [ "$BUILD_PLATFORM" == "termux" ]; then + # use default debootstrap directory in termux + export DEBOOTSTRAP_DIR="$PREFIX/share/debootstrap" + else + # use custom debootstrap directory in linux export DEBOOTSTRAP_DIR="$ROOT_DIR/core/debootstrap-scripts" fi fi