mirror of https://gitee.com/openkylin/libvirt.git
m4: Put wireshark plugin into epan/ directory
Since wirshark-2.5.0 toplevel plugins are no longer loaded. Only plugins from epan/, wiretap/ or codecs/ subdirs are. Update the plugin dir we generate. This is safe to do even for older wiresharks, since they load plugins from there too. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
4c22fd717b
commit
dc93997a83
|
@ -168,9 +168,9 @@
|
||||||
%define with_wireshark 0%{!?_without_wireshark:1}
|
%define with_wireshark 0%{!?_without_wireshark:1}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
%define wireshark_plugindir %(pkg-config --variable plugindir wireshark)
|
%define wireshark_plugindir %(pkg-config --variable plugindir wireshark)/epan
|
||||||
%else
|
%else
|
||||||
%define wireshark_plugindir %{_libdir}/wireshark/plugins
|
%define wireshark_plugindir %{_libdir}/wireshark/plugins/epan
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Enable libssh transport for new enough distros
|
# Enable libssh transport for new enough distros
|
||||||
|
|
|
@ -50,6 +50,12 @@ AC_DEFUN([LIBVIRT_CHECK_WIRESHARK],[
|
||||||
dnl time
|
dnl time
|
||||||
ws_plugindir='${exec_prefix}'"${ws_plugindir#$ws_exec_prefix}"
|
ws_plugindir='${exec_prefix}'"${ws_plugindir#$ws_exec_prefix}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
dnl Since wireshark 2.5.0 plugins can't live in top level
|
||||||
|
dnl plugindir but have to be under one of ["epan",
|
||||||
|
dnl "wiretap", "codecs"] subdir. The first one looks okay.
|
||||||
|
ws_plugindir="$ws_plugindir/epan"
|
||||||
|
|
||||||
elif test "x$with_ws_plugindir" = "xno" || test "x$with_ws_plugindir" = "xyes"; then
|
elif test "x$with_ws_plugindir" = "xno" || test "x$with_ws_plugindir" = "xyes"; then
|
||||||
AC_MSG_ERROR([ws-plugindir must be used only with valid path])
|
AC_MSG_ERROR([ws-plugindir must be used only with valid path])
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue