pkgsrc-Changes archive

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

CVS commit: pkgsrc/filesystems/fuse-encfs



Module Name:    pkgsrc
Committed By:   pho
Date:           Sat Jan 22 18:32:47 UTC 2022

Modified Files:
        pkgsrc/filesystems/fuse-encfs: Makefile distinfo
        pkgsrc/filesystems/fuse-encfs/patches: patch-encfs_FileUtils.cpp
            patch-encfs_main.cpp

Log Message:
Conditionalise workarounds for old NetBSD librefuse


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 pkgsrc/filesystems/fuse-encfs/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/filesystems/fuse-encfs/distinfo
cvs rdiff -u -r1.3 -r1.4 \
    pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp
cvs rdiff -u -r1.5 -r1.6 \
    pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_main.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/filesystems/fuse-encfs/Makefile
diff -u pkgsrc/filesystems/fuse-encfs/Makefile:1.20 pkgsrc/filesystems/fuse-encfs/Makefile:1.21
--- pkgsrc/filesystems/fuse-encfs/Makefile:1.20 Wed Dec  1 04:45:51 2021
+++ pkgsrc/filesystems/fuse-encfs/Makefile      Sat Jan 22 18:32:47 2022
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.20 2021/12/01 04:45:51 pho Exp $
+# $NetBSD: Makefile,v 1.21 2022/01/22 18:32:47 pho Exp $
 #
 
 GITHUB_PROJECT=        encfs
 GITHUB_TAG=    v${PKGVERSION_NOREV}
 DISTNAME=      encfs-1.9.5
+PKGREVISION=   1
 PKGNAME=       fuse-${DISTNAME}
 CATEGORIES=    filesystems
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=vgough/}

Index: pkgsrc/filesystems/fuse-encfs/distinfo
diff -u pkgsrc/filesystems/fuse-encfs/distinfo:1.14 pkgsrc/filesystems/fuse-encfs/distinfo:1.15
--- pkgsrc/filesystems/fuse-encfs/distinfo:1.14 Wed Dec  1 04:45:51 2021
+++ pkgsrc/filesystems/fuse-encfs/distinfo      Sat Jan 22 18:32:47 2022
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.14 2021/12/01 04:45:51 pho Exp $
+$NetBSD: distinfo,v 1.15 2022/01/22 18:32:47 pho Exp $
 
 BLAKE2s (encfs-1.9.5.tar.gz) = 58fea7cdf47aadffcfbf315f5881ceb77da74e07a964042d7d3a7e8587f13362
 SHA512 (encfs-1.9.5.tar.gz) = 036e08ca9bc13b44742aebdee49bf7029d0c6b7e59cd6dedc9a09da2af99482859f6a79eddf07e3db296edaf45aafc48fe08488840e765682e9b192dd6ae4c46
 Size (encfs-1.9.5.tar.gz) = 2798888 bytes
 SHA1 (patch-encfs_DirNode.cpp) = 960480ee442f534357e3325c5001b6056b2338a6
-SHA1 (patch-encfs_FileUtils.cpp) = 527cd0ee50139a9fc8bb126dfe818a7624dac3dd
-SHA1 (patch-encfs_main.cpp) = 8c1b9f6fa819062928171802f94aac21565c2798
+SHA1 (patch-encfs_FileUtils.cpp) = 05e67084abb853d8d01f6da2079994689722a343
+SHA1 (patch-encfs_main.cpp) = d1215725edce4b6ec766e6b96f46acb441dd4088

Index: pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp
diff -u pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp:1.3 pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp:1.4
--- pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp:1.3 Wed Dec  1 04:45:52 2021
+++ pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp     Sat Jan 22 18:32:47 2022
@@ -1,10 +1,9 @@
-$NetBSD: patch-encfs_FileUtils.cpp,v 1.3 2021/12/01 04:45:52 pho Exp $
+$NetBSD: patch-encfs_FileUtils.cpp,v 1.4 2022/01/22 18:32:47 pho Exp $
 
-NetBSD ReFUSE doesn't have the fuse_unmount from FUSE 2.2 - FUSE 2.9.
+NetBSD ReFUSE didn't have the fuse_unmount from FUSE 2.2 - FUSE 2.9.
 Workaround by using the version belonging to FUSE >= 3.0.
 
-This might be a temporal aberration: NetBSD ReFUSE had the newer FUSE
-API before upstream FUSE did.
+Already fixed in HEAD.
 
 --- encfs/FileUtils.cpp.orig   2018-04-27 08:52:22.000000000 +0000
 +++ encfs/FileUtils.cpp
@@ -12,7 +11,7 @@ API before upstream FUSE did.
  
  void unmountFS(const char *mountPoint) {
    // fuse_unmount returns void, is assumed to succeed
-+#if defined(__NetBSD__)
++#if defined(__NetBSD__) && FUSE_H_ < 20211204
 +  fuse_unmount(fuse_get_context()->fuse);
 +#else
    fuse_unmount(mountPoint, nullptr);

Index: pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_main.cpp
diff -u pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_main.cpp:1.5 pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_main.cpp:1.6
--- pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_main.cpp:1.5      Wed Dec  1 04:45:52 2021
+++ pkgsrc/filesystems/fuse-encfs/patches/patch-encfs_main.cpp  Sat Jan 22 18:32:47 2022
@@ -1,10 +1,6 @@
-$NetBSD: patch-encfs_main.cpp,v 1.5 2021/12/01 04:45:52 pho Exp $
+$NetBSD: patch-encfs_main.cpp,v 1.6 2022/01/22 18:32:47 pho Exp $
 
-Work around older FUSE API on NetBSD.
-  
-\todo Determine how to qualify this by version.
-\todo Enhance API in NetBSD.
-\todo File with encfs upstream.
+Work around older FUSE API on NetBSD. Already fixed in HEAD.
 
 --- encfs/main.cpp.orig        2018-04-27 08:52:22.000000000 +0000
 +++ encfs/main.cpp
@@ -12,7 +8,7 @@ Work around older FUSE API on NetBSD.
    auto *ctx = (EncFS_Context *)fuse_get_context()->private_data;
  
    // set fuse connection options
-+#ifndef __NetBSD__ /* XXX FUSE API too old */
++#if !defined(__NetBSD__) || FUSE_H_ >= 20211204 /* XXX FUSE API too old */
    conn->async_read = 1u;
 +#endif
  



Home | Main Index | Thread Index | Old Index