Skip to content

Commit d07c1f1

Browse files
committed
Prevent make check from rebuilding GNU binaries over uutils ones
1 parent 94f9224 commit d07c1f1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

util/build-gnu.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ fi
164164
# automake or config.status and undo our edits.
165165
touch Makefile.in Makefile
166166

167+
# Patch the Makefile PATH to point to uutils build dir instead of GNU src/
168+
sed -i "s/^[[:blank:]]*PATH=.*/ PATH='${UU_BUILD_DIR//\//\\/}\$(PATH_SEPARATOR)'\"\$\$PATH\" \\\/" Makefile
169+
# Prevent make check from rebuilding the GNU binaries over the uutils ones
170+
sed -i 's/^check-am: all-am/check-am:/' Makefile
171+
167172
grep -rl 'path_prepend_' tests/* | xargs -r "${SED}" -i 's| path_prepend_ ./src||'
168173
# path_prepend_ sets $abs_path_dir_: set it manually instead.
169174
grep -rl '\$abs_path_dir_' tests/*/*.sh | xargs -r "${SED}" -i "s|\$abs_path_dir_|${UU_BUILD_DIR//\//\\/}|g"

0 commit comments

Comments
 (0)