build-gnu.sh: Enable misc/coreutils.sh (#9572)

* build-gnu.sh: Enable misc/coreutils.sh

* why-error.md: Remove misc/coreutils.sh

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
This commit is contained in:
oech3
2025-12-07 15:24:31 +01:00
committed by GitHub
co-authored by Daniel Hofstetter
parent 45c974f992
commit 39a8c87fd0
2 changed files with 6 additions and 3 deletions
+6
View File
@@ -135,6 +135,7 @@ else
./bootstrap --skip-po
# Use CFLAGS for best build time since we discard GNU coreutils
CFLAGS="${CFLAGS} -pipe -O0 -s" ./configure --quiet --disable-gcc-warnings --disable-nls --disable-dependency-tracking --disable-bold-man-page-references \
--enable-single-binary=symlinks \
"$([ "${SELINUX_ENABLED}" = 1 ] && echo --with-selinux || echo --without-selinux)"
#Add timeout to to protect against hangs
"${SED}" -i 's|^"\$@|'"${SYSTEM_TIMEOUT}"' 600 "\$@|' build-aux/test-driver
@@ -169,6 +170,11 @@ grep -rl 'path_prepend_' tests/* | xargs -r "${SED}" -i 's| path_prepend_ ./src|
# path_prepend_ sets $abs_path_dir_: set it manually instead.
grep -rl '\$abs_path_dir_' tests/*/*.sh | xargs -r "${SED}" -i "s|\$abs_path_dir_|${UU_BUILD_DIR//\//\\/}|g"
# We use coreutils yes
"${SED}" -i "s|--coreutils-prog=||g" tests/misc/coreutils.sh
# Different message
"${SED}" -i "s|coreutils: unknown program 'blah'|blah: function/utility not found|" tests/misc/coreutils.sh
# Remove hfs dependency (should be merged to upstream)
"${SED}" -i -e "s|hfsplus|ext4 -O casefold|" -e "s|cd mnt|rm -d mnt/lost+found;chattr +F mnt;cd mnt|" tests/mv/hardlink-case.sh
-3
View File
@@ -44,9 +44,6 @@
= The Swedish locale with blank thousands separator is unavailable. =
* tests/misc/sort-h-thousands-sep.sh
= multicall binary is disabled =
* tests/misc/coreutils.sh
= not running on GNU/Hurd =
* tests/id/gnu-zero-uids.sh