]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
m4: Put wireshark plugin into epan/ directory
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 8 Feb 2019 09:47:42 +0000 (10:47 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Feb 2019 08:22:59 +0000 (09:22 +0100)
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>
libvirt.spec.in
m4/virt-wireshark.m4

index c0e538d92d4ca16ad8657a203399690c8ac61c41..13f41bb4a5b44777ca2dd90a2099af7c44e4ac73 100644 (file)
     %define with_wireshark 0%{!?_without_wireshark:1}
 %endif
 %if 0%{?fedora} || 0%{?rhel} > 7
-    %define wireshark_plugindir %(pkg-config --variable plugindir wireshark)
+    %define wireshark_plugindir %(pkg-config --variable plugindir wireshark)/epan
 %else
-    %define wireshark_plugindir %{_libdir}/wireshark/plugins
+    %define wireshark_plugindir %{_libdir}/wireshark/plugins/epan
 %endif
 
 # Enable libssh transport for new enough distros
index 1283a0f403bbf70a2ea1edd1f77aeaa074e86472..1cbe1312eafed0516bcfb4f47de828d83c4ecb5a 100644 (file)
@@ -50,6 +50,12 @@ AC_DEFUN([LIBVIRT_CHECK_WIRESHARK],[
         dnl time
         ws_plugindir='${exec_prefix}'"${ws_plugindir#$ws_exec_prefix}"
       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
       AC_MSG_ERROR([ws-plugindir must be used only with valid path])
     else