Date: Wed, 9 Sep 2009 03:20:38 GMT From: Wen Heping <wenheping@gmail.com> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/138647: [NEW PORT]devel/py-lockfile:Platform-independent file locking module Message-ID: <200909090320.n893Kcji043347@www.freebsd.org> Resent-Message-ID: <200909090330.n893U2Bn097373@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 138647 >Category: ports >Synopsis: [NEW PORT]devel/py-lockfile:Platform-independent file locking module >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Sep 09 03:30:02 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Wen Heping >Release: FreeBSD 8.0-Current >Organization: ChangAn Middle School >Environment: FreeBSD fb8.wenjing.com 8.0-CURRENT FreeBSD 8.0-CURRENT #3: Thu Sep 3 16:55:45 HKT 2009 root@fb8.wenjing.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: The lockfile module exports a FileLock class which provides a simple API for locking files. Unlike the Windows msvcrt.locking function, the Unix fcntl.flock, fcntl.lockf and the deprecated posixfile module, the API is identical across both Unix (including Linux and Mac) and Windows platforms. The lock mechanism relies on the atomic nature of the link (on Unix) and mkdir (on Windows) system calls. WWW: http://pypi.python.org/pypi/lockfile/ >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # py-lockfile # py-lockfile/Makefile # py-lockfile/pkg-plist # py-lockfile/pkg-descr # py-lockfile/distinfo # echo c - py-lockfile mkdir -p py-lockfile > /dev/null 2>&1 echo x - py-lockfile/Makefile sed 's/^X//' >py-lockfile/Makefile << 'afc1b8ce82bf77937cb4562bd0e39049' X# New ports collection makefile for: lockfile X# Date created: 4th Sep, 2009 X# Whom: Wen Heping <wenheping@gmail.com> X# X# $FreeBSD$ X# X XPORTNAME= lockfile XPORTVERSION= 0.8 XCATEGORIES= devel python XMASTER_SITES= http://smontanaro.dyndns.org/python/ XPKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} X XMAINTAINER= wenheping@gmail.com XCOMMENT= Platform-independent file locking module X XUSE_PYTHON= yes XUSE_PYDISTUTILS= yes X X.include <bsd.port.mk> afc1b8ce82bf77937cb4562bd0e39049 echo x - py-lockfile/pkg-plist sed 's/^X//' >py-lockfile/pkg-plist << '784ab84f256d20b57e149dbac0c29f75' X%%PYTHON_SITELIBDIR%%/lockfile.py X%%PYTHON_SITELIBDIR%%/lockfile.pyc X%%PYTHON_SITELIBDIR%%/lockfile.pyo 784ab84f256d20b57e149dbac0c29f75 echo x - py-lockfile/pkg-descr sed 's/^X//' >py-lockfile/pkg-descr << '8f6956258261e77879e049b2d3137c9f' XThe lockfile module exports a FileLock class which provides a simple XAPI for locking files. Unlike the Windows msvcrt.locking function, the XUnix fcntl.flock, fcntl.lockf and the deprecated posixfile module, the XAPI is identical across both Unix (including Linux and Mac) and Windows Xplatforms. The lock mechanism relies on the atomic nature of the link X(on Unix) and mkdir (on Windows) system calls. X XWWW: http://pypi.python.org/pypi/lockfile/ 8f6956258261e77879e049b2d3137c9f echo x - py-lockfile/distinfo sed 's/^X//' >py-lockfile/distinfo << '98f9574eb2fa11dabc7c7be443aeb584' XMD5 (lockfile-0.8.tar.gz) = 2d515e19eb6f69d6ed711cbbafdec7ef XSHA256 (lockfile-0.8.tar.gz) = e6e20ec66ceaea2cf81c675216d68f11b3d15a855fe6c64a26ef983b399afd7a XSIZE (lockfile-0.8.tar.gz) = 8825 98f9574eb2fa11dabc7c7be443aeb584 exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909090320.n893Kcji043347>