Skip to content

Commit 3282571

Browse files
authored
Modify build script to exclude coreutils.sh
Exclude coreutils.sh from the search and replace for abs_top_builddir in Perl tests because it causes the coreutils header file to be skipped
1 parent 8e59663 commit 3282571

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/build-gnu.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ grep -rl 'path_prepend_' tests/* | xargs -r "${SED}" -i 's| path_prepend_ ./src|
164164
grep -rl '\$abs_path_dir_' tests/*/*.sh | xargs -r "${SED}" -i "s|\$abs_path_dir_|${UU_BUILD_DIR//\//\\/}|g"
165165
# Some tests use $abs_top_builddir/src for shebangs: point them to the uutils build dir.
166166
grep -rl '\$abs_top_builddir/src' tests/*/*.sh tests/*/*.pl | xargs -r "${SED}" -i "s|\$abs_top_builddir/src|${UU_BUILD_DIR//\//\\/}|g"
167-
grep -rl '\$ENV{abs_top_builddir}/src' tests/*/*.pl | xargs -r "${SED}" -i "s|\$ENV{abs_top_builddir}/src|${UU_BUILD_DIR//\//\\/}|g"
167+
grep -rl '\$ENV{abs_top_builddir}/src' tests/*/*.pl | grep -v coreutils.sh | xargs -r "${SED}" -i "s|\$ENV{abs_top_builddir}/src|${UU_BUILD_DIR//\//\\/}|g"
168168

169169
# We can't build runcon and chcon without libselinux. But GNU no longer builds dummies of them. So consider they are SELinux specific.
170170
sed -i 's/^print_ver_.*/require_selinux_/' tests/runcon/runcon-compute.sh

0 commit comments

Comments
 (0)