From bc4911aab0a25e1c62af456ef268508decbfa8e6 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 29 Oct 2013 17:55:08 +0100 Subject: [PATCH] Fix building with glusterfs VFS module on RHEL. related: #1020329 --- samba.spec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/samba.spec b/samba.spec index 4584f8d..e05ead4 100644 --- a/samba.spec +++ b/samba.spec @@ -30,6 +30,13 @@ %global with_profiling 1 %global with_vfs_glusterfs 1 +%if 0%{?rhel} +%global with_vfs_glusterfs 0 +# Only enable on x86_64 +%ifarch x86_64 +%global with_vfs_glusterfs 1 +%endif +%endif %global with_mitkrb5 1 %global with_dc 0 @@ -534,6 +541,9 @@ LDFLAGS="-Wl,-z,relro,-z,now" \ %if ! %with_dc --without-ad-dc \ %endif +%if ! %with_vfs_glusterfs + --disable-glusterfs \ +%endif %if %with_clustering_support --with-cluster-support \ --enable-old-ctdb \