head 1.10; access; symbols pkgsrc-2013Q2:1.10.0.44 pkgsrc-2013Q2-base:1.10 pkgsrc-2012Q4:1.10.0.42 pkgsrc-2012Q4-base:1.10 pkgsrc-2011Q4:1.10.0.40 pkgsrc-2011Q4-base:1.10 pkgsrc-2011Q2:1.10.0.38 pkgsrc-2011Q2-base:1.10 pkgsrc-2009Q4:1.10.0.36 pkgsrc-2009Q4-base:1.10 pkgsrc-2008Q4:1.10.0.34 pkgsrc-2008Q4-base:1.10 pkgsrc-2008Q3:1.10.0.32 pkgsrc-2008Q3-base:1.10 cube-native-xorg:1.10.0.30 cube-native-xorg-base:1.10 pkgsrc-2008Q2:1.10.0.28 pkgsrc-2008Q2-base:1.10 pkgsrc-2008Q1:1.10.0.26 pkgsrc-2008Q1-base:1.10 pkgsrc-2007Q4:1.10.0.24 pkgsrc-2007Q4-base:1.10 pkgsrc-2007Q3:1.10.0.22 pkgsrc-2007Q3-base:1.10 pkgsrc-2007Q2:1.10.0.20 pkgsrc-2007Q2-base:1.10 pkgsrc-2007Q1:1.10.0.18 pkgsrc-2007Q1-base:1.10 pkgsrc-2006Q4:1.10.0.16 pkgsrc-2006Q4-base:1.10 pkgsrc-2006Q3:1.10.0.14 pkgsrc-2006Q3-base:1.10 pkgsrc-2006Q2:1.10.0.12 pkgsrc-2006Q2-base:1.10 pkgsrc-2006Q1:1.10.0.10 pkgsrc-2006Q1-base:1.10 pkgsrc-2005Q4:1.10.0.8 pkgsrc-2005Q4-base:1.10 pkgsrc-2005Q3:1.10.0.6 pkgsrc-2005Q3-base:1.10 pkgsrc-2005Q2:1.10.0.4 pkgsrc-2005Q2-base:1.10 pkgsrc-2005Q1:1.10.0.2 pkgsrc-2005Q1-base:1.10 pkgsrc-2004Q4:1.8.0.2 pkgsrc-2004Q4-base:1.8 pkgsrc-2004Q3:1.7.0.4 pkgsrc-2004Q3-base:1.7 pkgsrc-2004Q2:1.7.0.2 pkgsrc-2004Q2-base:1.7 pkgsrc-2004Q1:1.6.0.2 pkgsrc-2004Q1-base:1.6 pkgsrc-2003Q4:1.3.0.2 pkgsrc-2003Q4-base:1.3; locks; strict; comment @# @; 1.10 date 2005.01.23.20.41.47; author recht; state dead; branches; next 1.9; 1.9 date 2004.12.30.21.56.21; author minskim; state Exp; branches; next 1.8; 1.8 date 2004.11.28.13.33.20; author recht; state Exp; branches; next 1.7; 1.7 date 2004.06.02.12.29.28; author recht; state Exp; branches; next 1.6; 1.6 date 2004.03.01.00.16.35; author recht; state Exp; branches; next 1.5; 1.5 date 2003.12.23.17.24.42; author recht; state Exp; branches; next 1.4; 1.4 date 2003.12.08.21.13.56; author recht; state Exp; branches; next 1.3; 1.3 date 2003.09.10.00.11.04; author recht; state Exp; branches; next 1.2; 1.2 date 2003.08.18.17.16.55; author recht; state Exp; branches; next 1.1; 1.1 date 2003.08.06.11.38.11; author drochner; state Exp; branches; next ; desc @@ 1.10 log @Build Python with thread support by default and turn the existing python*-pth packages into meta-packages which will install the non-pth packages. Bump PKGREVISIONs on the non-pth versions to propagate the thread change, but leave the *-pth versions untouched to not affect existing installations. Sync all PYTHON_VERSIONS_AFFECTED lines in package Makefiles. @ text @$NetBSD: patch-al,v 1.9 2004/12/30 21:56:21 minskim Exp $ --- configure.orig 2004-05-07 14:13:40.000000000 -0500 +++ configure @@@@ -1318,7 +1318,7 @@@@ rm confdefs.h mv confdefs.h.new confdefs.h -VERSION=2.3 +VERSION=2p3 SOVERSION=1.0 @@@@ -1440,6 +1440,8 @@@@ case $ac_sys_system/$ac_sys_release in # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. OpenBSD/2.* | OpenBSD/3.[01234]) define_xopen_source=no;; + NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S]) + define_xopen_source=no;; # On Solaris 2.6, sys/wait.h is inconsistent in the usage # of union __?sigval. Reported by Stuart Bishop. SunOS/5.6) @@@@ -3603,7 +3605,7 @@@@ _ACEOF RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} INSTSONAME="$LDLIBRARY".$SOVERSION ;; - Linux*|GNU*|NetBSD*) + Linux*|GNU*|NetBSD*|FreeBSD*) LDLIBRARY='libpython$(VERSION).so' BLDLIBRARY='-L. -lpython$(VERSION)' RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} @@@@ -3624,6 +3626,14 @@@@ _ACEOF BLDLIBRARY='-L. -lpython$(VERSION)' RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} ;; + Darwin*) + if test -z "$enable_framework"; then + LDLIBRARY='libpython$(VERSION).dylib' + BLDLIBRARY='-L. -lpython$(VERSION)' + RUNSHARED=DYLD_LIBRARY_PATH=`pwd`:${DYLD_LIBRARY_PATH} + fi + ;; + esac # DG/UX requires some fancy ld contortions to produce a .so from an .a case $MACHDEP in @@@@ -4021,7 +4031,12 @@@@ echo "${ECHO_T}$ac_cv_no_strict_aliasing ;; # is there any other compiler on Darwin besides gcc? Darwin*) - BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd" + if [[ `/usr/bin/arch` = 'ppc' ]] + then + BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common" + else + BASECFLAGS="$BASECFLAGS -Wno-long-double -no-cpp-precomp -fno-common" + fi ;; esac ;; @@@@ -10082,7 +10097,7 @@@@ then LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' else # No framework. Ignore undefined symbols, assuming they come from Python - LDSHARED="$LDSHARED -undefined suppress" + LDSHARED="$LDSHARED -flat_namespace -undefined suppress" fi ;; Darwin/*) LDSHARED='$(CC) $(LDFLAGS) -bundle' @@@@ -10091,10 +10106,10 @@@@ then LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' else # No framework, use the Python app as bundle-loader - BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)' - LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' + BLDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BUILDPYTHON)' + LDSHARED="$LDSHARED "'-flat_namespace -undefined suppress -bundle_loader $(BINDIR)/python$(VERSION)$(EXE)' fi ;; - Linux*|GNU*) LDSHARED='$(CC) -shared';; + Linux*|GNU*) LDSHARED='$(CC) -shared ${LDFLAGS}';; dgux*) LDSHARED="ld -G";; BSD/OS*/4*) LDSHARED="gcc -shared";; OpenBSD*|FreeBSD*) @@@@ -13855,6 +13870,7 @@@@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "confdefs.h" +#include #include #include #include @ 1.9 log @Honor LDFLAGS when building shared libraries on Linux. Previously, python2[34]{,-pth} failed on Linux when Berkeley DB from pkgsrc was used. @ text @d1 1 a1 1 $NetBSD$ @ 1.8 log @Add patches from darwinports/fink to make the posixmodule work on Darwin/ OSX and build the libpython as dynamic library. While at it also fix the PLIST for Darwin/OSX. @ text @d3 3 a5 3 --- configure.orig Fri May 7 21:13:40 2004 +++ configure Thu Nov 25 13:20:20 2004 @@@@ -1318,7 +1318,7 @@@@ d14 1 a14 1 @@@@ -1440,6 +1440,8 @@@@ d23 1 a23 1 @@@@ -3603,7 +3605,7 @@@@ d32 1 a32 1 @@@@ -3624,6 +3626,14 @@@@ d47 1 a47 1 @@@@ -4021,7 +4031,12 @@@@ d61 1 a61 1 @@@@ -10082,7 +10097,7 @@@@ d70 1 a70 1 @@@@ -10091,8 +10106,8 @@@@ d79 2 a80 1 Linux*|GNU*) LDSHARED='$(CC) -shared';; d82 3 a84 1 @@@@ -13855,6 +13870,7 @@@@ @ 1.7 log @Update to 2.3.4 This is a bug-fix release for Python 2.3 that fixes a number of bugs, including a couple of weakref bugs and a bug in pickle version 2. There are also a number of fixes to the standard library, and some build fixes - see the release notes ( http://www.python.org/2.3.4/NEWS.html ) for details. @ text @d3 2 a4 2 --- configure.orig 2004-05-07 21:13:40.000000000 +0200 +++ configure 2004-06-02 13:59:28.000000000 +0200 d32 50 a81 1 @@@@ -13855,6 +13857,7 @@@@ @ 1.6 log @Apply first part (creation of libpython.so) of the patch provided by Michal Pasternak in PR 24599. Leave the RUNSHARED part for now until it's proven that it's really needed and a cleaner has been found. @ text @d1 1 a1 1 $NetBSD: patch-al,v 1.5 2003/12/23 17:24:42 recht Exp $ d3 2 a4 2 --- configure.orig 2003-11-18 20:59:36.000000000 +0100 +++ configure 2004-03-01 00:58:59.000000000 +0100 d23 1 a23 1 @@@@ -3602,7 +3604,7 @@@@ d32 1 a32 1 @@@@ -13854,6 +13856,7 @@@@ @ 1.5 log @update to 2.3.3 This is a bug-fix release for Python 2.3 that fixes a number of bugs, including a couple of serious errors with weakrefs and the cyclic garbage collector. There are also a number of fixes to the standard library - see the release notes ( http://www.python.org/2.3.3/NEWS.html )for details. @ text @d1 1 a1 1 $NetBSD: patch-al,v 1.4 2003/12/08 21:13:56 recht Exp $ d4 1 a4 1 +++ configure 2003-12-23 12:47:01.000000000 +0100 d23 9 @ 1.4 log @Update to Python 2.3.2 Changes in Python: Quite a few fixes.. See NEWS for details. Changes in the pkg: - add FreeBSD patches from the FreeBSD port - add fix for a fatal bug in type's GC handling causes segfaults (via FreeBSD port) see http://cvs.sourceforge.net/viewcvs.py/python/python/dist/src/Misc/NEWS?r1=1.831.4.75&r2=1.831.4.76&diff_format=u - always build the db 1.85 module (on all platforms) @ text @d1 1 a1 1 $NetBSD$ d3 3 a5 3 --- configure.orig 2003-09-27 10:58:55.000000000 +0200 +++ configure @@@@ -1318,7 +1318,7 @@@@ rm confdefs.h d14 3 a16 3 @@@@ -1440,6 +1440,8 @@@@ case $ac_sys_system/$ac_sys_release in # Reconfirmed for OpenBSD 3.3 by Zachary Hamm. OpenBSD/2.* | OpenBSD/3.[0123]) d23 1 a23 1 @@@@ -13837,6 +13839,7 @@@@ cat >>conftest.$ac_ext <<_ACEOF @ 1.3 log @Correctly disable POSIX* and XOPEN* macros on < 1.6T. This should fix py-curses in hubertf's bulk build. Also add a patch from drochner@@ for 1.5. Bump PKGREVISION 1, because the This the pyconfig.h header is affected. @ text @d1 1 a1 1 $NetBSD: patch-al,v 1.2 2003/08/18 17:16:54 recht Exp $ d3 4 a6 5 --- pyconfig.h.in.orig 2003-07-22 17:20:49.000000000 +0200 +++ pyconfig.h.in 2003-09-10 01:01:29.000000000 +0200 @@@@ -835,6 +835,13 @@@@ /* Define _OSF_SOURCE to get the makedev macro. */ #undef _OSF_SOURCE a7 13 +/* These defines disable needed library functions on NetBSD < 1.6T */ +/* ( _NETBSD_SOURCE doesn't exist prior to 1.6T ) */ +#if defined(__NetBSD__) +#include +#endif +#if !defined(__NetBSD__) || __NetBSD_Version__ > 106200000 + /* Define to 2 if the system does not provide POSIX.1 features except with this defined. */ #undef _POSIX_1_SOURCE @@@@ -845,18 +852,20 @@@@ /* Define to 1 if you need to in order for `stat' and other things to work. */ #undef _POSIX_SOURCE d9 2 a10 8 -/* Define if you have POSIX threads, and your system does not define that. */ -#undef _POSIX_THREADS - -/* Define to force use of thread-safe errno, h_errno, and other functions */ -#undef _REENTRANT - /* Define to the level of X/Open that your system supports */ #undef _XOPEN_SOURCE a11 2 /* Define to activate Unix95-and-earlier features */ #undef _XOPEN_SOURCE_EXTENDED d13 12 a24 10 +#endif /* __NetBSD_Version__ */ + +/* Define if you have POSIX threads, and your system does not define that. */ +#undef _POSIX_THREADS + +/* Define to force use of thread-safe errno, h_errno, and other functions */ +#undef _REENTRANT + /* Define on FreeBSD to activate all library features */ #undef __BSD_VISIBLE d26 5 @ 1.2 log @- Fix build for NetBSD <= 1.5. - Include bzip2's buildlink2.mk to work-around different API versions. - Include db's buildlink2.mk on non-NetBSD platforms to get a similar feature-set on a pkgsrc platforms. @ text @d1 1 a1 1 $NetBSD: patch-al,v 1.1 2003/08/06 11:38:11 drochner Exp $ d4 2 a5 2 +++ pyconfig.h.in 2003-08-18 18:24:43.000000000 +0200 @@@@ -835,6 +835,12 @@@@ d11 1 a11 1 +#ifdef __NetBSD__ d13 2 a14 1 +#if !defined(__NetBSD_Version__) || (__NetBSD_Version__ < 106200000) d19 1 a19 1 @@@@ -845,18 +851,30 @@@@ d23 6 a28 15 +#endif +#endif /* __NetBSD__ */ + /* Define if you have POSIX threads, and your system does not define that. */ #undef _POSIX_THREADS /* Define to force use of thread-safe errno, h_errno, and other functions */ #undef _REENTRANT +/* These defines disable needed library functions on NetBSD < 1.6T */ +/* ( _NETBSD_SOURCE doesn't exists prior to 1.6T ) */ +#ifdef __NetBSD__ +#include +#if !defined(__NetBSD_Version__) || (__NetBSD_Version__ < 106200000) + d35 7 a41 2 +#endif +#endif /* __NetBSD__ */ @ 1.1 log @-add a patch from Marc Recht vie pkgsrc-wip which meddes with these XOPEN/POSIX/NetBSD_SOURCE definitions so that it builds on 1.6.x -pull in some GNU-pth related fixes from Python-2.2-pth @ text @d1 1 a1 1 $NetBSD$ d4 2 a5 2 +++ pyconfig.h.in 2003-08-02 15:50:34.000000000 +0200 @@@@ -835,6 +835,10 @@@@ d11 3 a13 1 +#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106200000) d18 1 a18 1 @@@@ -845,18 +849,26 @@@@ d23 1 d33 3 a35 1 +#if defined(__NetBSD_Version__) && (__NetBSD_Version__ < 106200000) d44 1 @