summaryrefslogtreecommitdiff
path: root/filesystems/glusterfs/patches
diff options
context:
space:
mode:
Diffstat (limited to 'filesystems/glusterfs/patches')
-rw-r--r--filesystems/glusterfs/patches/patch-aa6
-rw-r--r--filesystems/glusterfs/patches/patch-ab42
-rw-r--r--filesystems/glusterfs/patches/patch-ac32
-rw-r--r--filesystems/glusterfs/patches/patch-ae6
-rw-r--r--filesystems/glusterfs/patches/patch-af8
-rw-r--r--filesystems/glusterfs/patches/patch-ag20
-rw-r--r--filesystems/glusterfs/patches/patch-an10
-rw-r--r--filesystems/glusterfs/patches/patch-ao21
-rw-r--r--filesystems/glusterfs/patches/patch-ar8
-rw-r--r--filesystems/glusterfs/patches/patch-as6
-rw-r--r--filesystems/glusterfs/patches/patch-ax6
-rw-r--r--filesystems/glusterfs/patches/patch-ba10
-rw-r--r--filesystems/glusterfs/patches/patch-bb18
-rw-r--r--filesystems/glusterfs/patches/patch-bc20
-rw-r--r--filesystems/glusterfs/patches/patch-be25
-rw-r--r--filesystems/glusterfs/patches/patch-bf8
-rw-r--r--filesystems/glusterfs/patches/patch-bg15
-rw-r--r--filesystems/glusterfs/patches/patch-bh11
-rw-r--r--filesystems/glusterfs/patches/patch-bj8
-rw-r--r--filesystems/glusterfs/patches/patch-bk58
-rw-r--r--filesystems/glusterfs/patches/patch-bl16
-rw-r--r--filesystems/glusterfs/patches/patch-bm17
-rw-r--r--filesystems/glusterfs/patches/patch-bn38
-rw-r--r--filesystems/glusterfs/patches/patch-bo12
24 files changed, 209 insertions, 212 deletions
diff --git a/filesystems/glusterfs/patches/patch-aa b/filesystems/glusterfs/patches/patch-aa
index 70ab4eae1a3..f9cc6336c49 100644
--- a/filesystems/glusterfs/patches/patch-aa
+++ b/filesystems/glusterfs/patches/patch-aa
@@ -1,8 +1,8 @@
-$NetBSD: patch-aa,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-aa,v 1.3 2011/05/19 14:54:23 manu Exp $
The == operator is a non-standard bash extension. = should be used instead
---- xlators/mount/fuse/utils/mount_glusterfs.in.orig 2011-04-13 10:19:20.000000000 +0200
-+++ xlators/mount/fuse/utils/mount_glusterfs.in 2011-04-13 10:19:33.000000000 +0200
+--- xlators/mount/fuse/utils/mount_glusterfs.in.orig 2011-04-22 19:37:28.000000000 +0200
++++ xlators/mount/fuse/utils/mount_glusterfs.in 2011-05-19 12:31:23.000000000 +0200
@@ -164,9 +164,9 @@
}
diff --git a/filesystems/glusterfs/patches/patch-ab b/filesystems/glusterfs/patches/patch-ab
index df18eb1688a..33fa81c4193 100644
--- a/filesystems/glusterfs/patches/patch-ab
+++ b/filesystems/glusterfs/patches/patch-ab
@@ -1,27 +1,26 @@
-$NetBSD: patch-ab,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-ab,v 1.3 2011/05/19 14:54:23 manu Exp $
NetBSD does not have AI_ADDRCONFIG. This patch has a side effect: glusterfsd
listens on IPv6 adresses only by default. Option transport.socket.bind-address
in volume server-tcp must be used to listen on an IPv4 address.
---- libglusterfs/src/common-utils.c.orig 2011-04-13 09:28:41.000000000 +0200
-+++ libglusterfs/src/common-utils.c 2011-04-13 09:29:41.000000000 +0200
-@@ -47,8 +47,12 @@
- #include "glusterfs.h"
- #include "stack.h"
- #include "globals.h"
+--- rpc/rpc-lib/src/rpc-transport.h.orig 2011-04-22 19:37:28.000000000 +0200
++++ rpc/rpc-lib/src/rpc-transport.h 2011-05-19 12:31:33.000000000 +0200
+@@ -39,8 +39,12 @@
+ #ifndef MAX_IOVEC
+ #define MAX_IOVEC 16
+ #endif
+#ifndef AI_ADDRCONFIG
+#define AI_ADDRCONFIG 0
+#endif /* AI_ADDRCONFIG */
+
- typedef int32_t (*rw_op_t)(int32_t fd, char *buf, int32_t size);
- typedef int32_t (*rwv_op_t)(int32_t fd, const struct iovec *buf, int32_t size);
-
- struct dnscache6 {
-
---- xlators/nfs/lib/src/rpc-socket.c.orig 2011-04-13 15:03:16.000000000 +0200
-+++ xlators/nfs/lib/src/rpc-socket.c 2011-04-13 15:03:48.000000000 +0200
+ /* Given the 4-byte fragment header, returns non-zero if this fragment
+ * is the last fragment for the RPC record being assemebled.
+ * RPC Record marking standard defines a 32 bit value as the fragment
+ * header with the MSB signifying whether the fragment is the last
+--- xlators/nfs/lib/src/rpc-socket.c.orig 2011-04-22 19:37:28.000000000 +0200
++++ xlators/nfs/lib/src/rpc-socket.c 2011-05-19 12:31:33.000000000 +0200
@@ -36,8 +36,12 @@
#include <netdb.h>
#include <netinet/in.h>
@@ -35,3 +34,18 @@ in volume server-tcp must be used to listen on an IPv4 address.
nfs_rpcsvc_socket_server_get_local_socket (int addrfam, char *listenhost,
uint16_t listenport,
struct sockaddr *addr,
+--- libglusterfs/src/common-utils.c.orig 2011-05-19 14:59:16.000000000 +0200
++++ libglusterfs/src/common-utils.c 2011-05-19 15:00:05.000000000 +0200
+@@ -48,8 +48,12 @@
+ #include "stack.h"
+ #include "globals.h"
+ #include "md5.h"
+
++#ifndef AI_ADDRCONFIG
++#define AI_ADDRCONFIG 0
++#endif /* AI_ADDRCONFIG */
++
+ typedef int32_t (*rw_op_t)(int32_t fd, char *buf, int32_t size);
+ typedef int32_t (*rwv_op_t)(int32_t fd, const struct iovec *buf, int32_t size);
+
+ struct dnscache6 {
diff --git a/filesystems/glusterfs/patches/patch-ac b/filesystems/glusterfs/patches/patch-ac
index 3d0b9465ad6..be2458ae75a 100644
--- a/filesystems/glusterfs/patches/patch-ac
+++ b/filesystems/glusterfs/patches/patch-ac
@@ -1,19 +1,17 @@
-$NetBSD: patch-ac,v 1.1.1.1 2010/08/26 14:26:18 manu Exp $
-
-NetBSD does not have EDOOFUS.
---- libglusterfs/src/compat-errno.c.orig 2010-07-16 11:44:51.000000000 +0200
-+++ libglusterfs/src/compat-errno.c 2010-07-16 11:50:55.000000000 +0200
+NetBSD does not have EDOOFUS
+--- libglusterfs/src/compat-errno.c.orig 2011-04-22 19:37:28.000000000 +0200
++++ libglusterfs/src/compat-errno.c 2011-05-19 15:04:01.000000000 +0200
@@ -857,11 +857,13 @@
- /* ENOATTR 87 / * Attribute not found */
- gf_error_to_errno_array[GF_ERROR_CODE_NOATTR] = ENOATTR;
- gf_errno_to_error_array[ENOATTR] = GF_ERROR_CODE_NOATTR;
-
-+#ifdef EDOOFUS /* Undefined on NetBSD */
- /* EDOOFUS 88 / * Programming error */
- gf_error_to_errno_array[GF_ERROR_CODE_DOOFUS] = EDOOFUS;
- gf_errno_to_error_array[EDOOFUS] = GF_ERROR_CODE_DOOFUS;
-+#endif /* EDOOFUS */
+ /* ENOATTR 87 / * Attribute not found */
+ gf_error_to_errno_array[GF_ERROR_CODE_NOATTR] = ENOATTR;
+ gf_errno_to_error_array[ENOATTR] = GF_ERROR_CODE_NOATTR;
- /* EBADMSG 89 / * Bad message */
- gf_error_to_errno_array[GF_ERROR_CODE_BADMSG] = EBADMSG;
- gf_errno_to_error_array[EBADMSG] = GF_ERROR_CODE_BADMSG;
++#ifndef __NetBSD__ /* Undefined on NetBSD */
+ /* EDOOFUS 88 / * Programming error */
+ gf_error_to_errno_array[GF_ERROR_CODE_DOOFUS] = EDOOFUS;
+ gf_errno_to_error_array[EDOOFUS] = GF_ERROR_CODE_DOOFUS;
++#endif /* __NetBSD__ */
+
+ /* EBADMSG 89 / * Bad message */
+ gf_error_to_errno_array[GF_ERROR_CODE_BADMSG] = EBADMSG;
+ gf_errno_to_error_array[EBADMSG] = GF_ERROR_CODE_BADMSG;
diff --git a/filesystems/glusterfs/patches/patch-ae b/filesystems/glusterfs/patches/patch-ae
index fafe270db06..a3d08a167c8 100644
--- a/filesystems/glusterfs/patches/patch-ae
+++ b/filesystems/glusterfs/patches/patch-ae
@@ -1,9 +1,9 @@
-$NetBSD: patch-ae,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-ae,v 1.3 2011/05/19 14:54:23 manu Exp $
On NetBSD use libperfuse(3), rename umount2(2) as unmount(2), and skip
inexistant /etc/mtab management.
---- contrib/fuse-lib/mount.c.orig 2011-04-09 10:09:02.000000000 +0200
-+++ contrib/fuse-lib/mount.c 2011-04-13 14:36:53.000000000 +0200
+--- contrib/fuse-lib/mount.c.orig 2011-04-22 19:37:28.000000000 +0200
++++ contrib/fuse-lib/mount.c 2011-05-19 12:32:47.000000000 +0200
@@ -19,16 +19,23 @@
#include <limits.h>
#include <fcntl.h>
diff --git a/filesystems/glusterfs/patches/patch-af b/filesystems/glusterfs/patches/patch-af
index dd86dddff3f..2d8871abcfc 100644
--- a/filesystems/glusterfs/patches/patch-af
+++ b/filesystems/glusterfs/patches/patch-af
@@ -1,9 +1,9 @@
-$NetBSD: patch-af,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-af,v 1.3 2011/05/19 14:54:23 manu Exp $
Works around "error: 'TCP_KEEPALIVE' undeclared" on NetBSD
---- rpc/rpc-transport/socket/src/socket.c.orig 2011-04-13 09:38:31.000000000 +0200
-+++ rpc/rpc-transport/socket/src/socket.c 2011-04-13 09:38:31.000000000 +0200
-@@ -374,9 +374,9 @@
+--- rpc/rpc-transport/socket/src/socket.c.orig 2011-04-22 19:37:28.000000000 +0200
++++ rpc/rpc-transport/socket/src/socket.c 2011-05-19 12:32:50.000000000 +0200
+@@ -397,9 +397,9 @@
if (keepalive_intvl == GF_USE_DEFAULT_KEEPALIVE)
goto done;
diff --git a/filesystems/glusterfs/patches/patch-ag b/filesystems/glusterfs/patches/patch-ag
deleted file mode 100644
index 1e599dbdf17..00000000000
--- a/filesystems/glusterfs/patches/patch-ag
+++ /dev/null
@@ -1,20 +0,0 @@
-$NetBSD: patch-ag,v 1.2 2011/04/18 16:19:48 manu Exp $
-
-NetBSD does not have AI_ADDRCONFIG. This patch has a side effect: glusterfsd
-listens on IPv6 adresses only by default. Option transport.socket.bind-address
-in volume server-tcp must be used to listen on an IPv4 address.
---- rpc/rpc-lib/src/rpc-transport.h.orig 2011-04-13 09:44:53.000000000 +0200
-+++ rpc/rpc-lib/src/rpc-transport.h 2011-04-13 09:45:08.000000000 +0200
-@@ -39,8 +39,12 @@
- #ifndef MAX_IOVEC
- #define MAX_IOVEC 16
- #endif
-
-+#ifndef AI_ADDRCONFIG
-+#define AI_ADDRCONFIG 0
-+#endif /* AI_ADDRCONFIG */
-+
- /* Given the 4-byte fragment header, returns non-zero if this fragment
- * is the last fragment for the RPC record being assemebled.
- * RPC Record marking standard defines a 32 bit value as the fragment
- * header with the MSB signifying whether the fragment is the last
diff --git a/filesystems/glusterfs/patches/patch-an b/filesystems/glusterfs/patches/patch-an
index 73e28b02fda..bff3ec8e4d2 100644
--- a/filesystems/glusterfs/patches/patch-an
+++ b/filesystems/glusterfs/patches/patch-an
@@ -1,9 +1,9 @@
-$NetBSD: patch-an,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-an,v 1.3 2011/05/19 14:54:23 manu Exp $
NetBSD uses libperfuse(3). Also enable debugging (-g) for now.
---- configure.ac.orig 2011-04-09 10:09:04.000000000 +0200
-+++ configure.ac 2011-04-13 14:40:11.000000000 +0200
-@@ -409,8 +409,19 @@
+--- configure.ac.orig 2011-04-22 19:37:28.000000000 +0200
++++ configure.ac 2011-05-19 12:32:55.000000000 +0200
+@@ -413,8 +413,19 @@
GF_GLUSTERFS_LDFLAGS="-lnsl -lresolv -lsocket"
BUILD_FUSE_CLIENT=no
FUSE_CLIENT_SUBDIR=""
@@ -23,7 +23,7 @@ NetBSD uses libperfuse(3). Also enable debugging (-g) for now.
GF_HOST_OS="GF_BSD_HOST_OS"
GF_CFLAGS="${ARGP_STANDALONE_CPPFLAGS} -O0"
GF_GLUSTERFS_CFLAGS="${GF_CFLAGS}"
-@@ -445,8 +456,9 @@
+@@ -449,8 +460,9 @@
AC_SUBST(GF_GLUSTERFS_CFLAGS)
AC_SUBST(GF_CFLAGS)
AC_SUBST(GF_LDFLAGS)
diff --git a/filesystems/glusterfs/patches/patch-ao b/filesystems/glusterfs/patches/patch-ao
index f27bcc3fd94..8abb77926b7 100644
--- a/filesystems/glusterfs/patches/patch-ao
+++ b/filesystems/glusterfs/patches/patch-ao
@@ -1,9 +1,20 @@
-$NetBSD: patch-ao,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-ao,v 1.3 2011/05/19 14:54:23 manu Exp $
NetBSD uses libperfuse(3). Also enable debugging (-g) for now.
---- configure.orig 2011-04-09 10:09:09.000000000 +0200
-+++ configure 2011-04-13 14:40:44.000000000 +0200
-@@ -21732,8 +21732,19 @@
+--- configure.orig 2011-05-19 12:36:23.000000000 +0200
++++ configure 2011-05-19 12:37:13.000000000 +0200
+@@ -464,9 +464,9 @@
+ # include <unistd.h>
+ #endif"
+
+ ac_subdirs_all="$ac_subdirs_all argp-standalone"
+-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL mountutildir initdir launchddir LEX LEXLIB LEX_OUTPUT_ROOT YACC LD ac_ct_LD HAVE_SPINLOCK HAVE_STRNLEN FUSE_CLIENT_SUBDIR FUSERMOUNT_SUBDIR IBVERBS_SUBDIR RDMA_SUBDIR PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir SYNCDAEMON_COMPILE SYNCDAEMON_SUBDIR HAVE_BACKTRACE HAVE_MALLOC_STATS subdirs ARGP_STANDALONE_CPPFLAGS ARGP_STANDALONE_LDADD GF_DISTRIBUTION GF_HOST_OS GF_GLUSTERFS_LDFLAGS GF_GLUSTERFS_CFLAGS GF_CFLAGS GF_LDFLAGS GF_LDADD GF_FUSE_CFLAGS RLLIBS CONTRIBDIR INCLUDES GF_DARWIN_HOST_OS_TRUE GF_DARWIN_HOST_OS_FALSE LIBOBJS LTLIBOBJS'
++ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE SED EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL mountutildir initdir launchddir LEX LEXLIB LEX_OUTPUT_ROOT YACC LD ac_ct_LD HAVE_SPINLOCK HAVE_STRNLEN FUSE_CLIENT_SUBDIR FUSERMOUNT_SUBDIR IBVERBS_SUBDIR RDMA_SUBDIR PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir SYNCDAEMON_COMPILE SYNCDAEMON_SUBDIR HAVE_BACKTRACE HAVE_MALLOC_STATS subdirs ARGP_STANDALONE_CPPFLAGS ARGP_STANDALONE_LDADD GF_DISTRIBUTION GF_HOST_OS GF_GLUSTERFS_LDFLAGS GF_GLUSTERFS_CFLAGS GF_CFLAGS GF_LDFLAGS GF_LDADD GF_FUSE_LDADD GF_FUSE_CFLAGS RLLIBS CONTRIBDIR INCLUDES GF_DARWIN_HOST_OS_TRUE GF_DARWIN_HOST_OS_FALSE LIBOBJS LTLIBOBJS'
+ ac_subst_files=''
+
+ # Initialize some variables set by options.
+ ac_init_help=
+@@ -21731,8 +21731,19 @@
GF_GLUSTERFS_LDFLAGS="-lnsl -lresolv -lsocket"
BUILD_FUSE_CLIENT=no
FUSE_CLIENT_SUBDIR=""
@@ -23,7 +34,7 @@ NetBSD uses libperfuse(3). Also enable debugging (-g) for now.
GF_HOST_OS="GF_BSD_HOST_OS"
GF_CFLAGS="${ARGP_STANDALONE_CPPFLAGS} -O0"
GF_GLUSTERFS_CFLAGS="${GF_CFLAGS}"
-@@ -22849,8 +22860,9 @@
+@@ -22853,8 +22864,9 @@
s,@GF_GLUSTERFS_CFLAGS@,$GF_GLUSTERFS_CFLAGS,;t t
s,@GF_CFLAGS@,$GF_CFLAGS,;t t
s,@GF_LDFLAGS@,$GF_LDFLAGS,;t t
diff --git a/filesystems/glusterfs/patches/patch-ar b/filesystems/glusterfs/patches/patch-ar
index e4da8d88820..5838a63b59a 100644
--- a/filesystems/glusterfs/patches/patch-ar
+++ b/filesystems/glusterfs/patches/patch-ar
@@ -1,9 +1,9 @@
-$NetBSD: patch-ar,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-ar,v 1.3 2011/05/19 14:54:23 manu Exp $
Add @GF_FUSE_LDADD@ to fuse.so library dependecies so that -lperfuse is
added at configure time for NetBSD.
---- xlators/mount/fuse/src/Makefile.am.orig 2011-04-13 09:55:12.000000000 +0200
-+++ xlators/mount/fuse/src/Makefile.am 2011-04-13 09:56:14.000000000 +0200
+--- xlators/mount/fuse/src/Makefile.am.orig 2011-04-22 19:37:28.000000000 +0200
++++ xlators/mount/fuse/src/Makefile.am 2011-05-19 12:39:16.000000000 +0200
@@ -15,8 +15,9 @@
fuse_la_SOURCES = fuse-helpers.c fuse-resolve.c fuse-bridge.c \
$(CONTRIBDIR)/fuse-lib/misc.c $(mount_source)
@@ -13,4 +13,4 @@ added at configure time for NetBSD.
AM_CFLAGS = -fPIC -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -D$(GF_HOST_OS) -Wall \
-I$(top_srcdir)/libglusterfs/src -I$(CONTRIBDIR)/fuse-include \
- -I$(top_srcdir)/glusterfsd/src $(GF_CFLAGS) $(GF_FUSE_CFLAGS)
+ $(GF_CFLAGS) $(GF_FUSE_CFLAGS)
diff --git a/filesystems/glusterfs/patches/patch-as b/filesystems/glusterfs/patches/patch-as
index 8faecff78bd..9b57275539f 100644
--- a/filesystems/glusterfs/patches/patch-as
+++ b/filesystems/glusterfs/patches/patch-as
@@ -1,9 +1,9 @@
-$NetBSD: patch-as,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-as,v 1.3 2011/05/19 14:54:23 manu Exp $
Add @GF_FUSE_LDADD@ to fuse.so library dependecies so that -lperfuse is
added at configure time for NetBSD.
---- xlators/mount/fuse/src/Makefile.in.orig 2011-04-13 09:57:06.000000000 +0200
-+++ xlators/mount/fuse/src/Makefile.in 2011-04-13 09:57:24.000000000 +0200
+--- xlators/mount/fuse/src/Makefile.in.orig 2011-04-22 19:37:40.000000000 +0200
++++ xlators/mount/fuse/src/Makefile.in 2011-05-19 12:39:21.000000000 +0200
@@ -55,9 +55,9 @@
am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
am__installdirs = "$(DESTDIR)$(xlatordir)"
diff --git a/filesystems/glusterfs/patches/patch-ax b/filesystems/glusterfs/patches/patch-ax
index ba860c60c3b..edd208eb3a2 100644
--- a/filesystems/glusterfs/patches/patch-ax
+++ b/filesystems/glusterfs/patches/patch-ax
@@ -1,8 +1,8 @@
-$NetBSD: patch-ax,v 1.1.1.1 2010/08/26 14:26:18 manu Exp $
+$NetBSD: patch-ax,v 1.2 2011/05/19 14:54:23 manu Exp $
Do not strip binaries so that we have debug for now.
---- install-sh.orig 2010-08-23 16:56:17.000000000 +0200
-+++ install-sh 2010-08-23 16:56:40.000000000 +0200
+--- install-sh.orig 2011-04-22 19:37:34.000000000 +0200
++++ install-sh 2011-05-19 12:39:25.000000000 +0200
@@ -120,9 +120,9 @@
shift
shift
diff --git a/filesystems/glusterfs/patches/patch-ba b/filesystems/glusterfs/patches/patch-ba
index 3d4c7dea4a5..d16891c7e4e 100644
--- a/filesystems/glusterfs/patches/patch-ba
+++ b/filesystems/glusterfs/patches/patch-ba
@@ -1,4 +1,4 @@
-$NetBSD: patch-ba,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-ba,v 1.3 2011/05/19 14:54:23 manu Exp $
glibc dirname() modify the string it is given and returns it.
glusterfs takes this behavior for granted, and assume that if it
@@ -14,9 +14,9 @@ At least NetBSD returns a static storage. glusterfs will return it to
a calling function that has the responsability to free it, causing
a SIGSEGV.
---- ./xlators/performance/stat-prefetch/src/stat-prefetch.c.orig 2011-04-13 09:59:38.000000000 +0200
-+++ ./xlators/performance/stat-prefetch/src/stat-prefetch.c 2011-04-13 10:01:01.000000000 +0200
-@@ -905,18 +905,24 @@
+--- xlators/performance/stat-prefetch/src/stat-prefetch.c.orig 2011-04-22 19:37:28.000000000 +0200
++++ xlators/performance/stat-prefetch/src/stat-prefetch.c 2011-05-19 12:41:28.000000000 +0200
+@@ -949,18 +949,24 @@
path = dirname (cpy);
switch (i)
{
@@ -39,7 +39,7 @@ a SIGSEGV.
out:
+ if (cpy != NULL)
+ GF_FREE(cpy);
- return ret;
+ return ret;
}
diff --git a/filesystems/glusterfs/patches/patch-bb b/filesystems/glusterfs/patches/patch-bb
deleted file mode 100644
index 71ae5071ea7..00000000000
--- a/filesystems/glusterfs/patches/patch-bb
+++ /dev/null
@@ -1,18 +0,0 @@
-$NetBSD: patch-bb,v 1.2 2011/04/18 16:19:48 manu Exp $
-
-On NetBSD and FreeBSD, O_DIRECTORY does not exists and is defined as 0
-by glusterfs. ((flags & O_DIRECTORY) == O_DIRECTORY) always evaluate
-to true, and this is a bug.
---- ./xlators/performance/quick-read/src/quick-read.c.orig 2011-04-13 10:02:38.000000000 +0200
-+++ ./xlators/performance/quick-read/src/quick-read.c 2011-04-13 10:03:23.000000000 +0200
-@@ -637,9 +637,9 @@
- }
- }
- UNLOCK (&table->lock);
-
-- if (content_cached && ((flags & O_DIRECTORY) == O_DIRECTORY)) {
-+ if (content_cached && (flags & O_DIRECTORY)) {
- op_ret = -1;
- op_errno = ENOTDIR;
- goto unwind;
- }
diff --git a/filesystems/glusterfs/patches/patch-bc b/filesystems/glusterfs/patches/patch-bc
index fbac1f39d13..8d594776fef 100644
--- a/filesystems/glusterfs/patches/patch-bc
+++ b/filesystems/glusterfs/patches/patch-bc
@@ -1,4 +1,4 @@
-$NetBSD: patch-bc,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-bc,v 1.3 2011/05/19 14:54:23 manu Exp $
glibc dirname() modify the string it is given and returns it.
glusterfs takes this behavior for granted, and assume that if it
@@ -14,18 +14,18 @@ At least NetBSD returns a static storage. glusterfs will return it to
a calling function that has the responsability to free it, causing
a SIGSEGV.
---- xlators/performance/quick-read/src/quick-read.c.orig 2011-04-13 10:04:09.000000000 +0200
-+++ xlators/performance/quick-read/src/quick-read.c 2011-04-13 10:05:35.000000000 +0200
+--- xlators/performance/quick-read/src/quick-read.c.orig 2011-04-22 19:37:28.000000000 +0200
++++ xlators/performance/quick-read/src/quick-read.c 2011-05-19 12:44:01.000000000 +0200
@@ -80,8 +80,9 @@
qr_loc_fill (loc_t *loc, inode_t *inode, char *path)
{
- int32_t ret = -1;
+ int32_t ret = -1;
char *parent = NULL;
-+ char *path_copy = NULL;
++ char *path_copy = NULL;
- if ((loc == NULL) || (inode == NULL) || (path == NULL)
- || (inode->table == NULL)) {
- ret = -1;
+ GF_VALIDATE_OR_GOTO_WITH_ERROR ("quick-read", loc, out, errno, EINVAL);
+ GF_VALIDATE_OR_GOTO_WITH_ERROR ("quick-read", inode, out, errno,
+ EINVAL);
@@ -92,15 +93,15 @@
loc->inode = inode_ref (inode);
loc->path = gf_strdup (path);
@@ -45,9 +45,9 @@ a SIGSEGV.
loc->parent = inode_from_path (inode->table, parent);
if (loc->parent == NULL) {
ret = -1;
-@@ -114,10 +115,10 @@
+@@ -116,10 +117,10 @@
+ if (ret == -1) {
qr_loc_wipe (loc);
-
}
- if (parent) {
diff --git a/filesystems/glusterfs/patches/patch-be b/filesystems/glusterfs/patches/patch-be
index 4af8e8c06ef..2b4cd31dec6 100644
--- a/filesystems/glusterfs/patches/patch-be
+++ b/filesystems/glusterfs/patches/patch-be
@@ -1,19 +1,10 @@
-$NetBSD: patch-be,v 1.2 2011/04/18 16:19:48 manu Exp $
-
-basename() and dirname() are not supposed to be thread-safe, and NetBSD's
-implementation is not. glusterfs assume the functions are thread-safe.
-Borrow basename() and rdirname() form glibc and make NetBSD use them.
-
-Also map Linux extended attribute system calls to NetBSD counterpart
-
---- libglusterfs/src/compat.c.orig 2011-04-09 10:09:02.000000000 +0200
-+++ libglusterfs/src/compat.c 2011-04-14 10:36:40.000000000 +0200
-@@ -547,4 +547,282 @@
- len++;
- return len;
+--- libglusterfs/src/compat.c.orig 2011-04-22 19:37:28.000000000 +0200
++++ libglusterfs/src/compat.c 2011-05-19 15:27:32.000000000 +0200
+@@ -529,8 +529,285 @@
+
}
- #endif /* STRNLEN */
-+
+ #endif /* GF_SOLARIS_HOST_OS */
+
+#ifdef __NetBSD__
+/*
+ * basename() and dirname() are not supposed to be thread-safe.
@@ -291,3 +282,7 @@ Also map Linux extended attribute system calls to NetBSD counterpart
+{ return extattr_set_link(path, EXTATTR_NAMESPACE_USER, key, value, size); }
+
+#endif /* __NetBSD__ */
+ #ifndef HAVE_STRNLEN
+ size_t
+ strnlen(const char *string, size_t maxlen)
+ {
diff --git a/filesystems/glusterfs/patches/patch-bf b/filesystems/glusterfs/patches/patch-bf
index c650fa879e9..180f350c435 100644
--- a/filesystems/glusterfs/patches/patch-bf
+++ b/filesystems/glusterfs/patches/patch-bf
@@ -1,16 +1,16 @@
-$NetBSD: patch-bf,v 1.2 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-bf,v 1.3 2011/05/19 14:54:23 manu Exp $
basename() and dirname() are not supposed to be thread-safe, and NetBSD's
implementation is not. glusterfs assume the functions are thread-safe.
Borrow basename() and rdirname() form glibc and make NetBSD use them.
---- libglusterfs/src/compat.h.orig 2011-04-09 10:09:02.000000000 +0200
-+++ libglusterfs/src/compat.h 2011-04-14 15:27:54.000000000 +0200
+--- libglusterfs/src/compat.h.orig 2011-04-22 19:37:28.000000000 +0200
++++ libglusterfs/src/compat.h 2011-05-19 12:45:53.000000000 +0200
@@ -57,9 +57,9 @@
#endif /* HAVE_LLISTXATTR */
#endif /* GF_LINUX_HOST_OS */
- #ifdef GF_BSD_HOST_OS
+ #ifdef GF_BSD_HOST_OS
-/* In case of FreeBSD */
+/* In case of FreeBSD and NetBSD */
diff --git a/filesystems/glusterfs/patches/patch-bg b/filesystems/glusterfs/patches/patch-bg
deleted file mode 100644
index a10bae0c8f8..00000000000
--- a/filesystems/glusterfs/patches/patch-bg
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD: patch-bg,v 1.1 2011/04/18 16:19:48 manu Exp $
-GCC does not have to be being with 64 bit mode.
---- argp-standalone/configure.orig 2011-04-13 10:27:45.000000000 +0200
-+++ argp-standalone/configure 2011-04-13 10:27:52.000000000 +0200
-@@ -6114,9 +6114,9 @@
- true
- else
- CFLAGS="$CFLAGS -ggdb3"
- fi
-- CFLAGS="$CFLAGS -m64 -Wall -W \
-+ CFLAGS="$CFLAGS -Wall -W \
- -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes \
- -Waggregate-return \
- -Wpointer-arith -Wbad-function-cast -Wnested-externs"
- fi
diff --git a/filesystems/glusterfs/patches/patch-bh b/filesystems/glusterfs/patches/patch-bh
index 19471cc6356..e1359dcb987 100644
--- a/filesystems/glusterfs/patches/patch-bh
+++ b/filesystems/glusterfs/patches/patch-bh
@@ -1,13 +1,13 @@
-$NetBSD: patch-bh,v 1.1 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-bh,v 1.2 2011/05/19 14:54:23 manu Exp $
NetBSD's <dirent.h> does a #defiine d_ino d_fileno. Since glusterfs
declares structs with d_ino members, we must include <dirent.h> early
so that d_ino get preprocessed into d_fileno conssitently.
Also define proper xdr types for NetBSD.
---- rpc/rpc-lib/src/xdr-common.h.orig 2011-04-13 10:41:50.000000000 +0200
-+++ rpc/rpc-lib/src/xdr-common.h 2011-04-13 10:47:57.000000000 +0200
-@@ -29,8 +29,12 @@
+--- rpc/rpc-lib/src/xdr-common.h.orig 2011-04-22 19:37:28.000000000 +0200
++++ rpc/rpc-lib/src/xdr-common.h 2011-05-19 12:47:38.000000000 +0200
+@@ -29,8 +29,13 @@
#include <sys/types.h>
#include <rpc/xdr.h>
#include <sys/uio.h>
@@ -16,11 +16,12 @@ Also define proper xdr types for NetBSD.
+#include <dirent.h>
+#endif /* __NetBSD__ */
+
++
enum gf_dump_procnum {
GF_DUMP_NULL,
GF_DUMP_DUMP,
GF_DUMP_MAXVALUE,
-@@ -46,8 +50,15 @@
+@@ -46,8 +51,15 @@
#define xdr_uint32_t xdr_u_int32_t
#define uint64_t u_int64_t
#endif
diff --git a/filesystems/glusterfs/patches/patch-bj b/filesystems/glusterfs/patches/patch-bj
index 945ab021db4..9a20f9505e1 100644
--- a/filesystems/glusterfs/patches/patch-bj
+++ b/filesystems/glusterfs/patches/patch-bj
@@ -1,8 +1,8 @@
-$NetBSD: patch-bj,v 1.1 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-bj,v 1.2 2011/05/19 14:54:23 manu Exp $
Make sure NetBSD pulls proper FUSE header
---- xlators/mount/fuse/src/fuse-bridge.h.orig 2011-04-13 14:32:26.000000000 +0200
-+++ xlators/mount/fuse/src/fuse-bridge.h 2011-04-13 14:32:27.000000000 +0200
-@@ -58,9 +58,9 @@
+--- xlators/mount/fuse/src/fuse-bridge.h.orig 2011-04-22 19:37:28.000000000 +0200
++++ xlators/mount/fuse/src/fuse-bridge.h 2011-05-19 12:48:31.000000000 +0200
+@@ -57,9 +57,9 @@
/* TODO: when supporting posix acl, remove this definition */
#define DISABLE_POSIX_ACL
diff --git a/filesystems/glusterfs/patches/patch-bk b/filesystems/glusterfs/patches/patch-bk
index 15b662d3f30..15c9dce795f 100644
--- a/filesystems/glusterfs/patches/patch-bk
+++ b/filesystems/glusterfs/patches/patch-bk
@@ -1,61 +1,9 @@
-$NetBSD: patch-bk,v 1.1 2011/04/18 16:19:48 manu Exp $
+$NetBSD: patch-bk,v 1.2 2011/05/19 14:54:23 manu Exp $
Add missing xdr_sizeof() in NetBSD. Stollen from
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/xdr/xdr_sizeof.c?rev=1.1
---- rpc/rpc-lib/src/Makefile.am.orig 2011-04-09 10:09:02.000000000 +0200
-+++ rpc/rpc-lib/src/Makefile.am 2011-04-13 15:34:52.000000000 +0200
-@@ -1,9 +1,9 @@
- lib_LTLIBRARIES = libgfrpc.la
-
- libgfrpc_la_SOURCES = auth-unix.c rpcsvc-auth.c rpcsvc.c auth-null.c \
-- rpc-transport.c xdr-rpc.c xdr-rpcclnt.c rpc-clnt.c auth-glusterfs.c \
-- rpc-common.c
-+ rpc-transport.c xdr-rpc.c xdr-rpcclnt.c xdr-sizeof.c \
-+ rpc-clnt.c auth-glusterfs.c rpc-common.c
- libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
-
- noinst_HEADERS = rpcsvc.h rpc-transport.h xdr-common.h xdr-rpc.h xdr-rpcclnt.h \
- rpc-clnt.h rpcsvc-common.h protocol-common.h
---- rpc/rpc-lib/src/Makefile.in.orig 2011-04-09 10:09:13.000000000 +0200
-+++ rpc/rpc-lib/src/Makefile.in 2011-04-13 15:34:52.000000000 +0200
-@@ -58,10 +58,10 @@
- LTLIBRARIES = $(lib_LTLIBRARIES)
- libgfrpc_la_DEPENDENCIES = \
- $(top_builddir)/libglusterfs/src/libglusterfs.la
- am_libgfrpc_la_OBJECTS = auth-unix.lo rpcsvc-auth.lo rpcsvc.lo \
-- auth-null.lo rpc-transport.lo xdr-rpc.lo xdr-rpcclnt.lo \
-- rpc-clnt.lo auth-glusterfs.lo rpc-common.lo
-+ auth-null.lo rpc-transport.lo xdr-rpc.lo xdr-sizeof.lo \
-+ xdr-rpcclnt.lo rpc-clnt.lo auth-glusterfs.lo rpc-common.lo
- libgfrpc_la_OBJECTS = $(am_libgfrpc_la_OBJECTS)
- DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
- depcomp = $(SHELL) $(top_srcdir)/depcomp
- am__depfiles_maybe = depfiles
-@@ -221,10 +221,10 @@
- sysconfdir = @sysconfdir@
- target_alias = @target_alias@
- lib_LTLIBRARIES = libgfrpc.la
- libgfrpc_la_SOURCES = auth-unix.c rpcsvc-auth.c rpcsvc.c auth-null.c \
-- rpc-transport.c xdr-rpc.c xdr-rpcclnt.c rpc-clnt.c auth-glusterfs.c \
-- rpc-common.c
-+ rpc-transport.c xdr-rpc.c xdr-rpcclnt.c xdr-sizeof.c \
-+ rpc-clnt.c auth-glusterfs.c rpc-common.c
-
- libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
- noinst_HEADERS = rpcsvc.h rpc-transport.h xdr-common.h xdr-rpc.h xdr-rpcclnt.h \
- rpc-clnt.h rpcsvc-common.h protocol-common.h
-@@ -313,8 +313,9 @@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpcsvc-auth.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpcsvc.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdr-rpc.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdr-rpcclnt.Plo@am__quote@
-+@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdr-sizeof.Plo@am__quote@
-
- .c.o:
- @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
- @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
---- rpc/rpc-lib/src/xdr-sizeof.c.orig 2011-04-13 15:34:52.000000000 +0200
-+++ rpc/rpc-lib/src/xdr-sizeof.c 2011-04-13 15:46:04.000000000 +0200
+--- rpc/rpc-lib/src/xdr-sizeof.c.orig 2011-05-19 12:48:34.000000000 +0200
++++ rpc/rpc-lib/src/xdr-sizeof.c 2011-05-19 12:48:34.000000000 +0200
@@ -0,0 +1,164 @@
+#ifdef __NetBSD__
+/*
diff --git a/filesystems/glusterfs/patches/patch-bl b/filesystems/glusterfs/patches/patch-bl
new file mode 100644
index 00000000000..c00b040a96c
--- /dev/null
+++ b/filesystems/glusterfs/patches/patch-bl
@@ -0,0 +1,16 @@
+$NetBSD: patch-bl,v 1.1 2011/05/19 14:54:23 manu Exp $
+
+#include <signal.h> for SIGTERM
+
+--- glusterfsd/src/glusterfsd-mgmt.c.orig 2011-05-19 15:15:46.000000000 +0200
++++ glusterfsd/src/glusterfsd-mgmt.c 2011-05-19 15:16:00.000000000 +0200
+@@ -20,8 +20,9 @@
+ #include <stdio.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+ #include <stdlib.h>
++#include <signal.h>
+
+ #ifndef _CONFIG_H
+ #define _CONFIG_H
+ #include "config.h"
diff --git a/filesystems/glusterfs/patches/patch-bm b/filesystems/glusterfs/patches/patch-bm
new file mode 100644
index 00000000000..d7b35fb1731
--- /dev/null
+++ b/filesystems/glusterfs/patches/patch-bm
@@ -0,0 +1,17 @@
+$NetBSD: patch-bm,v 1.1 2011/05/19 14:54:23 manu Exp $
+
+Add xdr-sizeof() to the build
+
+--- rpc/rpc-lib/src/Makefile.am.orig 2011-05-19 15:41:12.000000000 +0200
++++ rpc/rpc-lib/src/Makefile.am 2011-05-19 15:41:33.000000000 +0200
+@@ -1,9 +1,9 @@
+ lib_LTLIBRARIES = libgfrpc.la
+
+ libgfrpc_la_SOURCES = auth-unix.c rpcsvc-auth.c rpcsvc.c auth-null.c \
+ rpc-transport.c xdr-rpc.c xdr-rpcclnt.c rpc-clnt.c auth-glusterfs.c \
+- rpc-common.c
++ rpc-common.c xdr-sizeof.c
+ libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
+
+ noinst_HEADERS = rpcsvc.h rpc-transport.h xdr-common.h xdr-rpc.h xdr-rpcclnt.h \
+ rpc-clnt.h rpcsvc-common.h protocol-common.h
diff --git a/filesystems/glusterfs/patches/patch-bn b/filesystems/glusterfs/patches/patch-bn
new file mode 100644
index 00000000000..865ab49fdb4
--- /dev/null
+++ b/filesystems/glusterfs/patches/patch-bn
@@ -0,0 +1,38 @@
+$NetBSD: patch-bn,v 1.1 2011/05/19 14:54:23 manu Exp $
+
+Add xdr-sizeof() to the build
+
+--- rpc/rpc-lib/src/Makefile.in.orig 2011-05-19 15:41:17.000000000 +0200
++++ rpc/rpc-lib/src/Makefile.in 2011-05-19 15:43:00.000000000 +0200
+@@ -59,9 +59,9 @@
+ libgfrpc_la_DEPENDENCIES = \
+ $(top_builddir)/libglusterfs/src/libglusterfs.la
+ am_libgfrpc_la_OBJECTS = auth-unix.lo rpcsvc-auth.lo rpcsvc.lo \
+ auth-null.lo rpc-transport.lo xdr-rpc.lo xdr-rpcclnt.lo \
+- rpc-clnt.lo auth-glusterfs.lo rpc-common.lo
++ rpc-clnt.lo auth-glusterfs.lo rpc-common.lo xdr-sizeof.lo
+ libgfrpc_la_OBJECTS = $(am_libgfrpc_la_OBJECTS)
+ DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
+ depcomp = $(SHELL) $(top_srcdir)/depcomp
+ am__depfiles_maybe = depfiles
+@@ -222,9 +222,9 @@
+ target_alias = @target_alias@
+ lib_LTLIBRARIES = libgfrpc.la
+ libgfrpc_la_SOURCES = auth-unix.c rpcsvc-auth.c rpcsvc.c auth-null.c \
+ rpc-transport.c xdr-rpc.c xdr-rpcclnt.c rpc-clnt.c auth-glusterfs.c \
+- rpc-common.c
++ rpc-common.c xdr-sizeof.lo
+
+ libgfrpc_la_LIBADD = $(top_builddir)/libglusterfs/src/libglusterfs.la
+ noinst_HEADERS = rpcsvc.h rpc-transport.h xdr-common.h xdr-rpc.h xdr-rpcclnt.h \
+ rpc-clnt.h rpcsvc-common.h protocol-common.h
+@@ -308,8 +308,9 @@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auth-null.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/auth-unix.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc-clnt.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc-common.Plo@am__quote@
++@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdr-sizeof.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpc-transport.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpcsvc-auth.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rpcsvc.Plo@am__quote@
+ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xdr-rpc.Plo@am__quote@
diff --git a/filesystems/glusterfs/patches/patch-bo b/filesystems/glusterfs/patches/patch-bo
new file mode 100644
index 00000000000..b5e4b771f3d
--- /dev/null
+++ b/filesystems/glusterfs/patches/patch-bo
@@ -0,0 +1,12 @@
+--- rpc/xdr/src/cli1-xdr.c.orig 2011-05-19 15:56:47.000000000 +0200
++++ rpc/xdr/src/cli1-xdr.c 2011-05-19 15:57:10.000000000 +0200
+@@ -23,8 +23,9 @@
+ * It was generated using rpcgen.
+ */
+
+ #include "cli1-xdr.h"
++#include "xdr-common.h"
+ #include "compat.h"
+
+ bool_t
+ xdr_gf1_cluster_type (XDR *xdrs, gf1_cluster_type *objp)