]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
spec: Disable gluster on i686 on RHEL-8
authorJiri Denemark <jdenemar@redhat.com>
Fri, 29 Nov 2019 13:58:01 +0000 (14:58 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 29 Nov 2019 15:37:28 +0000 (16:37 +0100)
Gluster 6.0 is not built on i686 for RHEL-8, which prevents libvirt from
building. Let's just disable gluster there as all we need are client
libraries anyway.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Fabiano FidĂȘncio <fidencio@redhat.com>
libvirt.spec.in

index a6219da6046685f38431ae7fb0ea18ddc9eb10ba..c7fac104d9334ce8256a855d50c6f476f021a26a 100644 (file)
 %else
     %define with_storage_sheepdog 0
 %endif
+
 %define with_storage_gluster 0%{!?_without_storage_gluster:1}
+%ifnarch %{qemu_kvm_arches}
+    # gluster is only built where qemu driver is enabled on RHEL 8
+    %if 0%{?rhel} >= 8
+        %define with_storage_gluster 0
+    %endif
+%endif
+
 %define with_numactl          0%{!?_without_numactl:1}
 
 # F25+ has zfs-fuse