aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gvfs
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2010-11-22 01:25:52 +0800
committerkwm <kwm@FreeBSD.org>2010-11-22 01:25:52 +0800
commit630636bfe5a142dc13feede29672dde4fb0e2eca (patch)
treeb1ebccdd35d1ba8d05ada1e8854de90016b09d51 /devel/gvfs
parent3686955db6d8558db1213014f38155101902a123 (diff)
downloadfreebsd-ports-gnome-630636bfe5a142dc13feede29672dde4fb0e2eca.tar.gz
freebsd-ports-gnome-630636bfe5a142dc13feede29672dde4fb0e2eca.tar.zst
freebsd-ports-gnome-630636bfe5a142dc13feede29672dde4fb0e2eca.zip
Fix fuse support build failure.
PR: ports/152442 Submitted by: Oleg Ginzburg <olevole@olevole.ru>
Diffstat (limited to 'devel/gvfs')
-rw-r--r--devel/gvfs/Makefile5
-rw-r--r--devel/gvfs/files/patch-client_gvfsfusedaemon.c16
2 files changed, 15 insertions, 6 deletions
diff --git a/devel/gvfs/Makefile b/devel/gvfs/Makefile
index 69d47af14958..50423b59ed44 100644
--- a/devel/gvfs/Makefile
+++ b/devel/gvfs/Makefile
@@ -31,11 +31,10 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --disable-obexftp
-OPTIONS= SAMBA "Enable Samba" on \
+OPTIONS= FUSE "Enable fuse" off \
+ SAMBA "Enable Samba" on \
GPHOTO2 "Enable Gphoto 2 camera support" on \
CDDA "Enable CDDA" on
-# disabled beacuse it breaks the build: FUSE "Enable fuse" off \
-# -- mandree@ 2010-11-21
.include <bsd.port.pre.mk>
diff --git a/devel/gvfs/files/patch-client_gvfsfusedaemon.c b/devel/gvfs/files/patch-client_gvfsfusedaemon.c
index 3733aa7e3cd9..2ea9b3330625 100644
--- a/devel/gvfs/files/patch-client_gvfsfusedaemon.c
+++ b/devel/gvfs/files/patch-client_gvfsfusedaemon.c
@@ -1,6 +1,6 @@
---- client/gvfsfusedaemon.c.orig 2007-11-06 18:06:41.000000000 -0500
-+++ client/gvfsfusedaemon.c 2007-11-06 18:07:30.000000000 -0500
-@@ -28,7 +28,9 @@
+--- client/gvfsfusedaemon.c.orig 2010-11-12 16:42:49.000000000 +0100
++++ client/gvfsfusedaemon.c 2010-11-21 18:23:36.000000000 +0100
+@@ -26,7 +26,9 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
@@ -10,3 +10,13 @@
#include <sys/time.h>
#include <unistd.h>
#include <stdlib.h>
+@@ -2340,7 +2342,9 @@
+ subthread = g_thread_create ((GThreadFunc) subthread_main, NULL, FALSE, NULL);
+
+ /* Indicate O_TRUNC support for open() */
++#ifdef FUSE_CAP_ATOMIC_O_TRUNC
+ conn->want |= FUSE_CAP_ATOMIC_O_TRUNC;
++#endif
+
+ return NULL;
+ }