From: Denis Ovsienko Date: Mon, 26 Jul 2021 14:33:17 +0000 (+0100) Subject: CI: Print dynamic dependencies early. [skip ci] X-Git-Tag: tcpdump-4.99.2~233 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/d884c90309b4c405c8d81e3ab70676773817d9c7 CI: Print dynamic dependencies early. [skip ci] 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) --- diff --git a/build.sh b/build.sh index d0c9a694..87701dd0 100755 --- 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"} \