diff --git a/lang/python22/PLIST.DragonFly b/lang/python22/PLIST.DragonFly new file mode 100644 index 000000000000..e15635b841ba --- /dev/null +++ b/lang/python22/PLIST.DragonFly @@ -0,0 +1,4 @@ +@comment $NetBSD: PLIST.DragonFly,v 1.1 2006/01/09 21:22:57 joerg Exp $ +lib/python${PY_VER_SUFFIX}/lib-dynload/bsddb.so +lib/python${PY_VER_SUFFIX}/lib-dynload/dbm.so +lib/python${PY_VER_SUFFIX}/lib-dynload/nis.so diff --git a/lang/python22/distinfo b/lang/python22/distinfo index 902e9ecb08a2..a2e9f89fd74d 100644 --- a/lang/python22/distinfo +++ b/lang/python22/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.18 2005/11/16 19:18:58 joerg Exp $ +$NetBSD: distinfo,v 1.19 2006/01/09 21:22:57 joerg Exp $ SHA1 (Python-2.2.3.tgz) = 177d587e77e0eaa14131ab0d0d0b470777de4400 RMD160 (Python-2.2.3.tgz) = 3590f813582d65194b467f4ab450e360e35eb40e @@ -8,11 +8,13 @@ SHA1 (patch-ab) = aa06824d9f595a24aaddc96c83f31646f522ab09 SHA1 (patch-ac) = 533d4c75b12f83a60808b784b794e200c4fa363f SHA1 (patch-ae) = aefeec78e25631a6e9e2aa047dce12c9c522715e SHA1 (patch-af) = a2b23859941766319f638e40c49b5af3f504ef52 +SHA1 (patch-ag) = 08dad489e37199127f7f5cb0b4cc30f40a29fdda +SHA1 (patch-ah) = 22eca366910a007feeb6e5870eadb9f5024783b1 SHA1 (patch-ai) = 02f530a08fd8b61a696ae43ddabd7e86e4af7727 -SHA1 (patch-al) = e114392656703cfda734d3a9ae0072a9fbcc8123 +SHA1 (patch-al) = 9e1a69f0a1625054acc6ceed7242ac4d260c0948 SHA1 (patch-an) = 8e5b93bc65bb6d271e8e111949f715f7234f4371 -SHA1 (patch-bb) = f1c1ae2b8f654132a991a3ced9467cea45f0bef9 -SHA1 (patch-bc) = 9fbe77ff35519a290ef1f70fcaa72a60009a36a1 +SHA1 (patch-bb) = 59c5bdef790918e6653fce0cf8189f5c01e9d4d5 +SHA1 (patch-bc) = 376e5560f9f951d22ac371a8a5ab16c48d72404b SHA1 (patch-ea) = babfed4a0e5ae599441423a06622d4820ab237b1 SHA1 (patch-eb) = b72694d414b55d11e324cc76d6ed03b7c8e7630c SHA1 (patch-ec) = 3744382c5c58814129548f0529e3a5605c7ee0c8 diff --git a/lang/python22/patches/patch-ag b/lang/python22/patches/patch-ag new file mode 100644 index 000000000000..b0e86d159433 --- /dev/null +++ b/lang/python22/patches/patch-ag @@ -0,0 +1,31 @@ +$NetBSD: patch-ag,v 1.1 2006/01/09 21:22:57 joerg Exp $ + +--- Modules/fpectlmodule.c.orig 2006-01-09 21:12:40.000000000 +0000 ++++ Modules/fpectlmodule.c +@@ -68,7 +68,7 @@ extern "C" { + #include "Python.h" + #include + +-#if defined(__FreeBSD__) ++#if defined(__FreeBSD__) || defined(__DragonFly__) + # include + #endif + +@@ -197,7 +197,7 @@ static void fpe_reset(Sigfunc *handler) + PyOS_setsig(SIGFPE, handler); + + /*-- FreeBSD ----------------------------------------------------------------*/ +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + fpresetsticky(fpgetsticky()); + fpsetmask(FP_X_INV | FP_X_DZ | FP_X_OFL); + PyOS_setsig(SIGFPE, handler); +@@ -243,7 +243,7 @@ static void fpe_reset(Sigfunc *handler) + + static PyObject *turnoff_sigfpe(PyObject *self,PyObject *args) + { +-#ifdef __FreeBSD__ ++#if defined(__FreeBSD__) || defined(__DragonFly__) + fpresetsticky(fpgetsticky()); + fpsetmask(0); + #else diff --git a/lang/python22/patches/patch-ah b/lang/python22/patches/patch-ah new file mode 100644 index 000000000000..26e843338b45 --- /dev/null +++ b/lang/python22/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 2006/01/09 21:22:57 joerg Exp $ + +--- Modules/linuxaudiodev.c.orig 2006-01-09 21:13:16.000000000 +0000 ++++ Modules/linuxaudiodev.c +@@ -30,7 +30,7 @@ + + typedef unsigned long uint32_t; + +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + #include + + #ifndef SNDCTL_DSP_CHANNELS diff --git a/lang/python22/patches/patch-al b/lang/python22/patches/patch-al index 6a12d76fa13a..34af8b9316c5 100644 --- a/lang/python22/patches/patch-al +++ b/lang/python22/patches/patch-al @@ -1,8 +1,18 @@ -$NetBSD: patch-al,v 1.1 2005/01/24 21:43:40 tv Exp $ +$NetBSD: patch-al,v 1.2 2006/01/09 21:22:57 joerg Exp $ ---- configure.orig 2003-03-29 17:25:14.000000000 -0500 +--- configure.orig 2003-03-29 22:25:14.000000000 +0000 +++ configure -@@ -3220,7 +3220,8 @@ then +@@ -3213,6 +3213,9 @@ then + Linux*) LDSHARED='$(CC) -shared';; + dgux*) LDSHARED="ld -G";; + BSD/OS*/4*) LDSHARED="gcc -shared";; ++ DragonFly*) ++ LDSHARED="cc -shared ${LDFLAGS}" ++ ;; + OpenBSD*|FreeBSD*) + if [ "`$CC -dM -E - &1 | grep export-dynamic >/dev/null +@@ -3800,9 +3806,9 @@ else + # on HP/UX, pthread.h renames pthread_create to a different symbol name. + # So we really have to include pthread.h, and then link. + _libs=$LIBS +- LIBS="$LIBS -lpthread" +- echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6 +-echo "configure:3806: checking for pthread_create in -lpthread" >&5 ++ LIBS="$LIBS ${PTHREAD_LDFLAGS} ${PTHREAD_LIB}" ++ echo $ac_n "checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIB}""... $ac_c" 1>&6 ++echo "configure:3806: checking for pthread_create in ${PTHREAD_LDFLAGS} ${PTHREAD_LIB}" >&5 + cat > conftest.$ac_ext <&6 diff --git a/lang/python22/patches/patch-bb b/lang/python22/patches/patch-bb index 719d124d92d0..734d7d01f143 100644 --- a/lang/python22/patches/patch-bb +++ b/lang/python22/patches/patch-bb @@ -1,15 +1,16 @@ -$NetBSD: patch-bb,v 1.3 2005/07/29 13:27:26 drochner Exp $ +$NetBSD: patch-bb,v 1.4 2006/01/09 21:22:57 joerg Exp $ ---- 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 @@ +--- Lib/test/test_fcntl.py.orig 2002-08-23 16:06:46.000000000 +0000 ++++ Lib/test/test_fcntl.py +@@ -16,11 +16,11 @@ except AttributeError: else: start_len = "qq" -if sys.platform in ('netbsd1', 'Darwin1.2', 'darwin', +if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', 'Darwin1.2', 'darwin', 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5', - 'bsdos2', 'bsdos3', 'bsdos4', +- 'bsdos2', 'bsdos3', 'bsdos4', ++ 'bsdos2', 'bsdos3', 'bsdos4', 'netbsd4', 'dragonfly1', 'openbsd', 'openbsd2', 'openbsd3'): - lockdata = struct.pack('lxxxxlxxxxlhh', 0, 0, 0, fcntl.F_WRLCK, 0) + lockdata = struct.pack('qqihh', 0, 0, 0, fcntl.F_WRLCK, 0) diff --git a/lang/python22/patches/patch-bc b/lang/python22/patches/patch-bc index 2f292e310a4b..b2a18f156dd4 100644 --- a/lang/python22/patches/patch-bc +++ b/lang/python22/patches/patch-bc @@ -1,14 +1,15 @@ -$NetBSD: patch-bc,v 1.1 2004/08/29 10:44:19 recht Exp $ +$NetBSD: patch-bc,v 1.2 2006/01/09 21:22:57 joerg 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 @@ +--- 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', -+ if sys.platform in ('netbsd1', 'netbsd2', - 'openbsd2', +- 'openbsd2', ++ if sys.platform in ('netbsd1', 'netbsd2', 'netbsd3', 'netbsd4', ++ 'openbsd2', 'dragonfly1', 'freebsd2', 'freebsd3', 'freebsd4', 'freebsd5', 'bsdos2', 'bsdos3', 'bsdos4'): - flock = struct.pack('lxxxxlxxxxlhh', \ @@ -16,7 +17,7 @@ $NetBSD: patch-bc,v 1.1 2004/08/29 10:44:19 recht Exp $ l_start, l_len, os.getpid(), l_type, l_whence) elif sys.platform in ['aix3', 'aix4']: flock = struct.pack('hhlllii', \ -@@ -198,12 +198,12 @@ +@@ -198,12 +198,12 @@ class _posixfile_: flock = fcntl.fcntl(self._file_.fileno(), cmd, flock) if '?' in how: