[PATCH] rpm: disable glusterfs on RHEL-9

Daniel P. Berrangé berrange at redhat.com
Fri May 14 11:58:09 UTC 2021


Support for glusterfs with KVM is being dropped in RHEL-9 in the
virtualization stack.

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

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 8ac324be0a..c52f607bd1 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -65,10 +65,15 @@
 %endif
 
 %define with_storage_gluster 0%{!?_without_storage_gluster:1}
-%ifnarch %{arches_qemu_kvm}
-    # gluster is only built where qemu driver is enabled on RHEL
-    %if 0%{?rhel}
+%if 0%{?rhel}
+    # Glusterfs dropped in RHEL-9, and before that only
+    # enabled on arches where KVM exists
+    %if 0%{?rhel} > 8
         %define with_storage_gluster 0
+    %else
+        %ifnarch %{arches_qemu_kvm}
+            %define with_storage_gluster 0
+	%endif
     %endif
 %endif
 
-- 
2.31.1




More information about the libvir-list mailing list