diff options
author | Denis Ovsienko <denis@ovsienko.info> | 2021-07-30 16:20:34 +0100 |
---|---|---|
committer | Denis Ovsienko <denis@ovsienko.info> | 2021-07-30 16:23:42 +0100 |
commit | 74ab2face01e4ee9966f45ee87a80174b098cdd3 (patch) | |
tree | 76468a892824dab1867d59b897750c759789319b | |
parent | 7880ad999f1a3d6c3aca4bd31ce90755c924f947 (diff) | |
download | tcpdump-74ab2face01e4ee9966f45ee87a80174b098cdd3.tar.gz |
CI: Explain useful side effects of "-D" and "-J". [skip ci]
-rwxr-xr-x | build.sh | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |