summaryrefslogtreecommitdiff
path: root/lang/python22-pth
diff options
context:
space:
mode:
authorrecht <recht@pkgsrc.org>2004-08-29 10:44:19 +0000
committerrecht <recht@pkgsrc.org>2004-08-29 10:44:19 +0000
commita269d5cc93326bc00d2934b57784ba23cca4d188 (patch)
treeca8119df8aa952b5ba6c2beffb947f3f55c66466 /lang/python22-pth
parentd5e5eb260ebe004bc1c1d957182a34e390d2fb09 (diff)
downloadpkgsrc-a269d5cc93326bc00d2934b57784ba23cca4d188.tar.gz
Extend some checks to also test for netbsd2 as sys.platform.
Bump PKGREVISIONS accordingly.
Diffstat (limited to 'lang/python22-pth')
-rw-r--r--lang/python22-pth/Makefile4
-rw-r--r--lang/python22-pth/distinfo5
-rw-r--r--lang/python22-pth/patches/patch-bb13
-rw-r--r--lang/python22-pth/patches/patch-bc33
4 files changed, 47 insertions, 8 deletions
diff --git a/lang/python22-pth/Makefile b/lang/python22-pth/Makefile
index cc03bb78b5a..009527bcdd7 100644
--- a/lang/python22-pth/Makefile
+++ b/lang/python22-pth/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.13 2004/04/23 01:25:09 danw Exp $
+# $NetBSD: Makefile,v 1.14 2004/08/29 10:44:19 recht Exp $
#
PKGNAME= python22-pth-2.2.3
-PKGREVISION= 2
+PKGREVISION= 3
PTHREAD_OPTS= require
.include "../../mk/pthread.buildlink3.mk"
diff --git a/lang/python22-pth/distinfo b/lang/python22-pth/distinfo
index e76f0030758..58d7cb6588d 100644
--- a/lang/python22-pth/distinfo
+++ b/lang/python22-pth/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2004/05/16 20:01:59 minskim Exp $
+$NetBSD: distinfo,v 1.6 2004/08/29 10:44:19 recht Exp $
SHA1 (Python-2.2.3.tgz) = 177d587e77e0eaa14131ab0d0d0b470777de4400
Size (Python-2.2.3.tgz) = 6709556 bytes
@@ -11,4 +11,5 @@ SHA1 (patch-ah) = b1ef2e68cc8037f38e46007c6c65389e91a429fd
SHA1 (patch-ai) = ae1d8a7886604f9e973f4430f9c673a575452170
SHA1 (patch-aj) = ccf82a79c38f848d31f5193b561be5a44481fedc
SHA1 (patch-ba) = 5e47b2e75ea40682216e42fbf8b971432836afdc
-SHA1 (patch-bb) = 238f713b049fe2d9cd7e1142dfd0d8c32a53982e
+SHA1 (patch-bb) = 389c439e8031257ca997455e10c8bd327b14638a
+SHA1 (patch-bc) = 9fbe77ff35519a290ef1f70fcaa72a60009a36a1
diff --git a/lang/python22-pth/patches/patch-bb b/lang/python22-pth/patches/patch-bb
index 5bf77cd556d..23b069f7509 100644
--- a/lang/python22-pth/patches/patch-bb
+++ b/lang/python22-pth/patches/patch-bb
@@ -1,8 +1,13 @@
-$NetBSD: patch-bb,v 1.1 2003/04/08 18:32:59 drochner Exp $
+$NetBSD: patch-bb,v 1.2 2004/08/29 10:44:19 recht Exp $
---- Lib/test/test_fcntl.py.orig Tue Apr 8 16:07:57 2003
-+++ Lib/test/test_fcntl.py Tue Apr 8 16:08:04 2003
-@@ -20,7 +20,7 @@
+--- Lib/test/test_fcntl.py.orig 2002-08-23 18:06:46.000000000 +0200
++++ Lib/test/test_fcntl.py 2004-08-28 12:01:15.000000000 +0200
+@@ -16,11 +16,11 @@
+ else:
+ start_len = "qq"
+
+-if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin',
++if sys.platform in ('netbsd1', 'netbsd2', 'Darwin1.2', 'darwin',
'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
'bsdos2', 'bsdos3', 'bsdos4',
'openbsd', 'openbsd2', 'openbsd3'):
diff --git a/lang/python22-pth/patches/patch-bc b/lang/python22-pth/patches/patch-bc
new file mode 100644
index 00000000000..2f292e310a4
--- /dev/null
+++ b/lang/python22-pth/patches/patch-bc
@@ -0,0 +1,33 @@
+$NetBSD: patch-bc,v 1.1 2004/08/29 10:44:19 recht Exp $
+
+--- Lib/posixfile.py.orig 2001-10-25 00:03:35.000000000 +0200
++++ Lib/posixfile.py 2004-08-28 12:02:35.000000000 +0200
+@@ -182,11 +182,11 @@
+ # Hack by davem@magnet.com to get locking to go on freebsd;
+ # additions for AIX by Vladimir.Marangozov@imag.fr
+ import sys, os
+- if sys.platform in ('netbsd1',
++ if sys.platform in ('netbsd1', 'netbsd2',
+ 'openbsd2',
+ 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
+ 'bsdos2', 'bsdos3', 'bsdos4'):
+- flock = struct.pack('lxxxxlxxxxlhh', \
++ flock = struct.pack('qqihh', \
+ l_start, l_len, os.getpid(), l_type, l_whence)
+ elif sys.platform in ['aix3', 'aix4']:
+ flock = struct.pack('hhlllii', \
+@@ -198,12 +198,12 @@
+ flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
+
+ if '?' in how:
+- if sys.platform in ('netbsd1',
++ if sys.platform in ('netbsd1', 'netbsd2'
+ 'openbsd2',
+ 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
+ 'bsdos2', 'bsdos3', 'bsdos4'):
+ l_start, l_len, l_pid, l_type, l_whence = \
+- struct.unpack('lxxxxlxxxxlhh', flock)
++ struct.unpack('qqihh', flock)
+ elif sys.platform in ['aix3', 'aix4']:
+ l_type, l_whence, l_start, l_len, l_sysid, l_pid, l_vfs = \
+ struct.unpack('hhlllii', flock)