Re: [PATCH] rpm-build: use pkg-config to detect wireshark presence

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 16, 2015 at 02:38:40PM +0100, Pavel Hrdina wrote:
> 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@xxxxxxxxxx>
> > 
> > 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.

You shouldn't need to check for glib2.0 yourself - if that dependancy is
declared in the wireshark.pc (as it should be), then pkg-config itself
will check that for you.

Moving the --with-ws-plugindir arg declaration into the virt-wireshark.m4
file is pretty straightforward - we do that in a number of cases already
so just checkout some more existing examples.

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 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]