Skip to content

Commit b483600

Browse files
DashCoreAutoGuixUdjinM6
authored andcommitted
Merge bitcoin#26851: ci: Remove unused busybox workaround
fadfae4 ci: Remove unused busybox workaround (MarcoFalke) fac424f ci: Create named symbol for BINS_SCRATCH_DIR (MarcoFalke) Pull request description: It can be re-added when it is needed again. But it may be more likely that the other workarounds can be removed as well, in a follow-up. ACKs for top commit: fanquake: ACK fadfae4 Tree-SHA512: 39984d02ddcba907a5b780fd9cb4dab7f1abbc32468968b4862d226de2e4f95c71708c7361db97347e1ac65196dc40d379e68f34bef37d42b5464d343e7466d8 Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> fix: apply missed changes from 26851 Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
1 parent da416ac commit b483600

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ci/test/04_install.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ if [[ $BITCOIN_CONFIG = *--with-sanitizers=*address* ]]; then # If ran with (ASa
3030
fi
3131

3232
export P_CI_DIR="$PWD"
33+
export BINS_SCRATCH_DIR="${BASE_SCRATCH_DIR}/bins/"
3334

3435
if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
3536
echo "Creating $DOCKER_NAME_TAG container to run in"
@@ -65,14 +66,16 @@ else
6566
fi
6667

6768
CI_EXEC () {
68-
$DOCKER_CI_CMD_PREFIX bash -c "export PATH=$BASE_SCRATCH_DIR/bins/:\$PATH && cd \"$P_CI_DIR\" && $*"
69+
$DOCKER_CI_CMD_PREFIX bash -c "export PATH=${BINS_SCRATCH_DIR}:\$PATH && cd \"$P_CI_DIR\" && $*"
6970
}
7071
CI_EXEC_ROOT () {
71-
$DOCKER_CI_CMD_PREFIX_ROOT bash -c "export PATH=$BASE_SCRATCH_DIR/bins/:\$PATH && cd \"$P_CI_DIR\" && $*"
72+
$DOCKER_CI_CMD_PREFIX_ROOT bash -c "export PATH=${BINS_SCRATCH_DIR}:\$PATH && cd \"$P_CI_DIR\" && $*"
7273
}
7374
export -f CI_EXEC
7475
export -f CI_EXEC_ROOT
7576

77+
CI_EXEC mkdir -p "${BINS_SCRATCH_DIR}"
78+
7679
if [ -n "$DPKG_ADD_ARCH" ]; then
7780
CI_EXEC_ROOT dpkg --add-architecture "$DPKG_ADD_ARCH"
7881
fi
@@ -127,12 +130,10 @@ fi
127130

128131
if [ "$USE_BUSY_BOX" = "true" ]; then
129132
echo "Setup to use BusyBox utils"
130-
CI_EXEC mkdir -p "${BASE_SCRATCH_DIR}/bins/"
131133
# tar excluded for now because it requires passing in the exact archive type in ./depends (fixed in later BusyBox version)
132-
# find excluded for now because it does not recognize the -delete option in ./depends (fixed in later BusyBox version)
133134
# ar excluded for now because it does not recognize the -q option in ./depends (unknown if fixed)
134135
# shellcheck disable=SC1010
135-
CI_EXEC for util in \$\(busybox --list \| grep -v "^ar$" \| grep -v "^tar$" \| grep -v "^find$"\)\; do ln -s \$\(command -v busybox\) "${BASE_SCRATCH_DIR}/bins/\$util"\; done
136+
CI_EXEC for util in \$\(busybox --list \| grep -v "^ar$" \| grep -v "^tar$" \)\; do ln -s \$\(command -v busybox\) "${BINS_SCRATCH_DIR}/\$util"\; done
136137
# Print BusyBox version
137138
CI_EXEC patch --help
138139
fi

0 commit comments

Comments
 (0)