[PATCH v2 1/2] Revert "rpm: disable sanlock when QEMU is disabled"

Daniel P. Berrangé via Devel posted 2 patches 3 weeks ago
[PATCH v2 1/2] Revert "rpm: disable sanlock when QEMU is disabled"
Posted by Daniel P. Berrangé via Devel 3 weeks ago
From: Daniel P. Berrangé <berrange@redhat.com>

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.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
---
 libvirt.spec.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index f96fcc9d7b..aff2707705 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -149,11 +149,11 @@
 # 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
 
-- 
2.50.1