[libvirt] [PATCH] rpm-build: use pkg-config to detect wireshark presence
Pavel Hrdina
phrdina at redhat.com
Mon Mar 16 13:38:40 UTC 2015
On Mon, Mar 16, 2015 at 12:46:04PM +0000, Daniel P. Berrange wrote:
> On Mon, Mar 16, 2015 at 01:41:15PM +0100, Pavel Hrdina wrote:
> > Wireshark supports pkg-config since 1.11.3. Right now we build
> > wireshark-dissectior tool as default trough rpm build only on
> > fedora >= 21 and there is newer wireshark that supports pkg-config.
> > If someone wants to build libvirt with wireshark-dissector against older
> > wireshark, they should specify the location by hand.
> >
> > This patch is mainly to fix wrong dependency on wireshark binary as it
> > doesn't make sense to require that binary file to just get version info
> > of that package in makefile.
> >
> > Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
>
> Be nice to go one step further and switch over to using LIBVIRT_CHECK_PKG
> and having the code in m4/virt-wireshark.m4. Just copy virt-fuse.m4 as a
> equivalently simple module
>
At first I thought that I'll be nice, but this is not that simple module.
Wireshark requires glib-2.0 and also there is an optional argument
--with-ws-plugindir. This is actually the only thing I tried to avoid, but
you're right that if I'm touching this code that it would be nice to make a
separate m4 module. I'll send a v2.
Thanks for review.
Pavel
>
> Regards,
> Daniel
> --
> |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :|
> |: http://libvirt.org -o- http://virt-manager.org :|
> |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
> |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|
More information about the libvir-list
mailing list