[PATCH V9 08/14] spec: Add numad dependency to qemu and lxc drivers

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

 



Both drivers use numad via virNumaGetAutoPlacementAdvice. Drop the numad
dependency from libvirt-daemon-common to avoid enforcing it all users of
the subpackage.

Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxx>
Reviewed-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
Reviewed-by: Andrea Bolognani <abologna@xxxxxxxxxx>
---
 libvirt.spec.in | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 5ce1099ff3..e1a5477711 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -462,9 +462,6 @@ Requires: dmidecode
 %endif
 # For service management
 Requires(post): /usr/bin/systemctl
-%if %{with_numad}
-Requires: numad
-%endif
 # libvirtd depends on 'messagebus' service
 Requires: dbus
 # For uid creation during pre
@@ -764,6 +761,9 @@ Requires: lzop
 Requires: xz
 Requires: systemd-container
 Requires: swtpm-tools
+    %if %{with_numad}
+Requires: numad
+    %endif
     %if (0%{?fedora} >= 36) || (0%{?rhel} >= 9)
 Recommends: passt
     %endif
@@ -784,6 +784,9 @@ Requires: libvirt-daemon-driver-network = %{version}-%{release}
 Requires: systemd-container
 # for modprobe of nbd driver
 Requires: module-init-tools
+    %if %{with_numad}
+Requires: numad
+    %endif
 
 %description daemon-driver-lxc
 The LXC driver plugin for the libvirtd daemon, providing
-- 
2.38.1





[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]

  Powered by Linux