diff --git a/.github/workflows/CICD.yml b/.github/workflows/CICD.yml index de8fa5998..be7673e95 100644 --- a/.github/workflows/CICD.yml +++ b/.github/workflows/CICD.yml @@ -387,6 +387,13 @@ jobs: test -h /tmp/usr/local/bin/sha512sum test -h /tmp/usr/local/bin/shake128sum test -h /tmp/usr/local/bin/shake256sum + - name: "`make UTILS=XXX`" + shell: bash + run: | + set -x + # Regression-test for https://github.com/uutils/coreutils/issues/8701 + make UTILS="rm chmod chown chgrp mv du" + build_rust_stable: name: Build/stable needs: [ min_version, deps ] diff --git a/GNUmakefile b/GNUmakefile index 8e3ae05ca..83a169906 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -219,12 +219,15 @@ ifneq ($(OS),Windows_NT) PROGS := $(PROGS) $(UNIX_PROGS) # Build the selinux command even if not on the system PROGS := $(PROGS) $(SELINUX_PROGS) -# Always use external libstdbuf when building with make (Unix only) - CARGOFLAGS += --features feat_external_libstdbuf endif UTILS ?= $(PROGS) +ifneq ($(findstring stdbuf,$(UTILS)),) + # Use external libstdbuf per default. It is more robust than embedding libstdbuf. + CARGOFLAGS += --features feat_external_libstdbuf +endif + # Programs with usable tests TEST_PROGS := \ base32 \