summaryrefslogtreecommitdiff
path: root/lang/python21
diff options
context:
space:
mode:
authordrochner <drochner>2003-04-15 16:52:28 +0000
committerdrochner <drochner>2003-04-15 16:52:28 +0000
commit4f1e69694ee8bd7c412bfeb5163bf685b28fa045 (patch)
tree383bfe8662eb6e01b7c7a2e3c053b28c439ef9c6 /lang/python21
parent9e9d878201cbb4359caf07cf30aeed91d5b36c73 (diff)
downloadpkgsrc-4f1e69694ee8bd7c412bfeb5163bf685b28fa045.tar.gz
Make the fcntl(F_WRLCK) selftest work on alpha etc here as well - not as
clean as in the Python-2.2 version because 2.1 doesn't have a "long long" for struct packing, but good enough because these fields are "0" anyway.
Diffstat (limited to 'lang/python21')
-rw-r--r--lang/python21/distinfo3
-rw-r--r--lang/python21/patches/patch-bb13
2 files changed, 15 insertions, 1 deletions
diff --git a/lang/python21/distinfo b/lang/python21/distinfo
index 434b564953d..4244e153f67 100644
--- a/lang/python21/distinfo
+++ b/lang/python21/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2003/02/11 17:52:50 drochner Exp $
+$NetBSD: distinfo,v 1.10 2003/04/15 16:52:29 drochner Exp $
SHA1 (Python-2.1.3.tgz) = 7042a5c5fd60d334c0ac227885d68a4c305713b4
Size (Python-2.1.3.tgz) = 6194432 bytes
@@ -9,3 +9,4 @@ SHA1 (patch-ad) = 769bcd7803723c8d538a74173792ffcc491fa414
SHA1 (patch-ah) = 637dfe0cb4d031760f1085fb7921c0ae77158221
SHA1 (patch-ai) = 6420f2994109b8cce55674ea14d7a974f9e039c6
SHA1 (patch-aj) = ca232f769b57f617496f5c8701a0a32fe55f1fd9
+SHA1 (patch-bb) = d70f1c25051d121d33934fa8715332c1d1caff04
diff --git a/lang/python21/patches/patch-bb b/lang/python21/patches/patch-bb
new file mode 100644
index 00000000000..f23f603c229
--- /dev/null
+++ b/lang/python21/patches/patch-bb
@@ -0,0 +1,13 @@
+$NetBSD: patch-bb,v 1.1 2003/04/15 16:52:28 drochner Exp $
+
+--- Lib/test/test_fcntl.py.orig 2003-04-15 15:46:49.000000000 +0200
++++ Lib/test/test_fcntl.py 2003-04-15 15:48:42.000000000 +0200
+@@ -20,7 +20,7 @@
+ 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5',
+ 'bsdos2', 'bsdos3', 'bsdos4',
+ 'openbsd', 'openbsd2'):
+- lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, FCNTL.F_WRLCK, 0)
++ lockdata = struct.pack('ixxxxixxxxihh', 0, 0, 0, FCNTL.F_WRLCK, 0)
+ elif sys.platform in ['aix3', 'aix4', 'hp-uxB', 'unixware7']:
+ lockdata = struct.pack('hhlllii', FCNTL.F_WRLCK, 0, 0, 0, 0, 0, 0)
+ else: