pkgsrc-Changes archive

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

CVS commit: pkgsrc/filesystems/fuse-pcachefs



Module Name:    pkgsrc
Committed By:   pho
Date:           Sun Jan  9 20:06:05 UTC 2022

Modified Files:
        pkgsrc/filesystems/fuse-pcachefs: Makefile distinfo
Added Files:
        pkgsrc/filesystems/fuse-pcachefs/patches: patch-pcachefs_pcachefs.py

Log Message:
Fix a runtime failure on NetBSD


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/filesystems/fuse-pcachefs/Makefile
cvs rdiff -u -r1.4 -r1.5 pkgsrc/filesystems/fuse-pcachefs/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/filesystems/fuse-pcachefs/patches/patch-pcachefs_pcachefs.py

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-pcachefs/Makefile
diff -u pkgsrc/filesystems/fuse-pcachefs/Makefile:1.13 pkgsrc/filesystems/fuse-pcachefs/Makefile:1.14
--- pkgsrc/filesystems/fuse-pcachefs/Makefile:1.13      Wed Jan  5 15:41:10 2022
+++ pkgsrc/filesystems/fuse-pcachefs/Makefile   Sun Jan  9 20:06:05 2022
@@ -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

Index: pkgsrc/filesystems/fuse-pcachefs/distinfo
diff -u pkgsrc/filesystems/fuse-pcachefs/distinfo:1.4 pkgsrc/filesystems/fuse-pcachefs/distinfo:1.5
--- pkgsrc/filesystems/fuse-pcachefs/distinfo:1.4       Wed Dec  1 16:59:49 2021
+++ pkgsrc/filesystems/fuse-pcachefs/distinfo   Sun Jan  9 20:06:05 2022
@@ -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

Added files:

Index: pkgsrc/filesystems/fuse-pcachefs/patches/patch-pcachefs_pcachefs.py
diff -u /dev/null pkgsrc/filesystems/fuse-pcachefs/patches/patch-pcachefs_pcachefs.py:1.1
--- /dev/null   Sun Jan  9 20:06:05 2022
+++ pkgsrc/filesystems/fuse-pcachefs/patches/patch-pcachefs_pcachefs.py Sun Jan  9 20:06:05 2022
@@ -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