[libvirt] [PATCH] spec: Remove qemu-img dependency from storage driver

Jiri Denemark jdenemar at redhat.com
Wed Dec 3 15:52:25 UTC 2014


Both qemu-img and its stripped down version qcow-create are searched for
dynamically with virFindFileInPath, functions using them report errors
when the required binary is not present, and we don't compile in a fixed
path detected by configure anymore. So I don't see a reason for keeping
the dependencies for our storage driver. Moreover, it's weired when the
dependencies (of the storage driver) change depending on wheter a
particular hypervisor driver (xen/qemu) is enabled or not.

Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
---
 libvirt.spec.in | 18 ------------------
 1 file changed, 18 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index bda28e7..dbeb62a 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -530,15 +530,6 @@ BuildRequires: PolicyKit-devel >= 0.6
 # For mount/umount in FS driver
 BuildRequires: util-linux
 %endif
-%if %{with_qemu}
-# From QEMU RPMs
-BuildRequires: /usr/bin/qemu-img
-%else
-    %if %{with_xen}
-# From Xen RPMs
-BuildRequires: /usr/sbin/qcow-create
-    %endif
-%endif
 %if %{with_storage_lvm}
 # For LVM drivers
 BuildRequires: lvm2
@@ -871,15 +862,6 @@ Requires: device-mapper
 # For Sheepdog support
 Requires: sheepdog
             %endif
-            %if %{with_qemu}
-# From QEMU RPMs
-Requires: /usr/bin/qemu-img
-            %else
-                %if %{with_xen}
-# From Xen RPMs
-Requires: /usr/sbin/qcow-create
-                %endif
-            %endif
 
 %description daemon-driver-storage
 The storage driver plugin for the libvirtd daemon, providing
-- 
2.2.0




More information about the libvir-list mailing list