@@ -22,8 +22,8 @@ REPO_main_dir="$(dirname -- "${ME_dir}")"
2222
2323
2424: ${PROFILE:= debug} # default profile
25- export PROFILE
26- CARGO_FEATURE_FLAGS= " "
25+ export PROFILE # tell to make
26+ unset CARGOFLAGS
2727
2828# ## * config (from environment with fallback defaults); note: GNU is expected to be a sibling repo directory
2929
@@ -63,15 +63,15 @@ echo "UU_BUILD_DIR='${UU_BUILD_DIR}'"
6363cd " ${path_UUTILS} " && echo " [ pwd:'${PWD} ' ]"
6464
6565export SELINUX_ENABLED # Run this script with=1 for testing SELinux
66- [ " ${SELINUX_ENABLED} " = 1 ] && CARGO_FEATURE_FLAGS =" ${CARGO_FEATURE_FLAGS } selinux"
66+ [ " ${SELINUX_ENABLED} " = 1 ] && CARGOFLAGS =" ${CARGOFLAGS } selinux"
6767
6868# Trim leading whitespace from feature flags
69- CARGO_FEATURE_FLAGS =" $( echo " ${CARGO_FEATURE_FLAGS } " | sed -e ' s/^[[:space:]]*//' ) "
69+ CARGOFLAGS =" $( echo " ${CARGOFLAGS } " | sed -e ' s/^[[:space:]]*//' ) "
7070
7171# If we have feature flags, format them correctly for cargo
72- if [ ! -z " ${CARGO_FEATURE_FLAGS } " ]; then
73- CARGO_FEATURE_FLAGS =" --features ${CARGO_FEATURE_FLAGS } "
74- echo " Building with cargo flags: ${CARGO_FEATURE_FLAGS } "
72+ if [ ! -z " ${CARGOFLAGS } " ]; then
73+ CARGOFLAGS =" --features ${CARGOFLAGS } "
74+ echo " Building with cargo flags: ${CARGOFLAGS } "
7575fi
7676
7777# Set up quilt for patch management
8787fi
8888cd -
8989
90+ export CARGOFLAGS # tell to make
9091# bug: seq with MULTICALL=y breaks env-signal-handler.sh
91- " ${MAKE} " UTILS=" install seq" PROFILE= " ${PROFILE} " CARGOFLAGS= " ${CARGO_FEATURE_FLAGS} "
92+ " ${MAKE} " UTILS=" install seq"
9293ln -vf " ${UU_BUILD_DIR} /install" " ${UU_BUILD_DIR} /ginstall" # The GNU tests use renamed install to ginstall
9394if [ " ${SELINUX_ENABLED} " = 1 ]; then
9495 # Build few utils for SELinux for faster build. MULTICALL=y fails...
95- " ${MAKE} " UTILS=" cat chcon cp cut echo env groups id ln ls mkdir mkfifo mknod mktemp mv printf rm rmdir runcon stat test touch tr true uname wc whoami" PROFILE= " ${PROFILE} " CARGOFLAGS= " ${CARGO_FEATURE_FLAGS} "
96+ " ${MAKE} " UTILS=" cat chcon cp cut echo env groups id ln ls mkdir mkfifo mknod mktemp mv printf rm rmdir runcon stat test touch tr true uname wc whoami"
9697else
9798 # Use MULTICALL=y for faster build
98- " ${MAKE} " MULTICALL=y SKIP_UTILS=" install more seq" PROFILE= " ${PROFILE} " CARGOFLAGS= " ${CARGO_FEATURE_FLAGS} "
99+ " ${MAKE} " MULTICALL=y SKIP_UTILS=" install more seq"
99100 for binary in $( " ${UU_BUILD_DIR} " /coreutils --list)
100101 do ln -vf " ${UU_BUILD_DIR} /coreutils" " ${UU_BUILD_DIR} /${binary} "
101102 done
@@ -109,9 +110,7 @@ cd "${path_GNU}" && echo "[ pwd:'${PWD}' ]"
109110# Note that some test (e.g. runcon/runcon-compute.sh) incorrectly passes by this
110111for binary in $( ./build-aux/gen-lists-of-programs.sh --list-progs) ; do
111112 bin_path=" ${UU_BUILD_DIR} /${binary} "
112- test -f " ${bin_path} " || {
113- cp -v /usr/bin/false " ${bin_path} "
114- }
113+ test -f " ${bin_path} " || cp -v /usr/bin/false " ${bin_path} "
115114done
116115
117116# Always update the PATH to test the uutils coreutils instead of the GNU coreutils
0 commit comments