diff options
Diffstat (limited to 'net-libs/nDPI/files/nDPI-3.4-configure-fail-libcap.patch')
-rw-r--r-- | net-libs/nDPI/files/nDPI-3.4-configure-fail-libcap.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net-libs/nDPI/files/nDPI-3.4-configure-fail-libcap.patch b/net-libs/nDPI/files/nDPI-3.4-configure-fail-libcap.patch new file mode 100644 index 000000000000..7ae5a04d4e8c --- /dev/null +++ b/net-libs/nDPI/files/nDPI-3.4-configure-fail-libcap.patch @@ -0,0 +1,19 @@ +Ensure that we fail if libpcap can't be detected, rather than exiting with a success return code. +--- a/configure.seed ++++ b/configure.seed +@@ -126,12 +126,9 @@ case "$host" in + AC_CHECK_LIB([dl], [dlopen, dlsym], [DL_LIB="-ldl"],[AC_CHECK_LIB([c], [dlopen, dlsym], [DL_LIB="-lc"],[AC_MSG_ERROR([unable to find the dlopen(), dlsym() functions]) ]) ]) + else + AC_CHECK_LIB([pcap], [pcap_open_live], [PCAP_LIB="-lpcap"]) +- if test $ac_cv_lib_pcap_pcap_open_live = "no"; then : +- echo "" +- echo "ERROR: Missing libpcap(-dev) library required to compile the example application" +- echo "ERROR: Please install it and try again" +- exit +- fi ++ if test $ac_cv_lib_pcap_pcap_open_live = "no"; then : ++ AC_MSG_ERROR([Cannot find libpcap which is required to compile the example application]) ++ fi + fi + ;; + esac |