]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Revert "rpm: disable sanlock when QEMU is disabled"
authorDaniel P. Berrangé <berrange@redhat.com>
Mon, 6 Oct 2025 09:29:17 +0000 (10:29 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Mon, 6 Oct 2025 16:28:46 +0000 (17:28 +0100)
This reverts commit fefde6175884ff65241ddb3afae2d903df37e20e.

The commit was mistaken, as sanlock is enabled for libxl too,
however, the install of test_libvirt_sanlock.aug was missing
when QEMU was disabled, causing the RPM build failure.

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

index f96fcc9d7bff086cf1954e4718c7b00345eb093b..aff2707705cae8930c3265fbc2047c7a96f05a5e 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:%{with_qemu}}
+    %define with_sanlock 0%{!?_without_sanlock:1}
 %endif
 %if 0%{?rhel}
     %ifarch %{arches_qemu_kvm}
-        %define with_sanlock 0%{!?_without_sanlock:%{with_qemu}}
+        %define with_sanlock 0%{!?_without_sanlock:1}
     %endif
 %endif