Skip to content

Commit

Permalink
Enable building qemu driver to satisfy dependencies
Browse files Browse the repository at this point in the history
Some packages (directly or indirectly) depend on libvirt-driver-qemu,
even if they can work without it (possibly with limited functionality).
Make such package still installable.
  • Loading branch information
marmarek committed Oct 22, 2024
1 parent 9eb297e commit d44aba9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions libvirt.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -285,11 +285,16 @@
%define with_hyperv 0
%define with_xenapi 0
%define with_parallels 0
%define with_qemu 0
%define with_lxc 0
%define with_uml 0
%define with_hal 0

# Enabled only to keep some package dependencies happy (like make libguestfs
# installable)
%define with_qemu 1
%define with_qemu_kvm 1
%define with_qemu_tcg 1

# This isn't useful for Qubes OS (with xen provided network setup scripts
# inside netvm), but perhaps would be enabled in the future for other VMM
%define with_network 0
Expand Down Expand Up @@ -364,8 +369,9 @@ Requires: libvirt-daemon-driver-libxl = %{epoch}:%{version}-%{release}
Requires: libvirt-daemon-driver-lxc = %{epoch}:%{version}-%{release}
%endif
%if %{with_qemu}
Requires: libvirt-daemon-driver-qemu = %{epoch}:%{version}-%{release}
Requires: libvirt-client-qemu = %{epoch}:%{version}-%{release}
# Not on Qubes:
#Requires: libvirt-daemon-driver-qemu = %{epoch}:%{version}-%{release}
#Requires: libvirt-client-qemu = %{epoch}:%{version}-%{release}
%endif
# We had UML driver, but we've removed it.
Obsoletes: libvirt-daemon-driver-uml <= 5.0.0
Expand Down Expand Up @@ -741,7 +747,7 @@ Requires: util-linux
Requires: scrub
%if %{with_qemu}
# From QEMU RPMs
Requires: /usr/bin/qemu-img
# Not on Qubes: Requires: /usr/bin/qemu-img
%endif
%if !%{with_storage_rbd}
Obsoletes: libvirt-daemon-driver-storage-rbd < 5.2.0
Expand Down

0 comments on commit d44aba9

Please sign in to comment.