diff options
author | drochner <drochner> | 2005-02-15 12:25:07 +0000 |
---|---|---|
committer | drochner <drochner> | 2005-02-15 12:25:07 +0000 |
commit | 87cd05df9143fba75d69bf6adf356a5823aece79 (patch) | |
tree | 280c0c8a7e25c224f382e6a3a41e3372edf34a63 /lang/python23 | |
parent | 956c2e52981bfa5bbf8dcf55496ea9043dc40eac (diff) | |
download | pkgsrc-87cd05df9143fba75d69bf6adf356a5823aece79.tar.gz |
update to 2.3.5
This is a bug-fix release. It contains the fix for
http://www.python.org/security/PSF-2005-001/
which we added in 2.3.4nb7.
Diffstat (limited to 'lang/python23')
-rw-r--r-- | lang/python23/Makefile | 5 | ||||
-rw-r--r-- | lang/python23/Makefile.common | 6 | ||||
-rw-r--r-- | lang/python23/distinfo | 13 | ||||
-rw-r--r-- | lang/python23/patches/patch-ah | 23 | ||||
-rw-r--r-- | lang/python23/patches/patch-al | 46 | ||||
-rw-r--r-- | lang/python23/patches/patch-an | 82 | ||||
-rw-r--r-- | lang/python23/patches/patch-cc | 44 | ||||
-rw-r--r-- | lang/python23/patches/patch-db | 35 |
8 files changed, 41 insertions, 213 deletions
diff --git a/lang/python23/Makefile b/lang/python23/Makefile index d4df1c8ac4e..621410af853 100644 --- a/lang/python23/Makefile +++ b/lang/python23/Makefile @@ -1,8 +1,7 @@ -# $NetBSD: Makefile,v 1.26 2005/02/04 15:39:04 drochner Exp $ +# $NetBSD: Makefile,v 1.27 2005/02/15 12:25:07 drochner Exp $ # -PKGNAME= python23-2.3.4 -PKGREVISION= 7 +PKGNAME= python23-2.3.5 CONFLICTS+= python-[0-9]* diff --git a/lang/python23/Makefile.common b/lang/python23/Makefile.common index ca5ddf51827..19f61cb8050 100644 --- a/lang/python23/Makefile.common +++ b/lang/python23/Makefile.common @@ -1,9 +1,9 @@ -# $NetBSD: Makefile.common,v 1.24 2005/01/23 20:41:47 recht Exp $ +# $NetBSD: Makefile.common,v 1.25 2005/02/15 12:25:07 drochner Exp $ # -DISTNAME= Python-2.3.4 +DISTNAME= Python-2.3.5 CATEGORIES= lang python -MASTER_SITES= ftp://ftp.python.org/pub/python/2.3.4/ +MASTER_SITES= ftp://ftp.python.org/pub/python/2.3.5/ EXTRACT_SUFX= .tgz MAINTAINER= recht@NetBSD.org diff --git a/lang/python23/distinfo b/lang/python23/distinfo index d08841cf599..bd9eaafd0af 100644 --- a/lang/python23/distinfo +++ b/lang/python23/distinfo @@ -1,22 +1,19 @@ -$NetBSD: distinfo,v 1.25 2005/02/04 15:39:04 drochner Exp $ +$NetBSD: distinfo,v 1.26 2005/02/15 12:25:07 drochner Exp $ -SHA1 (Python-2.3.4.tgz) = 7d47431febec704e766b57f12a1a5030bb2d03c3 -Size (Python-2.3.4.tgz) = 8502738 bytes +SHA1 (Python-2.3.5.tgz) = 2729d068f5d1abe7b743f32012d4f7c4b0508a3c +Size (Python-2.3.5.tgz) = 8535749 bytes SHA1 (patch-aa) = dd8f89952d7f40c9a979e362758775f093e047bc SHA1 (patch-ab) = 111d7fa8adbb7001bacad36e3bdbe23ae6ce8b9b SHA1 (patch-ad) = c8f6ea08e68dae3bd9ad639c38e74cf654c0b41e SHA1 (patch-ae) = 3dcf150147333342b333871b41fe6fa92bced2d9 SHA1 (patch-af) = d23d42d5d5fc31aeaf1fca89448873cc4179ccf6 -SHA1 (patch-ah) = 21d64c6f6a9f0ccf13b5439859b05e193b0338b0 -SHA1 (patch-al) = d9b35c19e31edea1442b742aeeaa1b37f64d0d67 +SHA1 (patch-ah) = da362d3e2e46077c3177796f0c926661b0f751d4 +SHA1 (patch-al) = 77ccdc4d9ef11b955db44680d4a0b572a49cea7a SHA1 (patch-am) = df5c858b32a9a5aa118c84f6742f9d3547c0c7f3 -SHA1 (patch-an) = dea3d89818a937ad47a72d6a21b806d258a973c2 SHA1 (patch-bb) = 7c6fe21b6328dddce2a079b0a1c7ae0bee817bae SHA1 (patch-ca) = 95f5a515fe3dafd75d077e0591e88a34447152ff SHA1 (patch-cb) = 301205b29db1ca60f06b2dc0423f5f911eabcd18 -SHA1 (patch-cc) = d4f82500d4151dcd3e01302af795cd21f4330f63 SHA1 (patch-cd) = 5e980fcb567dcfc23b1ccac54a2457d5d9dba69a SHA1 (patch-ce) = 6b88d8177d0b1f900ee5898f113eccf8426ea756 SHA1 (patch-da) = b082eff79571726701aab53c37d8d53a8115e204 -SHA1 (patch-db) = ac37d14f55c165fee1d8225304d6c3c8ec203fec SHA1 (patch-dc) = 151159e0bafd248040ab57e5c05152a91fe44ac6 diff --git a/lang/python23/patches/patch-ah b/lang/python23/patches/patch-ah index 14195220fc7..e013b540ae1 100644 --- a/lang/python23/patches/patch-ah +++ b/lang/python23/patches/patch-ah @@ -1,8 +1,8 @@ -$NetBSD: patch-ah,v 1.4 2005/01/19 17:45:34 tv Exp $ +$NetBSD: patch-ah,v 1.5 2005/02/15 12:25:07 drochner Exp $ ---- Makefile.pre.in.orig Tue Nov 18 20:54:00 2003 -+++ Makefile.pre.in Thu Nov 11 18:54:35 2004 -@@ -56,7 +56,7 @@ +--- Makefile.pre.in.orig 2005-01-11 14:48:52.000000000 +0100 ++++ Makefile.pre.in +@@ -56,7 +56,7 @@ MAKESETUP= $(srcdir)/Modules/makese OPT= @OPT@ BASECFLAGS= @BASECFLAGS@ CFLAGS= $(BASECFLAGS) $(OPT) @@ -11,7 +11,7 @@ $NetBSD: patch-ah,v 1.4 2005/01/19 17:45:34 tv Exp $ LDFLAGS= @LDFLAGS@ LDLAST= @LDLAST@ SGI_ABI= @SGI_ABI@ -@@ -305,7 +305,7 @@ +@@ -308,7 +308,7 @@ all: $(BUILDPYTHON) oldsharedmods share $(BUILDPYTHON): Modules/$(MAINOBJ) $(LIBRARY) $(LDLIBRARY) $(LINKCC) $(LDFLAGS) $(LINKFORSHARED) -o $@ \ Modules/$(MAINOBJ) \ @@ -20,16 +20,7 @@ $NetBSD: patch-ah,v 1.4 2005/01/19 17:45:34 tv Exp $ platform: $(BUILDPYTHON) $(RUNSHARED) ./$(BUILDPYTHON) -E -c 'import sys ; from distutils.util import get_platform ; print get_platform()+"-"+sys.version[0:3]' >platform -@@ -345,7 +345,7 @@ - - libpython$(VERSION).so: $(LIBRARY_OBJS) - if test $(INSTSONAME) != $(LDLIBRARY); then \ -- $(LDSHARED) -Wl,-soname=$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ -+ $(LDSHARED) -Wl,-h,$(INSTSONAME) -o $(INSTSONAME) $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ - $(LN) -f $(INSTSONAME) $@; \ - else\ - $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(SHLIBS) $(LIBC) $(LIBM); \ -@@ -354,6 +354,9 @@ +@@ -357,6 +357,9 @@ libpython$(VERSION).so: $(LIBRARY_OBJS) libpython$(VERSION).sl: $(LIBRARY_OBJS) $(LDSHARED) -o $@ $(LIBRARY_OBJS) $(LIBC) $(LIBM) @@ -39,7 +30,7 @@ $NetBSD: patch-ah,v 1.4 2005/01/19 17:45:34 tv Exp $ # This rule is here for OPENSTEP/Rhapsody/MacOSX. It builds a temporary # minimal framework (not including the Lib directory and such) in the current # directory. -@@ -613,7 +616,12 @@ +@@ -616,7 +619,12 @@ altbininstall: $(BUILDPYTHON) (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) libpython$(VERSION)$(SO)); \ fi \ fi; \ diff --git a/lang/python23/patches/patch-al b/lang/python23/patches/patch-al index d21c4750e7c..ad2f021e938 100644 --- a/lang/python23/patches/patch-al +++ b/lang/python23/patches/patch-al @@ -1,8 +1,8 @@ -$NetBSD: patch-al,v 1.10 2005/01/18 18:22:34 tv Exp $ +$NetBSD: patch-al,v 1.11 2005/02/15 12:25:07 drochner Exp $ ---- configure.orig 2004-05-07 15:13:40.000000000 -0400 +--- configure.orig 2005-01-11 14:48:52.000000000 +0100 +++ configure -@@ -1440,6 +1440,8 @@ case $ac_sys_system/$ac_sys_release in +@@ -1481,6 +1481,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;; @@ -11,7 +11,7 @@ $NetBSD: patch-al,v 1.10 2005/01/18 18:22:34 tv Exp $ # 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 +@@ -3733,7 +3735,7 @@ _ACEOF RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} INSTSONAME="$LDLIBRARY".$SOVERSION ;; @@ -20,7 +20,7 @@ $NetBSD: patch-al,v 1.10 2005/01/18 18:22:34 tv Exp $ LDLIBRARY='libpython$(VERSION).so' BLDLIBRARY='-L. -lpython$(VERSION)' RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} -@@ -3624,6 +3626,14 @@ _ACEOF +@@ -3754,6 +3756,14 @@ _ACEOF BLDLIBRARY='-L. -lpython$(VERSION)' RUNSHARED=DLL_PATH=`pwd`:${DLL_PATH:-/atheos/sys/libs:/atheos/autolnk/lib} ;; @@ -35,7 +35,7 @@ $NetBSD: patch-al,v 1.10 2005/01/18 18:22:34 tv Exp $ 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 +@@ -4152,7 +4162,12 @@ echo "${ECHO_T}$ac_cv_no_strict_aliasing ;; # is there any other compiler on Darwin besides gcc? Darwin*) @@ -49,30 +49,32 @@ $NetBSD: patch-al,v 1.10 2005/01/18 18:22:34 tv Exp $ ;; esac ;; -@@ -10082,7 +10097,7 @@ then - LDSHARED="$LDSHARED "'-framework $(PYTHONFRAMEWORK)' +@@ -10979,7 +10994,7 @@ then + LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' else # No framework. Ignore undefined symbols, assuming they come from Python - LDSHARED="$LDSHARED -undefined suppress" + LDSHARED="$LDSHARED -flat_namespace -undefined suppress" fi ;; - Darwin/*) + Darwin/1.4*|Darwin/5.*|Darwin/6.*) 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 ;; +@@ -11009,12 +11024,12 @@ then + LDSHARED="$LDSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(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 + fi + ;; - Linux*|GNU*) LDSHARED='$(CC) -shared';; + Linux*|GNU*) LDSHARED='$(CC) -shared ${LDFLAGS}';; dgux*) LDSHARED="ld -G";; BSD/OS*/4*) LDSHARED="gcc -shared";; OpenBSD*|FreeBSD*) -@@ -10104,7 +10119,8 @@ then +@@ -11024,7 +11039,8 @@ then else LDSHARED="ld -Bshareable ${LDFLAGS}" fi;; @@ -82,7 +84,7 @@ $NetBSD: patch-al,v 1.10 2005/01/18 18:22:34 tv Exp $ OpenUNIX*|UnixWare*) if test "$GCC" = "yes" then LDSHARED='$(CC) -shared' -@@ -10137,6 +10153,7 @@ then +@@ -11057,6 +11073,7 @@ then Linux*|GNU*) CCSHARED="-fPIC";; BSD/OS*/4*) CCSHARED="-fpic";; FreeBSD*|NetBSD*|OpenBSD*) CCSHARED="-fPIC";; @@ -90,7 +92,7 @@ $NetBSD: patch-al,v 1.10 2005/01/18 18:22:34 tv Exp $ OpenUNIX*|UnixWare*) if test "$GCC" = "yes" then CCSHARED="-fPIC" -@@ -10196,6 +10213,7 @@ then +@@ -11116,6 +11133,7 @@ then then LINKFORSHARED="-Wl,--export-dynamic" fi;; @@ -98,7 +100,7 @@ $NetBSD: patch-al,v 1.10 2005/01/18 18:22:34 tv Exp $ SunOS/5*) case $CC in *gcc*) if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null -@@ -13855,6 +13873,7 @@ cat >>conftest.$ac_ext <<_ACEOF +@@ -15127,6 +15145,7 @@ cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include "confdefs.h" diff --git a/lang/python23/patches/patch-an b/lang/python23/patches/patch-an deleted file mode 100644 index a0822ac0372..00000000000 --- a/lang/python23/patches/patch-an +++ /dev/null @@ -1,82 +0,0 @@ -$NetBSD: patch-an,v 1.3 2005/02/04 15:39:04 drochner Exp $ - ---- Lib/SimpleXMLRPCServer.py.orig 2003-06-29 06:19:37.000000000 +0200 -+++ Lib/SimpleXMLRPCServer.py -@@ -107,14 +107,22 @@ import sys - import types - import os - --def resolve_dotted_attribute(obj, attr): -+def resolve_dotted_attribute(obj, attr, allow_dotted_names=True): - """resolve_dotted_attribute(a, 'b.c.d') => a.b.c.d - - Resolves a dotted attribute name to an object. Raises - an AttributeError if any attribute in the chain starts with a '_'. -+ -+ If the optional allow_dotted_names argument is false, dots are not -+ supported and this function operates similar to getattr(obj, attr). - """ - -- for i in attr.split('.'): -+ if allow_dotted_names: -+ attrs = attr.split('.') -+ else: -+ attrs = [attr] -+ -+ for i in attrs: - if i.startswith('_'): - raise AttributeError( - 'attempt to access private attribute "%s"' % i -@@ -156,7 +164,7 @@ class SimpleXMLRPCDispatcher: - self.funcs = {} - self.instance = None - -- def register_instance(self, instance): -+ def register_instance(self, instance, allow_dotted_names=False): - """Registers an instance to respond to XML-RPC requests. - - Only one instance can be installed at a time. -@@ -174,9 +182,23 @@ class SimpleXMLRPCDispatcher: - - If a registered function matches a XML-RPC request, then it - will be called instead of the registered instance. -+ -+ If the optional allow_dotted_names argument is true and the -+ instance does not have a _dispatch method, method names -+ containing dots are supported and resolved, as long as none of -+ the name segments start with an '_'. -+ -+ *** SECURITY WARNING: *** -+ -+ Enabling the allow_dotted_names options allows intruders -+ to access your module's global variables and may allow -+ intruders to execute arbitrary code on your machine. Only -+ use this option on a secure, closed network. -+ - """ - - self.instance = instance -+ self.allow_dotted_names = allow_dotted_names - - def register_function(self, function, name = None): - """Registers a function to respond to XML-RPC requests. -@@ -295,7 +317,8 @@ class SimpleXMLRPCDispatcher: - try: - method = resolve_dotted_attribute( - self.instance, -- method_name -+ method_name, -+ self.allow_dotted_names - ) - except AttributeError: - pass -@@ -374,7 +397,8 @@ class SimpleXMLRPCDispatcher: - try: - func = resolve_dotted_attribute( - self.instance, -- method -+ method, -+ self.allow_dotted_names - ) - except AttributeError: - pass diff --git a/lang/python23/patches/patch-cc b/lang/python23/patches/patch-cc deleted file mode 100644 index 96cb43e489c..00000000000 --- a/lang/python23/patches/patch-cc +++ /dev/null @@ -1,44 +0,0 @@ -$NetBSD: patch-cc,v 1.1 2004/11/24 20:45:10 jschauma Exp $ - ---- Modules/socketmodule.c.orig Mon Nov 22 22:59:27 2004 -+++ Modules/socketmodule.c Mon Nov 22 23:06:49 2004 -@@ -192,8 +192,18 @@ - - /* XXX Using _SGIAPI is the wrong thing, - but I don't know what the right thing is. */ -+#undef _SGIAPI /* to avoid warning */ - #define _SGIAPI 1 - -+#undef _XOPEN_SOURCE -+#include <sys/socket.h> -+#include <sys/types.h> -+#include <netinet/in.h> -+#ifdef _SS_ALIGNSIZE -+#define HAVE_GETADDRINFO 1 -+#define HAVE_GETNAMEINFO 1 -+#endif -+ - #define HAVE_INET_PTON - #include <netdb.h> - #endif -@@ -259,7 +269,19 @@ - # define O_NONBLOCK O_NDELAY - #endif - --#include "addrinfo.h" -+/* include Python's addrinfo.h unless it causes trouble */ -+#if defined(__sgi) && _COMPILER_VERSION>700 && defined(_SS_ALIGNSIZE) -+/* Do not include addinfo.h on some newer IRIX versions. -+* _SS_ALIGNSIZE is defined in sys/socket.h by 6.5.21, -+* for example, but not by 6.5.10. -+*/ -+#elif defined(_MSC_VER) && _MSC_VER>1200 -+/* Do not include addrinfo.h for MSVC7 or greater. 'addrinfo' and -+* EAI_* constants are defined in (the already included) ws2tcpip.h. -+*/ -+#else -+# include "addrinfo.h" -+#endif - - #ifndef HAVE_INET_PTON - int inet_pton(int af, const char *src, void *dst); diff --git a/lang/python23/patches/patch-db b/lang/python23/patches/patch-db deleted file mode 100644 index 19d741933f8..00000000000 --- a/lang/python23/patches/patch-db +++ /dev/null @@ -1,35 +0,0 @@ -$NetBSD: patch-db,v 1.1 2004/11/28 13:33:19 recht Exp $ - ---- Modules/getpath.c.orig Thu Nov 11 18:08:55 2004 -+++ Modules/getpath.c Thu Nov 11 18:10:13 2004 -@@ -374,6 +374,9 @@ - #ifdef WITH_NEXT_FRAMEWORK - NSModule pythonModule; - #endif -+#ifdef __APPLE__ -+ unsigned long nsexeclength = MAXPATHLEN; -+#endif - - /* If there is no slash in the argv0 path, then we have to - * assume python is on the user's $PATH, since there's no -@@ -382,6 +385,20 @@ - */ - if (strchr(prog, SEP)) - strncpy(progpath, prog, MAXPATHLEN); -+#ifdef __APPLE__ -+ /* On Mac OS X, if a script uses an interpreter of the form -+ * "#!/opt/python2.3/bin/python", the kernel only passes "python" -+ * as argv[0], which falls through to the $PATH search below. -+ * If /opt/python2.3/bin isn't in your path, or is near the end, -+ * this algorithm may incorrectly find /usr/bin/python. To work -+ * around this, we can use _NSGetExecutablePath to get a better -+ * hint of what the intended interpreter was, although this -+ * will fail if a relative path was used. but in that case, -+ * absolutize() should help us out below -+ */ -+ else if(0 == _NSGetExecutablePath(progpath, &nsexeclength) && progpath[0] == SEP) -+ ; -+#endif // __APPLE__ - else if (path) { - while (1) { - char *delim = strchr(path, DELIM); |