[Libvir] BuildRequires check

Jim Meyering jim at meyering.net
Wed Oct 17 10:07:56 UTC 2007


Hi,

I tried to configure libvirt from cvs on a just-built rawhide system
and it failed like this, since I hadn't installed the "check" package,
which defines PKG_CHECK_EXISTS:

  checking for init script flavor... redhat
  checking for iptables... /sbin/iptables
  ./configure: line 12187: syntax error near unexpected token `libxml-2.0,LIBXML_FOUND=yes'
  ./configure: line 12187: `    PKG_CHECK_EXISTS(libxml-2.0,LIBXML_FOUND=yes)'

Here's a fix:

2007-10-17  Jim Meyering  <meyering at redhat.com>

	* libvirt.spec.in (BuildRequires): Add "check".

Index: libvirt.spec.in
===================================================================
RCS file: /data/cvs/libvirt/libvirt.spec.in,v
retrieving revision 1.65
diff -u -p -r1.65 libvirt.spec.in
--- libvirt.spec.in	12 Oct 2007 19:54:15 -0000	1.65
+++ libvirt.spec.in	17 Oct 2007 10:03:22 -0000
@@ -16,6 +16,7 @@ Requires: ncurses
 Requires: dnsmasq
 Requires: bridge-utils
 Requires: iptables
+BuildRequires: check
 BuildRequires: xen-devel
 BuildRequires: libxml2-devel
 BuildRequires: readline-devel




More information about the libvir-list mailing list