summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Ovsienko <denis@ovsienko.info>2021-07-30 16:20:34 +0100
committerDenis Ovsienko <denis@ovsienko.info>2021-07-30 16:23:42 +0100
commit74ab2face01e4ee9966f45ee87a80174b098cdd3 (patch)
tree76468a892824dab1867d59b897750c759789319b
parent7880ad999f1a3d6c3aca4bd31ce90755c924f947 (diff)
downloadtcpdump-74ab2face01e4ee9966f45ee87a80174b098cdd3.tar.gz
CI: Explain useful side effects of "-D" and "-J". [skip ci]
-rwxr-xr-xbuild.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/build.sh b/build.sh
index 40ffbace..3588f81c 100755
--- a/build.sh
+++ b/build.sh
@@ -89,8 +89,15 @@ fi
run_after_echo make install
print_so_deps "$TCPDUMP_BIN"
run_after_echo "$TCPDUMP_BIN" -h
+# The "-D" flag depends on HAVE_PCAP_FINDALLDEVS and it would not be difficult
+# to run the command below only if the macro is defined. That said, it seems
+# more useful to run it anyway: every system that currently runs this script
+# has pcap_findalldevs(), thus if the macro isn't defined, it means something
+# went wrong in the build process (as was observed with GCC, CMake and the
+# system libpcap on Solaris 11).
run_after_echo "$TCPDUMP_BIN" -D
if [ "$CIRRUS_CI" = true ]; then
+ # Likewise for the "-J" flag and HAVE_PCAP_SET_TSTAMP_TYPE.
run_after_echo sudo \
${LD_LIBRARY_PATH:+LD_LIBRARY_PATH="$LD_LIBRARY_PATH"} \
"$TCPDUMP_BIN" -J