Prevent make check from rebuilding GNU binaries over uutils ones

This commit is contained in:
Christopher Dryden
2026-02-21 19:40:08 +01:00
committed by Sylvestre Ledru
parent 23eb2ada8c
commit de5c827d99
+5
View File
@@ -164,6 +164,11 @@ fi
# automake or config.status and undo our edits.
touch Makefile.in Makefile
# Patch the Makefile PATH to point to uutils build dir instead of GNU src/
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
# Prevent make check from rebuilding the GNU binaries over the uutils ones
sed -i 's/^check-am: all-am/check-am:/' Makefile
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"