pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/filesystems/fuse-encfs Conditionalise workarounds for ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/e7c333461c53
branches: trunk
changeset: 372287:e7c333461c53
user: pho <pho%pkgsrc.org@localhost>
date: Sat Jan 22 18:32:47 2022 +0000
description:
Conditionalise workarounds for old NetBSD librefuse
diffstat:
filesystems/fuse-encfs/Makefile | 3 ++-
filesystems/fuse-encfs/distinfo | 6 +++---
filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp | 9 ++++-----
filesystems/fuse-encfs/patches/patch-encfs_main.cpp | 10 +++-------
4 files changed, 12 insertions(+), 16 deletions(-)
diffs (81 lines):
diff -r 6d46b476bf48 -r e7c333461c53 filesystems/fuse-encfs/Makefile
--- a/filesystems/fuse-encfs/Makefile Sat Jan 22 18:27:04 2022 +0000
+++ b/filesystems/fuse-encfs/Makefile Sat Jan 22 18:32:47 2022 +0000
@@ -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/}
diff -r 6d46b476bf48 -r e7c333461c53 filesystems/fuse-encfs/distinfo
--- a/filesystems/fuse-encfs/distinfo Sat Jan 22 18:27:04 2022 +0000
+++ b/filesystems/fuse-encfs/distinfo Sat Jan 22 18:32:47 2022 +0000
@@ -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
diff -r 6d46b476bf48 -r e7c333461c53 filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp
--- a/filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp Sat Jan 22 18:27:04 2022 +0000
+++ b/filesystems/fuse-encfs/patches/patch-encfs_FileUtils.cpp Sat Jan 22 18:32:47 2022 +0000
@@ -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 @@
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);
diff -r 6d46b476bf48 -r e7c333461c53 filesystems/fuse-encfs/patches/patch-encfs_main.cpp
--- a/filesystems/fuse-encfs/patches/patch-encfs_main.cpp Sat Jan 22 18:27:04 2022 +0000
+++ b/filesystems/fuse-encfs/patches/patch-encfs_main.cpp Sat Jan 22 18:32:47 2022 +0000
@@ -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 @@
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