Please find attached patch now ...
diff -u fuse-2.8.1/debian/control fuse-2.8.1/debian/control
--- fuse-2.8.1/debian/control
+++ fuse-2.8.1/debian/control
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Bartosz Fenski <[email protected]>
 Uploaders: Adam CĂŠcile (Le_Vert) <[email protected]>
-Build-Depends: debhelper (>= 5.0.37), autotools-dev, dpatch, lsb-base (>= 3.0-6), bzip2, libselinux1-dev [!kfreebsd-amd64 !kfreebsd-i386] | libselinux-dev [!kfreebsd-amd64 !kfreebsd-i386], libfreebsd-dev [kfreebsd-amd64 kfreebsd-i386]
+Build-Depends: debhelper (>= 5.0.37), autotools-dev, dpatch, lsb-base (>= 3.0-6), bzip2, libselinux1-dev [!kfreebsd-amd64 !kfreebsd-i386] | libselinux-dev [!kfreebsd-amd64 !kfreebsd-i386]
 Homepage: http://fuse.sourceforge.net/
 Standards-Version: 3.8.2
 
@@ -24,7 +24,7 @@
 Package: libfuse-dev
 Section: libdevel
 Architecture: any
-Depends: libfuse2 (= ${binary:Version}), ${misc:Depends}, libselinux1-dev [!kfreebsd-amd64 !kfreebsd-i386] | libselinux-dev [!kfreebsd-amd64 !kfreebsd-i386], libfreebsd-dev [kfreebsd-amd64 kfreebsd-i386]
+Depends: libfuse2 (= ${binary:Version}), ${misc:Depends}, libselinux1-dev [!kfreebsd-amd64 !kfreebsd-i386] | libselinux-dev [!kfreebsd-amd64 !kfreebsd-i386]
 Suggests: fuse-utils
 Description: Filesystem in USErspace (development files)
  Simple interface for userspace programs to export a virtual
diff -u fuse-2.8.1/debian/patches/001-GNU_kFreeBSD fuse-2.8.1/debian/patches/001-GNU_kFreeBSD
--- fuse-2.8.1/debian/patches/001-GNU_kFreeBSD
+++ fuse-2.8.1/debian/patches/001-GNU_kFreeBSD
@@ -6,110 +6,6 @@
 
 @DPATCH@
 
-diff -Nurd fuse-2.7.4.orig/configure fuse-2.7.4/configure
---- fuse-2.7.4.orig/configure	2008-07-25 20:19:05.000000000 +0200
-+++ fuse-2.7.4/configure	2008-07-25 20:19:05.000000000 +0200
-@@ -11461,6 +11461,89 @@
- 
- fi
- 
-+{ echo "$as_me:$LINENO: checking for library containing devname_r" >&5
-+echo $ECHO_N "checking for library containing devname_r... $ECHO_C" >&6; }
-+if test "${ac_cv_search_devname_r+set}" = set; then
-+  echo $ECHO_N "(cached) $ECHO_C" >&6
-+else
-+  ac_func_search_save_LIBS=$LIBS
-+cat >conftest.$ac_ext <<_ACEOF
-+/* confdefs.h.  */
-+_ACEOF
-+cat confdefs.h >>conftest.$ac_ext
-+cat >>conftest.$ac_ext <<_ACEOF
-+/* end confdefs.h.  */
-+
-+/* Override any GCC internal prototype to avoid an error.
-+   Use char because int might match the return type of a GCC
-+   builtin and then its argument prototype would still apply.  */
-+#ifdef __cplusplus
-+extern "C"
-+#endif
-+char devname_r ();
-+int
-+main ()
-+{
-+return devname_r ();
-+  ;
-+  return 0;
-+}
-+_ACEOF
-+for ac_lib in '' freebsd; do
-+  if test -z "$ac_lib"; then
-+    ac_res="none required"
-+  else
-+    ac_res=-l$ac_lib
-+    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
-+  fi
-+  rm -f conftest.$ac_objext conftest$ac_exeext
-+if { (ac_try="$ac_link"
-+case "(($ac_try" in
-+  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-+  *) ac_try_echo=$ac_try;;
-+esac
-+eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-+  (eval "$ac_link") 2>conftest.er1
-+  ac_status=$?
-+  grep -v '^ *+' conftest.er1 >conftest.err
-+  rm -f conftest.er1
-+  cat conftest.err >&5
-+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-+  (exit $ac_status); } && {
-+	 test -z "$ac_c_werror_flag" ||
-+	 test ! -s conftest.err
-+       } && test -s conftest$ac_exeext &&
-+       $as_test_x conftest$ac_exeext; then
-+  ac_cv_search_devname_r=$ac_res
-+else
-+  echo "$as_me: failed program was:" >&5
-+sed 's/^/| /' conftest.$ac_ext >&5
-+
-+
-+fi
-+
-+rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-+      conftest$ac_exeext
-+  if test "${ac_cv_search_devname_r+set}" = set; then
-+  break
-+fi
-+done
-+if test "${ac_cv_search_devname_r+set}" = set; then
-+  :
-+else
-+  ac_cv_search_devname_r=no
-+fi
-+rm conftest.$ac_ext
-+LIBS=$ac_func_search_save_LIBS
-+fi
-+{ echo "$as_me:$LINENO: result: $ac_cv_search_devname_r" >&5
-+echo "${ECHO_T}$ac_cv_search_devname_r" >&6; }
-+ac_res=$ac_cv_search_devname_r
-+if test "$ac_res" != no; then
-+  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
-+
-+fi
-+
- libfuse_libs="$libfuse_libs $LIBS"
- LIBS=
- 
-diff -Nurd fuse-2.7.4.orig/configure.in fuse-2.7.4/configure.in
---- fuse-2.7.4.orig/configure.in	2008-07-25 20:17:20.000000000 +0200
-+++ fuse-2.7.4/configure.in	2008-07-25 20:17:20.000000000 +0200
-@@ -66,6 +66,7 @@
- LIBS=
- AC_SEARCH_LIBS(dlopen, [dl])
- AC_SEARCH_LIBS(clock_gettime, [rt])
-+AC_SEARCH_LIBS(devname_r, [freebsd])
- libfuse_libs="$libfuse_libs $LIBS"
- LIBS=
- AC_ARG_WITH([libiconv-prefix],
 diff -Nurd fuse-2.7.4.orig/lib/fuse.c fuse-2.7.4/lib/fuse.c
 --- fuse-2.7.4.orig/lib/fuse.c	2008-07-25 20:17:21.000000000 +0200
 +++ fuse-2.7.4/lib/fuse.c	2009-05-13 14:29:03.000000000 +0200
@@ -143,9 +39,16 @@
 diff -Nurd fuse-2.7.4.orig/lib/fuse_lowlevel.c fuse-2.7.4/lib/fuse_lowlevel.c
 --- fuse-2.7.4.orig/lib/fuse_lowlevel.c	2008-02-19 20:51:26.000000000 +0100
 +++ fuse-2.7.4/lib/fuse_lowlevel.c	2009-05-13 14:29:03.000000000 +0200
-@@ -1321,7 +1321,7 @@
+@@ -1728,13 +1728,13 @@
+ /*
+  * This is currently not implemented on other than Linux...
+  */
+-int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[]);
++int fuse_req_getgroups(fuse_req_t req, int size, gid_t list[])
+ {
+ 	return -ENOSYS;
  }
- 
+ #endif
  
 -#ifndef __FreeBSD__
 +#if !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)

Reply via email to