pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/filesystems/fuse-bindfs Update to bindfs-1.15.1 from 1...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/eb22000b0720
branches:  trunk
changeset: 770392:eb22000b0720
user:      pho <pho%pkgsrc.org@localhost>
date:      Tue Nov 30 12:34:24 2021 +0000

description:
Update to bindfs-1.15.1 from 1.8.4

ChangeLog is too long to paste here:
https://bindfs.org/docs/ChangeLog.utf8.txt

Note: On NetBSD, bindfs always maps the root directory "/" regardless
of what source directory specified, unless the -f (foreground) option
is given. The issue existed in 1.8.4 and I thought updating the
package could fix it, but it didn't. The problem was actually in
librefuse, which is now fixed in HEAD:
http://mail-index.netbsd.org/source-changes/2021/11/30/msg134159.html

diffstat:

 filesystems/fuse-bindfs/Makefile                   |  12 +++---
 filesystems/fuse-bindfs/distinfo                   |  11 +++--
 filesystems/fuse-bindfs/patches/patch-aa           |  22 -----------
 filesystems/fuse-bindfs/patches/patch-configure.ac |  42 ++++++++++++++++++++++
 filesystems/fuse-bindfs/patches/patch-src_bindfs.c |  35 ++++++++++++++++++
 5 files changed, 89 insertions(+), 33 deletions(-)

diffs (157 lines):

diff -r 8b4efe1c07f9 -r eb22000b0720 filesystems/fuse-bindfs/Makefile
--- a/filesystems/fuse-bindfs/Makefile  Tue Nov 30 11:26:45 2021 +0000
+++ b/filesystems/fuse-bindfs/Makefile  Tue Nov 30 12:34:24 2021 +0000
@@ -1,10 +1,9 @@
-# $NetBSD: Makefile,v 1.5 2017/12/24 09:49:30 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2021/11/30 12:34:24 pho Exp $
 
-DISTNAME=      bindfs-1.8.4
+DISTNAME=      bindfs-1.15.1
 PKGNAME=       fuse-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    filesystems
-MASTER_SITES=  http://bindfs.googlecode.com/files/
+MASTER_SITES=  https://bindfs.org/downloads/
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://bindfs.org/
@@ -13,9 +12,10 @@
 
 GNU_CONFIGURE= yes
 USE_LANGUAGES= c c++
-USE_TOOLS+=    autoconf gmake pkg-config
+USE_TOOLS+=    automake autoreconf gmake pkg-config
 
-CPPFLAGS.NetBSD+=      -D_NETBSD_SOURCE
+pre-configure:
+       cd ${WRKSRC} && autoreconf
 
 .include "../../mk/fuse.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 8b4efe1c07f9 -r eb22000b0720 filesystems/fuse-bindfs/distinfo
--- a/filesystems/fuse-bindfs/distinfo  Tue Nov 30 11:26:45 2021 +0000
+++ b/filesystems/fuse-bindfs/distinfo  Tue Nov 30 12:34:24 2021 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2021/10/26 10:25:26 nia Exp $
+$NetBSD: distinfo,v 1.5 2021/11/30 12:34:24 pho Exp $
 
