Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified)) by mollari.NetBSD.org (Postfix) with ESMTPS id 8FFD41A923A for ; Sat, 22 Jan 2022 18:52:14 +0000 (UTC) Received: by mail.netbsd.org (Postfix, from userid 605) id C48C384D61; Sat, 22 Jan 2022 18:52:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 09C8284D36 for ; Sat, 22 Jan 2022 18:52:13 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id Za708KJhWDbI for ; Sat, 22 Jan 2022 18:52:12 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 1EBC284CFC for ; Sat, 22 Jan 2022 18:52:12 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 18753FB24; Sat, 22 Jan 2022 18:52:12 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_16428775325510" MIME-Version: 1.0 Date: Sat, 22 Jan 2022 18:52:12 +0000 From: "Masatake Daimon" Subject: CVS commit: pkgsrc/filesystems/py-fuse-bindings To: pkgsrc-changes@NetBSD.org Reply-To: pho@netbsd.org X-Mailer: log_accum Message-Id: <20220122185212.18753FB24@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_16428775325510 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: pho Date: Sat Jan 22 18:52:12 UTC 2022 Modified Files: pkgsrc/filesystems/py-fuse-bindings: Makefile distinfo pkgsrc/filesystems/py-fuse-bindings/patches: patch-fuseparts___fusemodule.c Log Message: Conditionalise workarounds for old NetBSD librefuse To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 pkgsrc/filesystems/py-fuse-bindings/Makefile cvs rdiff -u -r1.6 -r1.7 pkgsrc/filesystems/py-fuse-bindings/distinfo cvs rdiff -u -r1.2 -r1.3 \ pkgsrc/filesystems/py-fuse-bindings/patches/patch-fuseparts___fusemodule.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_16428775325510 Content-Disposition: inline Content-Length: 4550 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/filesystems/py-fuse-bindings/Makefile diff -u pkgsrc/filesystems/py-fuse-bindings/Makefile:1.22 pkgsrc/filesystems/py-fuse-bindings/Makefile:1.23 --- pkgsrc/filesystems/py-fuse-bindings/Makefile:1.22 Tue Jan 4 20:53:51 2022 +++ pkgsrc/filesystems/py-fuse-bindings/Makefile Sat Jan 22 18:52:11 2022 @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.22 2022/01/04 20:53:51 wiz Exp $ +# $NetBSD: Makefile,v 1.23 2022/01/22 18:52:11 pho Exp $ VERSION= 1.0.4 DISTNAME= fuse-python-${VERSION} PKGNAME= ${PYPKGPREFIX}-fuse-bindings-${VERSION} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= filesystems python MASTER_SITES= ${MASTER_SITE_PYPI:=f/fuse-python/} Index: pkgsrc/filesystems/py-fuse-bindings/distinfo diff -u pkgsrc/filesystems/py-fuse-bindings/distinfo:1.6 pkgsrc/filesystems/py-fuse-bindings/distinfo:1.7 --- pkgsrc/filesystems/py-fuse-bindings/distinfo:1.6 Tue Nov 30 05:25:57 2021 +++ pkgsrc/filesystems/py-fuse-bindings/distinfo Sat Jan 22 18:52:11 2022 @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.6 2021/11/30 05:25:57 pho Exp $ +$NetBSD: distinfo,v 1.7 2022/01/22 18:52:11 pho Exp $ BLAKE2s (fuse-python-1.0.4.tar.gz) = 32f3c1aeaf619880a0a366866b3e7650924b66eaafa187d6081dc3c94e1ac568 SHA512 (fuse-python-1.0.4.tar.gz) = 12696c78f75591e56e00ca1e2a93b214993b939cac2e7aae5dc6d8e69dc1aa034f0244a876c9ff2fb7e49b928b7ff84b281fd98d8f3fe67140be33d7ea5fea20 Size (fuse-python-1.0.4.tar.gz) = 49009 bytes -SHA1 (patch-fuseparts___fusemodule.c) = b41472254c8db0f996e2a6691dbc6cc317285544 +SHA1 (patch-fuseparts___fusemodule.c) = a928bc35a6bf70460c37fc3f9db1ff5edc1a1d01 Index: pkgsrc/filesystems/py-fuse-bindings/patches/patch-fuseparts___fusemodule.c diff -u pkgsrc/filesystems/py-fuse-bindings/patches/patch-fuseparts___fusemodule.c:1.2 pkgsrc/filesystems/py-fuse-bindings/patches/patch-fuseparts___fusemodule.c:1.3 --- pkgsrc/filesystems/py-fuse-bindings/patches/patch-fuseparts___fusemodule.c:1.2 Tue Nov 30 05:25:58 2021 +++ pkgsrc/filesystems/py-fuse-bindings/patches/patch-fuseparts___fusemodule.c Sat Jan 22 18:52:11 2022 @@ -1,13 +1,17 @@ -$NetBSD: patch-fuseparts___fusemodule.c,v 1.2 2021/11/30 05:25:58 pho Exp $ +$NetBSD: patch-fuseparts___fusemodule.c,v 1.3 2022/01/22 18:52:11 pho Exp $ -/* - * This patch is not known to be filed upstream. - * - * It adapts for NetBSD's (re)fuse implementation, specifically - * the lack of an attribute (rdev) - * the lack of fuse_loop_mt(), fuse_invalidate(), fuse_setup(), and fuse_teardown() - * the lack of polling support - */ +Hunk #0: + Workaround for NetBSD librefuse that had an API incompatible with + FUSE. Already fixed in HEAD. + +Hunk #1: + "os.stat()" doesn't always return st_rdev on all platforms. Do not + assume it exists. + +Hunk #2, #3: + The polling support has appeared on FUSE 2.8 but this module + defines FUSE_USE_VERSION to 26. ReFUSE doesn't expose the polling + API in this case. Eligible for upstreaming but haven't been done. --- fuseparts/_fusemodule.c.orig 2021-05-02 06:20:20.000000000 +0000 +++ fuseparts/_fusemodule.c @@ -15,19 +19,19 @@ $NetBSD: patch-fuseparts___fusemodule.c, to fix compilation errors on FreeBSD Mikhail Zakharov 2018.10.22 */ -+#if defined(__NetBSD__) ++#if defined(__NetBSD__) && FUSE_H_ < 20211204 + -+/* NetBSD librefuse doesn't support fuse_loop_mt() yet. Use the ++/* NetBSD librefuse didn't support fuse_loop_mt(). Use the + * single-threaded loop instead. This is harmless, only a missed + * opportunity for performance gain. */ +# define fuse_loop_mt(fuse) fuse_loop(fuse) + -+/* NetBSD librefuse doesn't support fuse_invalidate() yet. Make it ++/* NetBSD librefuse didn't support fuse_invalidate(). Make it + * no-op. This too is harmless because librefuse caches nothing + * atm. */ +# define fuse_invalidate(fuse, path) 0 + -+/* fuse_setup() has been superseded by fuse_new(). */ ++/* fuse_setup() had once been removed.. */ +#include +#include + @@ -131,7 +135,7 @@ $NetBSD: patch-fuseparts___fusemodule.c, + return fuse; +} + -+/* fuse_teardown() has been removed. */ ++/* fuse_teardown() had once been removed. */ +static void fuse_teardown( + struct fuse *fuse, + char *mountpoint __attribute__((__unused__))) @@ -140,7 +144,7 @@ $NetBSD: patch-fuseparts___fusemodule.c, + fuse_unmount(fuse); + fuse_destroy(fuse); +} -+#endif /* defined(__NetBSD__) */ ++#endif /* defined(__NetBSD__) && FUSE_H_ < 20211204 */ + #define _IOC_NRBITS 8 #define _IOC_TYPEBITS 8 --_----------=_16428775325510--