]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
rpm: disable glusterfs on RHEL-9
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 14 May 2021 11:56:23 +0000 (12:56 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Tue, 25 May 2021 11:07:36 +0000 (12:07 +0100)
Support for glusterfs with KVM is being dropped in RHEL-9 in the
virtualization stack.

Reviewed-by: Neal Gompa <ngompa13@gmail.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
libvirt.spec.in

index 8ac324be0a99c65a211acc0ae3bcf3dd0de7e44e..cdca7d8db642ab1c9bed3a080418b35f11ce4043 100644 (file)
 %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 has been dropped in RHEL-9, and before that
+    # was 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