-BLAKE2s (bindfs-1.8.4.tar.gz) = 80e066965eed55720f97c3d483895d1fb4ea03f7443cee2905e87cd92c979703
-SHA512 (bindfs-1.8.4.tar.gz) = ff65a4cfe5d05ac43ca19e8b54a9d17e0e7202b8c46082251dcf4805dc28a41865014dd9cde1367cd66ca1cc171f81e3f79eb643fb206cbaf0cbb4353985809c
-Size (bindfs-1.8.4.tar.gz) = 305725 bytes
-SHA1 (patch-aa) = 72053cb69ae5002c4b6cae562e3331c566a6b392
+BLAKE2s (bindfs-1.15.1.tar.gz) = 0aa3194987049c03e5cff3b816e14e8dab4d0b89de7e1b7fdeca54400b06e61a
+SHA512 (bindfs-1.15.1.tar.gz) = da9003f141b7aa2c23651b3b836b1d979bf1b19915f307c05e40ae6906aab738036cc8b5df6caeec158e4fa6b7bca71489ea7884ff1607c6fea72a603a048d59
+Size (bindfs-1.15.1.tar.gz) = 415676 bytes
+SHA1 (patch-configure.ac) = 2b3c89e80f96e70ab1f921b81fc99fef8307d3b3
+SHA1 (patch-src_bindfs.c) = 7daba2605ae0086933209d8b5ef0c88dccb3f9a0
diff -r 8b4efe1c07f9 -r eb22000b0720 filesystems/fuse-bindfs/patches/patch-aa
--- a/filesystems/fuse-bindfs/patches/patch-aa  Tue Nov 30 11:26:45 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-$NetBSD: patch-aa,v 1.1.1.1 2010/02/01 13:36:43 jmmv Exp $
-
---- configure.orig     2010-02-01 13:18:14.000000000 +0000
-+++ configure
-@@ -10322,7 +10322,7 @@ fi
- 
- 
- 
--if test x"$enable_debug" == "xyes" ; then
-+if test x"$enable_debug" = "xyes" ; then
-       CFLAGS="${CFLAGS} -g -O0 -DMALLOC_CHECK_=2"
- 
- $as_echo "#define BINDFS_DEBUG 1" >>confdefs.h
-@@ -10331,7 +10331,7 @@ else
-       CFLAGS="${CFLAGS} -O2"
- fi
- 
--if test x"$with_core_foundation" == "xyes" ; then
-+if test x"$with_core_foundation" = "xyes" ; then
-       { $as_echo "$as_me:${as_lineno-$LINENO}: Linking with Core Foundation" >&5
- $as_echo "$as_me: Linking with Core Foundation" >&6;}
-       LDFLAGS="${LDFLAGS} -framework CoreFoundation"
diff -r 8b4efe1c07f9 -r eb22000b0720 filesystems/fuse-bindfs/patches/patch-configure.ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-bindfs/patches/patch-configure.ac        Tue Nov 30 12:34:24 2021 +0000
@@ -0,0 +1,42 @@
+$NetBSD: patch-configure.ac,v 1.1 2021/11/30 12:34:24 pho Exp $
+
+* Fix shell portability.
+* Fix an incorrect logic to detect fuse >= 2.6.
+
+--- configure.ac.orig  2021-11-30 11:00:36.957203334 +0000
++++ configure.ac
+@@ -17,11 +17,11 @@ AC_ARG_WITH([fuse2],
+ AC_ARG_WITH([fuse3],
+     [AS_HELP_STRING([--with-fuse3], [link against libfuse 3.x (default: autodetect, preferring 3.x)])])
+ 
+-if test x"$enable_debug_output" == "xyes" ; then
++if test x"$enable_debug_output" = "xyes" ; then
+     AC_DEFINE([BINDFS_DEBUG], [1], [Define to 1 to enable debugging messages])
+ fi
+ 
+-if test x"$with_core_foundation" == "xyes" ; then
++if test x"$with_core_foundation" = "xyes" ; then
+     AC_MSG_NOTICE([Linking with Core Foundation])
+     LDFLAGS="${LDFLAGS} -framework CoreFoundation"
+ fi
+@@ -69,7 +69,7 @@ AC_DEFUN([CHECK_FUSE2],
+             AC_DEFINE([HAVE_FUSE_29], [1], [Have FUSE >= 2.9.0])
+             AC_DEFINE([FUSE_USE_VERSION], [26], [FUSE API VERSION = 2.6])
+         ],
+-        [PKG_CHECK_MODULES([fuse], [fuse >= 2.8.0],
++        [PKG_CHECK_MODULES([fuse], [fuse >= 2.6.0],
+             [
+                 AC_DEFINE([FUSE_USE_VERSION], [26], [FUSE API VERSION = 2.6])
+             ],
+@@ -88,9 +88,9 @@ AC_DEFUN([CHECK_FUSE3],
+     )]
+ )
+ 
+-AS_IF([test "x$with_fuse2" == "xyes"],
++AS_IF([test "x$with_fuse2" = "xyes"],
+     [CHECK_FUSE2([AC_MSG_ERROR([FUSE 2 not found])])],
+-    [AS_IF([test "x$with_fuse3" == "xyes"],
++    [AS_IF([test "x$with_fuse3" = "xyes"],
+         [CHECK_FUSE3([AC_MSG_ERROR([FUSE 3 not found])])],
+         [CHECK_FUSE3([CHECK_FUSE2([AC_MSG_ERROR([FUSE not found])])])]
+     )]
diff -r 8b4efe1c07f9 -r eb22000b0720 filesystems/fuse-bindfs/patches/patch-src_bindfs.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-bindfs/patches/patch-src_bindfs.c        Tue Nov 30 12:34:24 2021 +0000
@@ -0,0 +1,35 @@
+$NetBSD: patch-src_bindfs.c,v 1.1 2021/11/30 12:34:24 pho Exp $
+
+Fix compatibility with FUSE 2.6: ioctl() is not supported.
+
+--- src/bindfs.c.orig  2021-11-30 11:04:33.969893934 +0000
++++ src/bindfs.c
+@@ -1721,8 +1721,8 @@ static struct fuse_operations bindfs_ope
+ #if defined(HAVE_FUSE_29) || defined(HAVE_FUSE_3)
+     .lock       = bindfs_lock,
+     .flock      = bindfs_flock,
+-#endif
+     .ioctl      = bindfs_ioctl,
++#endif
+     .statfs     = bindfs_statfs,
+     .release    = bindfs_release,
+     .fsync      = bindfs_fsync,
+@@ -2843,10 +2843,18 @@ int main(int argc, char *argv[])
+     }
+ #endif
+ 
++#if defined(HAVE_FUSE_29) || defined(HAVE_FUSE_3)
+     /* Remove the ioctl implementation unless the user has enabled it */
+     if (!settings.enable_ioctl) {
+         bindfs_oper.ioctl = NULL;
+     }
++#else
++    if (settings.enable_ioctl) {
++        fprintf(stderr, "To use --enable-ioctl, bindfs must be "
++                        "compiled with FUSE 2.9.0 or newer.\n");
++        return 1;
++    }
++#endif
+ 
+     /* Remove/Ignore some special -o options */
+     args = filter_special_opts(&args);



Home | Main Index | Thread Index | Old Index