summaryrefslogtreecommitdiff
path: root/lang/python21/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2003-04-15 16:52:28 +0000
committerdrochner <drochner@pkgsrc.org>2003-04-15 16:52:28 +0000
commitf9a261061eeb0dbc7320b1acb9426a28950e8118 (patch)
tree383bfe8662eb6e01b7c7a2e3c053b28c439ef9c6 /lang/python21/patches
parent3ba46f60c48b9fdaf4668eb38c24cc04a3b20310 (diff)
downloadpkgsrc-f9a261061eeb0dbc7320b1acb9426a28950e8118.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/patches')
-rw-r--r--lang/python21/patches/patch-bb13
1 files changed, 13 insertions, 0 deletions
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: