Skip to content

Commit b8de224

Browse files
authored
Merge pull request #10505 from Ecordonnier/eco/build-gnu-timeout
build-gnu.sh: remove workaround for timeout/yes
2 parents 9cc9ca8 + d6c793c commit b8de224

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

util/build-gnu.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ command -v gsed && sed(){ gsed "$@";}
1515
SED=$(command -v gsed||command -v sed) # for find...exec...
1616

1717
SYSTEM_TIMEOUT=$(command -v timeout)
18-
SYSTEM_YES=$(command -v yes)
1918

2019
ME="${0}"
2120
ME_dir="$(dirname -- "$(readlink -fm -- "${ME}")")"
@@ -187,13 +186,6 @@ sed -i "s|cannot create regular file 'no-such/': Not a directory|'no-such/' is n
187186
# Our message is better
188187
sed -i "s|warning: unrecognized escape|warning: incomplete hex escape|" tests/stat/stat-printf.pl
189188

190-
sed -i 's|timeout |'"${SYSTEM_TIMEOUT}"' |' tests/tail/follow-stdin.sh
191-
192-
# trap_sigpipe_or_skip_ fails with uutils tools because of a bug in
193-
# timeout/yes (https://github.com/uutils/coreutils/issues/7252), so we use
194-
# system's yes/timeout to make sure the tests run (instead of being skipped).
195-
sed -i 's|\(trap .* \)timeout\( .* \)yes|'"\1${SYSTEM_TIMEOUT}\2${SYSTEM_YES}"'|' init.cfg
196-
197189
# Remove dup of /usr/bin/ and /usr/local/bin/ when executed several times
198190
grep -rlE '/usr/bin/\s?/usr/bin' init.cfg tests/* | xargs -r "${SED}" -Ei 's|/usr/bin/\s?/usr/bin/|/usr/bin/|g'
199191
grep -rlE '/usr/local/bin/\s?/usr/local/bin' init.cfg tests/* | xargs -r "${SED}" -Ei 's|/usr/local/bin/\s?/usr/local/bin/|/usr/local/bin/|g'

0 commit comments

Comments
 (0)