head 1.4; access; symbols pkgsrc-2013Q2:1.4.0.10 pkgsrc-2013Q2-base:1.4 pkgsrc-2012Q4:1.4.0.8 pkgsrc-2012Q4-base:1.4 pkgsrc-2011Q4:1.4.0.6 pkgsrc-2011Q4-base:1.4 pkgsrc-2011Q2:1.4.0.4 pkgsrc-2011Q2-base:1.4 pkgsrc-2009Q4:1.4.0.2 pkgsrc-2009Q4-base:1.4 pkgsrc-2008Q4:1.3.0.30 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.28 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.26 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.24 pkgsrc-2008Q2-base:1.3 cwrapper:1.3.0.22 pkgsrc-2008Q1:1.3.0.20 pkgsrc-2008Q1-base:1.3 pkgsrc-2007Q4:1.3.0.18 pkgsrc-2007Q4-base:1.3 pkgsrc-2007Q3:1.3.0.16 pkgsrc-2007Q3-base:1.3 pkgsrc-2007Q2:1.3.0.14 pkgsrc-2007Q2-base:1.3 pkgsrc-2007Q1:1.3.0.12 pkgsrc-2007Q1-base:1.3 pkgsrc-2006Q4:1.3.0.10 pkgsrc-2006Q4-base:1.3 pkgsrc-2006Q3:1.3.0.8 pkgsrc-2006Q3-base:1.3 pkgsrc-2006Q2:1.3.0.6 pkgsrc-2006Q2-base:1.3 pkgsrc-2006Q1:1.3.0.4 pkgsrc-2006Q1-base:1.3 pkgsrc-2005Q4:1.3.0.2 pkgsrc-2005Q4-base:1.3 pkgsrc-2005Q3:1.2.0.4 pkgsrc-2005Q3-base:1.2 pkgsrc-2005Q2:1.2.0.2 pkgsrc-2005Q2-base:1.2 pkgsrc-2005Q1:1.1.0.6 pkgsrc-2005Q1-base:1.1 pkgsrc-2004Q4:1.1.0.4 pkgsrc-2004Q4-base:1.1 pkgsrc-2004Q3:1.1.0.2 pkgsrc-2004Q3-base:1.1; locks; strict; comment @# @; 1.4 date 2009.02.09.21.09.21; author joerg; state dead; branches; next 1.3; 1.3 date 2005.11.08.18.14.49; author joerg; state Exp; branches; next 1.2; 1.2 date 2005.05.29.11.07.49; author minskim; state Exp; branches; next 1.1; 1.1 date 2004.08.29.10.44.19; author recht; state Exp; branches; next ; desc @@ 1.4 log @Remove Python 2.1 support. @ text @$NetBSD: patch-bc,v 1.3 2005/11/08 18:14:49 joerg Exp $ --- Lib/posixfile.py.orig 2001-04-10 10:44:33.000000000 -0500 +++ Lib/posixfile.py @@@@ -171,11 +171,11 @@@@ class _posixfile_: # 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', 'netbsd3','dragonfly1', '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', \ @@@@ -187,12 +187,12 @@@@ class _posixfile_: flock = fcntl.fcntl(self._file_.fileno(), cmd, flock) if '?' in how: - if sys.platform in ('netbsd1', + if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', '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) @ 1.3 log @Add DragonFly support. Use PTHREAD_* variables to find pthread_create and hope it doesn't break anything. @ text @d1 1 a1 1 $NetBSD: patch-bc,v 1.2 2005/05/29 11:07:49 minskim Exp $ @ 1.2 log @Teach about NetBSD 3.x. PKGREVISION will be bumped after another change. @ text @d1 1 a1 1 $NetBSD$ d10 1 a10 1 + if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', @ 1.1 log @Extend some checks to also test for netbsd2 as sys.platform. Bump PKGREVISIONS accordingly. @ text @d3 3 a5 3 --- Lib/posixfile.py.orig 2001-04-10 17:44:33.000000000 +0200 +++ Lib/posixfile.py 2004-08-28 12:10:29.000000000 +0200 @@@@ -171,11 +171,11 @@@@ d10 1 a10 1 + if sys.platform in ('netbsd1', 'netbsd2', d19 1 a19 1 @@@@ -187,12 +187,12 @@@@ d24 1 a24 1 + if sys.platform in ('netbsd1', 'netbsd2' @