From fefde6175884ff65241ddb3afae2d903df37e20e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 2 Oct 2025 15:11:39 +0100 Subject: [PATCH] rpm: disable sanlock when QEMU is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Daniel P. Berrangé --- libvirt.spec.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index aff2707705..f96fcc9d7b 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: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 -- 2.47.3