pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/filesystems/fuse-pcachefs Fix a runtime failure on NetBSD
details: https://anonhg.NetBSD.org/pkgsrc/rev/e359556c73cc
branches: trunk
changeset: 371360:e359556c73cc
user: pho <pho%pkgsrc.org@localhost>
date: Sun Jan 09 20:06:05 2022 +0000
description:
Fix a runtime failure on NetBSD
diffstat:
filesystems/fuse-pcachefs/Makefile | 4 +-
filesystems/fuse-pcachefs/distinfo | 3 +-
filesystems/fuse-pcachefs/patches/patch-pcachefs_pcachefs.py | 17 ++++++++++++
3 files changed, 21 insertions(+), 3 deletions(-)
diffs (45 lines):
diff -r 7e518eb282b4 -r e359556c73cc filesystems/fuse-pcachefs/Makefile
--- a/filesystems/fuse-pcachefs/Makefile Sun Jan 09 19:55:13 2022 +0000
+++ b/filesystems/fuse-pcachefs/Makefile Sun Jan 09 20:06:05 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.13 2022/01/05 15:41:10 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2022/01/09 20:06:05 pho Exp $
DISTNAME= fuse-pcachefs-0.3
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= filesystems
MASTER_SITES= ${MASTER_SITE_GITHUB:=ibizaman/}
GITHUB_PROJECT= pcachefs
diff -r 7e518eb282b4 -r e359556c73cc filesystems/fuse-pcachefs/distinfo
--- a/filesystems/fuse-pcachefs/distinfo Sun Jan 09 19:55:13 2022 +0000
+++ b/filesystems/fuse-pcachefs/distinfo Sun Jan 09 20:06:05 2022 +0000
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.4 2021/12/01 16:59:49 pho Exp $
+$NetBSD: distinfo,v 1.5 2022/01/09 20:06:05 pho Exp $
BLAKE2s (fuse-pcachefs-0.3.tar.gz) = 46fba54dc6f2c2cc451c667cadc8686c178b4b09552730b2e9edc2f3417f4027
SHA512 (fuse-pcachefs-0.3.tar.gz) = 2c0059e716a8e0b4334018bf366796ea95c6a663b12d0f3c76e38b93a90b0ee698f5c0456523a350cb9eeedd03df02a4471fe66d9a425df41305de8bf5105d5c
Size (fuse-pcachefs-0.3.tar.gz) = 16571 bytes
+SHA1 (patch-pcachefs_pcachefs.py) = bfcde02016c9315fd9a26ab997a253974e14f3c1
diff -r 7e518eb282b4 -r e359556c73cc filesystems/fuse-pcachefs/patches/patch-pcachefs_pcachefs.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/filesystems/fuse-pcachefs/patches/patch-pcachefs_pcachefs.py Sun Jan 09 20:06:05 2022 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-pcachefs_pcachefs.py,v 1.1 2022/01/09 20:06:05 pho Exp $
+
+st_rdev becomes -1 on NetBSD but returning a negative value causes
+fuse-bindings to fail with EINVAL.
+
+--- pcachefs/pcachefs.py.orig 2022-01-09 19:58:24.874241701 +0000
++++ pcachefs/pcachefs.py
+@@ -60,7 +60,8 @@ class FuseStat(fuse.Stat):
+ self.st_ino = st.st_ino
+ self.st_uid = st.st_uid
+
+- self.st_rdev = st.st_rdev
++ if st.st_rdev >= 0:
++ self.st_rdev = st.st_rdev
+ self.st_blksize = st.st_blksize
+
+ def __repr__(self):
Home |
Main Index |
Thread Index |
Old Index