head 1.3; access; symbols pkgsrc-2013Q2:1.3.0.18 pkgsrc-2013Q2-base:1.3 pkgsrc-2012Q4:1.3.0.16 pkgsrc-2012Q4-base:1.3 pkgsrc-2011Q4:1.3.0.14 pkgsrc-2011Q4-base:1.3 pkgsrc-2011Q2:1.3.0.12 pkgsrc-2011Q2-base:1.3 pkgsrc-2009Q4:1.3.0.10 pkgsrc-2009Q4-base:1.3 pkgsrc-2008Q4:1.3.0.8 pkgsrc-2008Q4-base:1.3 pkgsrc-2008Q3:1.3.0.6 pkgsrc-2008Q3-base:1.3 cube-native-xorg:1.3.0.4 cube-native-xorg-base:1.3 pkgsrc-2008Q2:1.3.0.2 pkgsrc-2008Q2-base:1.3 pkgsrc-2008Q1:1.2.0.18 pkgsrc-2008Q1-base:1.2 pkgsrc-2007Q4:1.2.0.16 pkgsrc-2007Q4-base:1.2 pkgsrc-2007Q3:1.2.0.14 pkgsrc-2007Q3-base:1.2 pkgsrc-2007Q2:1.2.0.12 pkgsrc-2007Q2-base:1.2 pkgsrc-2007Q1:1.2.0.10 pkgsrc-2007Q1-base:1.2 pkgsrc-2006Q4:1.2.0.8 pkgsrc-2006Q4-base:1.2 pkgsrc-2006Q3:1.2.0.6 pkgsrc-2006Q3-base:1.2 pkgsrc-2006Q2:1.2.0.4 pkgsrc-2006Q2-base:1.2 pkgsrc-2006Q1:1.2.0.2 pkgsrc-2006Q1-base:1.2 pkgsrc-2005Q4:1.1.0.12 pkgsrc-2005Q4-base:1.1 pkgsrc-2005Q3:1.1.0.10 pkgsrc-2005Q3-base:1.1 pkgsrc-2005Q2:1.1.0.8 pkgsrc-2005Q2-base:1.1 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.3 date 2008.04.25.16.11.13; author tnn; state dead; branches; next 1.2; 1.2 date 2006.01.09.21.22.57; author joerg; state Exp; branches; next 1.1; 1.1 date 2004.08.29.10.44.19; author recht; state Exp; branches; next ; desc @@ 1.3 log @De-orbit support for python 2.0 and python 2.2 under the "three major releases is enough" rule of thumb. (python 2.3 was released 5 years ago.) Keep python 1.5 and 2.1 though, because there are a handful of packages that still need them. @ text @$NetBSD: patch-bc,v 1.2 2006/01/09 21:22:57 joerg Exp $ --- Lib/posixfile.py.orig 2001-10-24 22:03:35.000000000 +0000 +++ Lib/posixfile.py @@@@ -182,11 +182,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', - 'openbsd2', + if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', 'netbsd4', + 'openbsd2', 'dragonfly1', '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 @@@@ class _posixfile_: 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) @ 1.2 log @Add DragonFly support. While here, add netbsd4 for future joy. Use PTHREAD_* instead of hardcoded -lpthread. @ text @d1 1 a1 1 $NetBSD$ @ 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-10-25 00:03:35.000000000 +0200 +++ Lib/posixfile.py 2004-08-28 12:02:35.000000000 +0200 @@@@ -182,11 +182,11 @@@@ d10 3 a12 2 + if sys.platform in ('netbsd1', 'netbsd2', 'openbsd2', d20 1 a20 1 @@@@ -198,12 +198,12 @@@@ @