]> The Tcpdump Group git mirrors - tcpdump/commitdiff
CI: Print dynamic dependencies early. [skip ci]
authorDenis Ovsienko <[email protected]>
Mon, 26 Jul 2021 14:33:17 +0000 (15:33 +0100)
committerDenis Ovsienko <[email protected]>
Wed, 29 Sep 2021 14:08:36 +0000 (15:08 +0100)
Call print_so_deps() just after "make install", so if dynamic linking
has failed for some reason, the failure to run tcpdump binary will not
prevent printing the details. Lose "tcpdump --version" because version
information is a part of "tcpdump -h" output.

-- Installing: /tmp/tcpdump_build_matrix.XXyKaiEo/bin/tcpdump
-- Set runtime path of "/tmp/tcpdump_build_matrix.XXyKaiEo/bin/tcpdump" to ""
-- Installing: /tmp/tcpdump_build_matrix.XXyKaiEo/share/man/man1/tcpdump.1
$ /tmp/tcpdump_build_matrix.XXyKaiEo/bin/tcpdump --version
ld.so.1: tcpdump: fatal: libpcap.so.1: open failed: No such file or directory

(cherry picked from commit b1dca9b165677e170a9ed65ae5087de8a122df0d)

build.sh

index d0c9a6941ab007df2b40daa8868c1505f2afbaa1..87701dd089d8e0c9983df58330733111903bc26e 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -60,10 +60,9 @@ case `uname -s` in
 esac
 run_after_echo make -s ${CFLAGS:+CFLAGS="$CFLAGS"}
 run_after_echo make install
-run_after_echo "$TCPDUMP_BIN" --version
+print_so_deps "$TCPDUMP_BIN"
 run_after_echo "$TCPDUMP_BIN" -h
 run_after_echo "$TCPDUMP_BIN" -D
-print_so_deps "$TCPDUMP_BIN"
 if [ "$CIRRUS_CI" = true ]; then
     run_after_echo sudo \
         ${LD_LIBRARY_PATH:+LD_LIBRARY_PATH="$LD_LIBRARY_PATH"} \