head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.6 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.4 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.2 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.1.1.1.0.40 pkgsrc-2011Q3-base:1.1.1.1 pkgsrc-2011Q2:1.1.1.1.0.38 pkgsrc-2011Q2-base:1.1.1.1 pkgsrc-2011Q1:1.1.1.1.0.36 pkgsrc-2011Q1-base:1.1.1.1 pkgsrc-2010Q4:1.1.1.1.0.34 pkgsrc-2010Q4-base:1.1.1.1 pkgsrc-2010Q3:1.1.1.1.0.32 pkgsrc-2010Q3-base:1.1.1.1 pkgsrc-2010Q2:1.1.1.1.0.30 pkgsrc-2010Q2-base:1.1.1.1 pkgsrc-2010Q1:1.1.1.1.0.28 pkgsrc-2010Q1-base:1.1.1.1 pkgsrc-2009Q4:1.1.1.1.0.26 pkgsrc-2009Q4-base:1.1.1.1 pkgsrc-2009Q3:1.1.1.1.0.24 pkgsrc-2009Q3-base:1.1.1.1 pkgsrc-2009Q2:1.1.1.1.0.22 pkgsrc-2009Q2-base:1.1.1.1 pkgsrc-2009Q1:1.1.1.1.0.20 pkgsrc-2009Q1-base:1.1.1.1 pkgsrc-2008Q4:1.1.1.1.0.18 pkgsrc-2008Q4-base:1.1.1.1 pkgsrc-2008Q3:1.1.1.1.0.16 pkgsrc-2008Q3-base:1.1.1.1 cube-native-xorg:1.1.1.1.0.14 cube-native-xorg-base:1.1.1.1 pkgsrc-2008Q2:1.1.1.1.0.12 pkgsrc-2008Q2-base:1.1.1.1 cwrapper:1.1.1.1.0.10 pkgsrc-2008Q1:1.1.1.1.0.8 pkgsrc-2008Q1-base:1.1.1.1 pkgsrc-2007Q4:1.1.1.1.0.6 pkgsrc-2007Q4-base:1.1.1.1 pkgsrc-2007Q3:1.1.1.1.0.4 pkgsrc-2007Q3-base:1.1.1.1 pkgsrc-2007Q2:1.1.1.1.0.2 pkgsrc-2007Q2-base:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.2 date 2011.12.16.00.50.47; author gdt; state dead; branches; next 1.1; 1.1 date 2007.05.04.19.51.52; author agc; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2007.05.04.19.51.52; author agc; state Exp; branches; next ; desc @@ 1.2 log @Update to 0.2.1. Note in DESCR that this is what GNU/Linux calls "fuse-python". Upstream does not provide NEWS. Perusal of Changelog leads to the conclusion that there are many bugfixes and minor enhancements, but no major changes. (Tested with "bup fuse" and ../fuse-wikipediafs on NetBSD 5.1_STABLE.) @ text @$NetBSD: patch-aa,v 1.1 2007/05/04 19:51:52 agc Exp $ --- fuseparts/_fusemodule.c 2007/04/29 20:39:47 1.1 +++ fuseparts/_fusemodule.c 2007/04/29 20:42:20 @@@@ -149,9 +149,15 @@@@ * and we don't use autotools so we just dare to throw these in as is. */ - fetchattr_soft(st, st_rdev); +#ifdef __NetBSD__ + st->st_blocks = (st->st_size + 511) / 512; + st->st_blksize = 4096; + st->st_rdev = st->st_dev; +#else fetchattr_soft_d(st, st_blksize, 4096); fetchattr_soft_d(st, st_blocks, (st->st_size + 511)/512); + fetchattr_soft(st, st_rdev); +#endif #undef fetchattr_soft #undef fetchattr_soft_d @@@@ -707,6 +713,9 @@@@ static int pyfuse_loop_mt(struct fuse *f) { +#ifdef __NetBSD__ + return fuse_loop(f); +#else PyInterpreterState *interp; PyThreadState *save; int err; @@@@ -723,6 +732,7 @@@@ PyEval_RestoreThread(save); return(err); +#endif } static struct fuse *fuse=NULL; @@@@ -916,7 +926,11 @@@@ path = PyString_AsString(arg1); +#ifdef __NetBSD__ + err = 0; +#else err = fuse_invalidate(fuse, path); +#endif ret = PyInt_FromLong(err); @ 1.1 log @Initial revision @ text @d1 1 a1 1 $NetBSD$ @ 1.1.1.1 log @Initial import of python bindings (version 0.2pre1) for fuse and refuse into the Packages Collection. Python bindings for the FUSE and refuse interfaces. FUSE allows file sytsem operations to take place at user level, rather than in the kernel. Refuse is a BSD-licensed re-implementation of fuse, running on top of the puffs functionality. This package provides a python language interface to the FUSE interface. To achieve backwards compatibility with previous versions of the fuse bindings for python, set the environment variable FUSE_PYTHON_COMPAT=0.1 @ text @@