From: Jiri Denemark Date: Fri, 29 Nov 2019 13:58:01 +0000 (+0100) Subject: spec: Disable gluster on i686 on RHEL-8 X-Git-Tag: v5.10.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff1af696c1979d6d8fac4c4cc77e9430fd5c93fd;p=thirdparty%2Flibvirt.git spec: Disable gluster on i686 on RHEL-8 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 Reviewed-by: Fabiano FidĂȘncio --- diff --git a/libvirt.spec.in b/libvirt.spec.in index a6219da604..c7fac104d9 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -65,7 +65,15 @@ %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