]> The Tcpdump Group git mirrors - tcpslice/commitdiff
CI: Introduce TEST_RELEASETAR. [skip ci]
authorDenis Ovsienko <[email protected]>
Sat, 25 Feb 2023 17:28:36 +0000 (17:28 +0000)
committerDenis Ovsienko <[email protected]>
Sat, 25 Feb 2023 17:35:07 +0000 (17:35 +0000)
The default behaviour is the same as before, setting it to "no" works
around broken build matrix on AIX 7.1 and 7.2.

build.sh

index cd4049c2492f3fdee92119da92d0818d96194244..eb3046250eb67111f7b21c76c7debf4a5ac715b5 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -5,6 +5,9 @@
 : "${CC:=gcc}"
 : "${TCPSLICE_TAINTED:=no}"
 : "${MAKE_BIN:=make}"
+# At least one OS (AIX 7) where this software can build does not have at least
+# one command (mktemp) required for a successful run of "make releasetar".
+: "${TEST_RELEASETAR:=yes}"
 
 . ./build_common.sh
 # Install directory prefix
@@ -28,7 +31,7 @@ run_after_echo "$MAKE_BIN" -s ${CFLAGS:+CFLAGS="$CFLAGS"}
 print_so_deps tcpslice
 run_after_echo ./tcpslice -h
 run_after_echo "$MAKE_BIN" install
-run_after_echo "$MAKE_BIN" releasetar
+[ "$TEST_RELEASETAR" = yes ] && run_after_echo "$MAKE_BIN" releasetar
 handle_matrix_debug
 if [ "$DELETE_PREFIX" = yes ]; then
     run_after_echo rm -rf "$PREFIX"