summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndriy Gapon <avg@FreeBSD.org>2025-07-03 18:43:07 +0300
committerAndriy Gapon <avg@FreeBSD.org>2025-07-03 18:51:58 +0300
commit72eb9c02573a4921df8151b3a7edb22904480310 (patch)
tree60d6de50d7a941841c2c53eac72f1e4239297671
parentnet/py-haproxy-cli: Update 0.6.1 => 0.7.2 (diff)
check_have_symbols.sh: remove pipefail shell option
There is only one pipeline, with two commands, in the script and the receiving awk script is carefully written to produce a correct exit status for any situation. For that reason pipefail was already redundant. More than that, pipefail was actually harmful because the awk script would terminate early upon detecting success. Because of that, readelf could get SIGPIPE and terminate with non-zero status. "Thanks" to pipefail the whole pipeline would have non-zero exit status well. The issue manifested itself as sporadic failures of the script during bulk poudriere builds. Discussed with: bapt
-rw-r--r--Mk/Scripts/check_have_symbols.sh1
1 files changed, 0 insertions, 1 deletions
diff --git a/Mk/Scripts/check_have_symbols.sh b/Mk/Scripts/check_have_symbols.sh
index ee3095dabf74..652c975109dd 100644
--- a/Mk/Scripts/check_have_symbols.sh
+++ b/Mk/Scripts/check_have_symbols.sh
@@ -1,7 +1,6 @@
#!/bin/sh
set -eu
-set -o pipefail
# the 3 implementations of readelf we can use have different output, but they all have a similarity
# for the .gnu.version_d section they all have the symbol version in last element of their output