Merge pull request #8782 from Ecordonnier/eco/makefile-fix

2 makefile fixes
This commit is contained in:
Sylvestre Ledru
2025-10-16 05:16:55 -04:00
committed by GitHub
2 changed files with 10 additions and 5 deletions
+5
View File
@@ -379,6 +379,11 @@ jobs:
set -x
# Regression-test for https://github.com/uutils/coreutils/issues/8701
make UTILS="rm chmod chown chgrp mv du"
# Verifies that
# 1. there is no "error: none of the selected packages contains this
# feature: feat_external_libstdbuf"
# 2. the makefile doesn't try to install libstdbuf even though stdbuf is skipped
DESTDIR=/tmp/ make SKIP_UTILS="stdbuf" install
build_rust_stable:
name: Build/stable
+5 -5
View File
@@ -228,7 +228,7 @@ ifneq ($(OS),Windows_NT)
PROGS := $(PROGS) $(SELINUX_PROGS)
endif
UTILS ?= $(PROGS)
UTILS ?= $(filter-out $(SKIP_UTILS),$(PROGS))
ifneq ($(findstring stdbuf,$(UTILS)),)
# Use external libstdbuf per default. It is more robust than embedding libstdbuf.
@@ -306,7 +306,7 @@ TEST_PROGS := \
who
TESTS := \
$(sort $(filter $(UTILS),$(filter-out $(SKIP_UTILS),$(TEST_PROGS))))
$(sort $(filter $(UTILS),$(TEST_PROGS)))
TEST_NO_FAIL_FAST :=
TEST_SPEC_FEATURE :=
@@ -326,7 +326,7 @@ endef
# Output names
EXES := \
$(sort $(filter $(UTILS),$(filter-out $(SKIP_UTILS),$(PROGS))))
$(sort $(UTILS))
INSTALLEES := ${EXES}
ifeq (${MULTICALL}, y)
@@ -352,7 +352,7 @@ build-coreutils:
build: build-coreutils build-pkgs locales
$(foreach test,$(filter-out $(SKIP_UTILS),$(PROGS)),$(eval $(call TEST_BUSYBOX,$(test))))
$(foreach test,$(UTILS),$(eval $(call TEST_BUSYBOX,$(test))))
test:
${CARGO} test ${CARGOFLAGS} --features "$(TESTS) $(TEST_SPEC_FEATURE)" --no-default-features $(TEST_NO_FAIL_FAST)
@@ -482,7 +482,7 @@ endif
install: build install-manpages install-completions install-locales
mkdir -p $(INSTALLDIR_BIN)
ifneq ($(OS),Windows_NT)
ifneq (,$(and $(findstring stdbuf,$(UTILS)),$(findstring feat_external_libstdbuf,$(CARGOFLAGS))))
mkdir -p $(DESTDIR)$(LIBSTDBUF_DIR)
$(INSTALL) -m 755 $(BUILDDIR)/deps/libstdbuf* $(DESTDIR)$(LIBSTDBUF_DIR)/
endif