Package: fuse
Version: 2.8.1-1
Severity: serious
Justification: fails to build from source

fuse version 2.8.1-1 fails to build on GNU/kFreeBSD, due to a typo on
a conditional code part.

Also with glibc 2.10.1, it is not necessary anymore to link libfuse to
libfreebsd.

Please find below a patch to fix both issues.


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 <fe...@debian.org>
 Uploaders: Adam Cécile (Le_Vert) <gand...@le-vert.net>
-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], libc0.1-dev (>= 2.10.1) 
[kfreebsd-amd64 kfreebsd-i386]
 Homepage: http://fuse.sourceforge.net/
 Standards-Version: 3.8.2
 
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
@@ -166,0 +63,11 @@
+--- fuse-2.8.1.orig/lib/fuse_lowlevel.c
++++ fuse-2.8.1/lib/fuse_lowlevel.c
+@@ -1728,7 +1728,7 @@
+ /*
+  * 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;
+ }



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 7.2-1-amd64
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash



-- 
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to