]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpm: disable sanlock when QEMU is disabled
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 2 Oct 2025 14:11:39 +0000 (15:11 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 3 Oct 2025 11:19:02 +0000 (12:19 +0100)
The meson.build rules skip sanlock when QEMU is disabled, so the RPM
must not try to create the -sanlock sub-RPM.

Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index aff2707705cae8930c3265fbc2047c7a96f05a5e..f96fcc9d7bff086cf1954e4718c7b00345eb093b 100644 (file)
 # Enable sanlock library for lock management with QEMU
 # Sanlock is available only on arches where kvm is available for RHEL
 %if 0%{?fedora}
-    %define with_sanlock 0%{!?_without_sanlock:1}
+    %define with_sanlock 0%{!?_without_sanlock:%{with_qemu}}
 %endif
 %if 0%{?rhel}
     %ifarch %{arches_qemu_kvm}
-        %define with_sanlock 0%{!?_without_sanlock:1}
+        %define with_sanlock 0%{!?_without_sanlock:%{with_qemu}}
     %endif
 %endif