summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorAnand Avati <avati@redhat.com>2013-04-03 13:38:00 -0700
committerAnand Avati <avati@redhat.com>2013-04-03 15:23:54 -0700
commit125e0cc4eb7042f5b8549c0b77140528c0fc1151 (patch)
tree83fd242567e39bbed09bb4e0458d856d29136392 /glusterfs.spec.in
parente80a04f7850144449a0d2fc4f9d40d0227f170cc (diff)
build: enable fusermount by default
The fusermount available in gluster is customized to ensure mounting with SELinux happens properly, i.e - to have a separate thread for fuse_thread_proc which can process getxattr requests and in parallel perform sys_mount() in a different thread, thereby avoiding a deadlock. However our build and packaging defaults to not including our fusermount. This patch reverses the defaults. Change-Id: I793af4c2f56aeac46efae3db30e7c64ee7c18850 BUG: 811217 Signed-off-by: Anand Avati <avati@redhat.com> Reviewed-on: http://review.gluster.org/4773 Reviewed-by: Jeff Darcy <jdarcy@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index a522a0060..fe3728c2d 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -14,9 +14,9 @@
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without epoll
%{?_without_epoll:%global _without_epoll --disable-epoll}
-# if you wish to compile an rpm with fusermount...
-# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --with fusermount
-%{?_with_fusermount:%global _with_fusermount --enable-fusermount}
+# if you wish to compile an rpm without fusermount...
+# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without fusermount
+%{?_without_fusermount:%global _without_fusermount --disable-fusermount}
# if you wish to compile an rpm without geo-replication support, compile like this...
# rpmbuild -ta @PACKAGE_NAME@-@PACKAGE_VERSION@.tar.gz --without georeplication
@@ -530,7 +530,7 @@ cd ../ufo
%build
./autogen.sh
-%configure %{?_without_rdma} %{?_without_epoll} %{?_with_fusermount} %{?_without_georeplication} %{?_without_ocf}
+%configure %{?_without_rdma} %{?_without_epoll} %{?_without_fusermount} %{?_without_georeplication} %{?_without_ocf}
# Remove rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
@@ -827,7 +827,7 @@ fi
%if 0%{_for_fedora_koji_builds}
/sbin/umount.glusterfs
%endif
-%if 0%{?_with_fusermount:1}
+%if 0%{!?_without_fusermount:1}
%{_bindir}/fusermount-glusterfs
%endif