diff options
author | obache <obache@pkgsrc.org> | 2011-06-13 11:31:13 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-06-13 11:31:13 +0000 |
commit | 553fb638bc556a938d34a5334f0acf6ccb414a79 (patch) | |
tree | 465a53662fc106bd06f9536972c5bc7e379e2168 /lang/python27 | |
parent | da48765021641237ea04fd0f352ed881d0bad00a (diff) | |
download | pkgsrc-553fb638bc556a938d34a5334f0acf6ccb414a79.tar.gz |
Update python27 to 2.7.2.
What's New in Python 2.7.2?
===========================
*Release date: 2011-06-11*
Library
-------
- Issue #12009: Fixed regression in netrc file comment handling.
Extension Modules
-----------------
- Issue #1221: Make pyexpat.__version__ equal to the Python version.
What's New in Python 2.7.2 release candidate 1?
===============================================
*Release date: 2011-05-29*
Core and Builtins
-----------------
- Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
- Correct lookup of __dir__ on objects. This allows old-style classes to have
__dir__. It also causes errors besides AttributeError found on lookup to be
propagated.
- Issue #1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c,
clear the end-of-file indicator after CTRL+d.
- Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
(length bigger than 2^31-1 bytes).
- Issue #8651: Fix "z#" format of PyArg_Parse*() function: the size was not
written if PY_SSIZE_T_CLEAN is defined.
- Issue #9756: When calling a method descriptor or a slot wrapper descriptor,
the check of the object type doesn't read the __class__ attribute anymore.
Fix a crash if a class override its __class__ attribute (e.g. a proxy of the
str type). Patch written by Andreas Stührk.
- Issue #10517: After fork(), reinitialize the TLS used by the PyGILState_*
APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch
by Charles-François Natali.
- Issue #6780: fix starts/endswith error message to mention that tuples are
accepted too.
- Issue #5057: fix a bug in the peepholer that led to non-portable pyc files
between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP
chars (e.g. u"\U00012345"[0]).
- Issue #11650: PyOS_StdioReadline() retries fgets() if it was interrupted
(EINTR), for example if the program is stopped with CTRL+z on Mac OS X. Patch
written by Charles-Francois Natali.
- Issue #11144: Ensure that int(a_float) returns an int whenever possible.
Previously, there were some corner cases where a long was returned even
though the result was within the range of an int.
- Issue #11450: Don't truncate hg version info in Py_GetBuildInfo() when
there are many tags (e.g. when using mq). Patch by Nadeem Vawda.
- Issue #10451: memoryview objects could allow to mutate a readable buffer.
Initial patch by Ross Lagerwall.
- Issue #10892: Don't segfault when trying to delete __abstractmethods__ from a
class.
- Issue #8020: Avoid a crash where the small objects allocator would read
non-Python managed memory while it is being modified by another thread.
Patch by Matt Bandy.
- Issue #11004: Repaired edge case in deque.count().
- Issue #8278: On Windows and with a NTFS filesystem, os.stat() and os.utime()
can now handle dates after 2038.
- Issue #4236: Py_InitModule4 now checks the import machinery directly
rather than the Py_IsInitialized flag, avoiding a Fatal Python
error in certain circumstances when an import is done in __del__.
- issue #11828: startswith and endswith don't accept None as slice index.
Patch by Torsten Becker.
- Issue #10674: Remove unused 'dictmaker' rule from grammar.
- Issue #10596: Fix float.__mod__ to have the same behaviour as
float.__divmod__ with respect to signed zeros. -4.0 % 4.0 should be
0.0, not -0.0.
- Issue #11386: bytearray.pop() now throws IndexError when the bytearray is
empty, instead of OverflowError.
Library
-------
- Issue #12161: Cause StringIO.getvalue() to raise a ValueError when used on a
closed StringIO instance.
- Issue #12182: Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true)
division (python -Qnew). Patch written by Ralf W. Grosse-Kunstleve.
- Issue #12175: RawIOBase.readall() now returns None if read() returns None.
- Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError
if the file is closed.
- Issue #1441530: In imaplib, use makefile() to wrap the SSL socket to avoid
heap fragmentation and MemoryError with some malloc implementations.
- Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
- Issue #12124: zipimport doesn't keep a reference to zlib.decompress() anymore
to be able to unload the module.
- Issue #11088: don't crash when using F5 to run a script in IDLE on MacOSX
with Tk 8.5.
- Issue #10154, #10090: change the normalization of UTF-8 to "UTF-8" instead
of "UTF8" in the locale module as the latter is not supported MacOSX and OpenBSD.
- Issue #9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is
set in shell.
- Issue #12050: zlib.decompressobj().decompress() now clears the unconsumed_tail
attribute when called without a max_length argument.
- Issue #12062: In the `io` module, fix a flushing bug when doing a certain
type of I/O sequence on a file opened in read+write mode (namely: reading,
seeking a bit forward, writing, then seeking before the previous write but
still within buffered data, and writing again).
- Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in
order to accept exactly one connection. Patch by Daniel Evers.
- Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional.
- Issue #11164: Remove obsolete allnodes test from minidom test.
- Issue #11927: SMTP_SSL now uses port 465 by default as documented. Patch
by Kasun Herath.
- Issue 11999: fixed sporadic sync failure mailbox.Maildir due to its trying to
detect mtime changes by comparing to the system clock instead of to the
previous value of the mtime.
- Issue #10684: shutil.move used to delete a folder on case insensitive
filesystems when the source and destination name where the same except
for the case.
- Issue #11982: fix json.loads('""') to return u'' rather than ''.
- Issue #11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get
around a mmap bug with sparse files. Patch written by Steffen Daode Nurpmeso.
- Issue #10761: Fix tarfile.extractall failure when symlinked files are
present. Initial patch by Scott Leerssen.
- Issue #11763: don't use difflib in TestCase.assertMultiLineEqual if the
strings are too long.
- Issue #11236: getpass.getpass responds to ctrl-c or ctrl-z on terminal.
- Issue #11768: The signal handler of the signal module only calls
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
- Issue #11875: collections.OrderedDict's __reduce__ was temporarily
mutating the object instead of just working on a copy.
- Issue #11442: Add a charset parameter to the Content-type in SimpleHTTPServer
to avoid XSS attacks.
- Issue #11467: Fix urlparse behavior when handling urls which contains scheme
specific part only digits. Patch by Santoso Wijaya.
- collections.Counter().copy() now works correctly for subclasses.
- Issue #11474: Fix the bug with url2pathname() handling of '/C|/' on Windows.
Patch by Santoso Wijaya.
- Issue #9233: Fix json.loads('{}') to return a dict (instead of a list), when
_json is not available.
- Issue #11703: urllib2.geturl() does not return correct url when the original
url contains #fragment.
- Issue #10019: Fixed regression in json module where an indent of 0 stopped
adding newlines and acted instead like 'None'.
- Issue #5162: Treat services like frozen executables to allow child spawning
from multiprocessing.forking on Windows.
- Issue #4877: Fix a segfault in xml.parsers.expat while attempting to parse
a closed file.
- Issue #11830: Remove unnecessary introspection code in the decimal module.
It was causing a failed import in the Turkish locale where the locale
sensitive str.upper() method caused a name mismatch.
- Issue #8428: Fix a race condition in multiprocessing.Pool when terminating
worker processes: new processes would be spawned while the pool is being
shut down. Patch by Charles-François Natali.
- Issue #7311: Fix HTMLParser to accept non-ASCII attribute values.
- Issue #10963: Ensure that subprocess.communicate() never raises EPIPE.
- Issue #11662: Make urllib and urllib2 ignore redirections if the
scheme is not HTTP, HTTPS or FTP (CVE-2011-1521).
- Issue #11256: Fix inspect.getcallargs on functions that take only keyword
arguments.
- Issue #11696: Fix ID generation in msilib.
- Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when
trying to pack a negative (in-range) integer.
- Issue #11675: multiprocessing.[Raw]Array objects created from an integer size
are now zeroed on creation. This matches the behaviour specified by the
documentation.
- Issue #7639: Fix short file name generation in bdist_msi.
- Issue #11666: let help() display named tuple attributes and methods
that start with a leading underscore.
- Issue #11673: Fix multiprocessing Array and RawArray constructors to accept a
size of type 'long', rather than only accepting 'int'.
- Issue #10042: Fixed the total_ordering decorator to handle cross-type
comparisons that could lead to infinite recursion.
- Issue #10979: unittest stdout buffering now works with class and module
setup and teardown.
- Issue #11569: use absolute path to the sysctl command in multiprocessing to
ensure that it will be found regardless of the shell PATH. This ensures
that multiprocessing.cpu_count works on default installs of MacOSX.
- Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified
IP addresses in the proxy exception list.
- Issue #11131: Fix sign of zero in plus and minus operations when
the context rounding mode is ROUND_FLOOR.
- Issue #5622: Fix curses.wrapper to raise correct exception if curses
initialization fails.
- Issue #11391: Writing to a mmap object created with
``mmap.PROT_READ|mmap.PROT_EXEC`` would segfault instead of raising a
TypeError. Patch by Charles-François Natali.
- Issue #11306: mailbox in certain cases adapts to an inability to open
certain files in read-write mode. Previously it detected this by
checking for EACCES, now it also checks for EROFS.
- Issue #11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors
on accept(), send() and recv().
- Issue #11326: Add the missing connect_ex() implementation for SSL sockets,
and make it work for non-blocking connects.
- Issue #10956: Buffered I/O classes retry reading or writing after a signal
has arrived and the handler returned successfully.
- Issue #10680: Fix mutually exclusive arguments for argument groups in
argparse.
- Issue #4681: Allow mmap() to work on file sizes and offsets larger than
4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for
32-bit Windows.
- Issue #10360: In WeakSet, do not raise TypeErrors when testing for
membership of non-weakrefable objects.
- Issue #10549: Fix pydoc traceback when text-documenting certain classes.
- Issue #940286: pydoc.Helper.help() ignores input/output init parameters.
- Issue #11171: Fix detection of config/Makefile when --prefix !=
--exec-prefix, which caused Python to not start.
- Issue #11116: any error during addition of a message to a mailbox now causes
a rollback, instead of leaving the mailbox partially modified.
- Issue #8275: Fix passing of callback arguments with ctypes under Win64.
Patch by Stan Mihai.
- Issue #10940: Workaround an IDLE hang on Mac OS X 10.6 when using the
menu accelerators for Open Module, Go to Line, and New Indent Width.
The accelerators still work but no longer appear in the menu items.
- Issue #10907: Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5, rather
than the currently problematic Apple-supplied one, when running with the
64-/32-bit installer variant.
- Issue #11052: Correct IDLE menu accelerators on Mac OS X for Save
commands.
- Issue #10949: Improved robustness of rotating file handlers.
- Issue #10955: Fix a potential crash when trying to mmap() a file past its
length. Initial patch by Ross Lagerwall.
- Issue #10898: Allow compiling the posix module when the C library defines
a symbol named FSTAT.
- Issue #6075: IDLE on Mac OS X now works with both Carbon AquaTk and
Cocoa AquaTk.
- Issue #10916: mmap should not segfault when a file is mapped using 0 as
length and a non-zero offset, and an attempt to read past the end of file
is made (IndexError is raised instead). Patch by Ross Lagerwall.
- Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'.
- Issue #10827: Changed the rules for 2-digit years. The time.asctime
function will now format any year when ``time.accept2dyear`` is
false and will accept years >= 1000 otherwise. The year range
accepted by ``time.mktime`` and ``time.strftime`` is still system
dependent, but ``time.mktime`` will now accept full range supported
by the OS. Conversion of 2-digit years to 4-digit is deprecated.
- Issue #10869: Fixed bug where ast.increment_lineno modified the root
node twice.
- Issue #7858: Raise an error properly when os.utime() fails under Windows
on an existing file.
- Issue #3839: wsgiref should not override a Content-Length header set by
the application. Initial patch by Clovis Fabricio.
- Issue #10806, issue #9905: Fix subprocess pipes when some of the standard
file descriptors (0, 1, 2) are closed in the parent process. Initial
patch by Ross Lagerwall.
- Issue #4662: os.tempnam(), os.tmpfile() and os.tmpnam() now raise a py3k
DeprecationWarning.
- Subclasses of collections.OrderedDict now work correctly with __missing__.
- Issue #10753 - Characters ';', '=' and ',' in the PATH_INFO environment
variable won't be quoted when the URI is constructed by the wsgiref.util 's
request_uri method. According to RFC 3986, these characters can be a part of
params in PATH component of URI and need not be quoted.
- Issue #10738: Fix webbrowser.Opera.raise_opts
- Issue #9824: SimpleCookie now encodes , and ; in values to cater to how
browsers actually parse cookies.
- Issue #1379416: eliminated a source of accidental unicode promotion in
email.header.Header.encode.
- Issue #5258/#10642: if site.py encounters a .pth file that generates an error,
it now prints the filename, line number, and traceback to stderr and skips
the rest of that individual file, instead of stopping processing entirely.
- Issue #10750: The ``raw`` attribute of buffered IO objects is now read-only.
- Issue #10242: unittest.TestCase.assertItemsEqual makes too many assumptions
about input.
- Issue #10611: SystemExit should not cause a unittest test run to exit.
- Issue #6791: Limit header line length (to 65535 bytes) in http.client,
to avoid denial of services from the other party.
- Issue #10404: Use ctl-button-1 on OSX for the context menu in Idle.
- Issue #9907: Fix tab handling on OSX when using editline by calling
rl_initialize first, then setting our custom defaults, then reading .editrc.
- Issue #4188: Avoid creating dummy thread objects when logging operations
from the threading module (with the internal verbose flag activated).
- Issue #9721: Fix the behavior of urljoin when the relative url starts with a
';' character. Patch by Wes Chow.
- Issue #10714: Limit length of incoming request in http.server to 65536 bytes
for security reasons. Initial patch by Ross Lagerwall.
- Issue #9558: Fix distutils.command.build_ext with VS 8.0.
- Issue #10695: passing the port as a string value to telnetlib no longer
causes debug mode to fail.
- Issue #10107: Warn about unsaved files in IDLE on OSX.
- Issue #10406: Enable Rstrip IDLE extension on OSX (just like on other
platforms).
- Issue #10478: Reentrant calls inside buffered IO objects (for example by
way of a signal handler) now raise a RuntimeError instead of freezing the
current process.
- Issue #10497: Fix incorrect use of gettext in argparse.
- Issue #10464: netrc now correctly handles lines with embedded '#' characters.
- Issue #1731717: Fixed the problem where subprocess.wait() could cause an
OSError exception when The OS had been told to ignore SIGCLD in our process
or otherwise not wait for exiting child processes.
- Issue #9509: argparse now properly handles IOErrors raised by
argparse.FileType.
- Issue #9348: Raise an early error if argparse nargs and metavar don't match.
- Issue #8982: Improve the documentation for the argparse Namespace object.
- Issue #9343: Document that argparse parent parsers must be configured before
their children.
- Issue #9026: Fix order of argparse sub-commands in help messages.
- Issue #9347: Fix formatting for tuples in argparse type= error messages.
Extension Modules
-----------------
- Stop using the old interface for providing methods and attributes in the _sre
module. Among other things, this gives these classes ``__class__``
attributes. (See #12099)
- Issue #10169: Fix argument parsing in socket.sendto() to avoid error masking.
- Issue #12051: Fix segfault in json.dumps() while encoding highly-nested
objects using the C accelerations.
- Issue #12017: Fix segfault in json.loads() while decoding highly-nested
objects using the C accelerations.
- Issue #1838: Prevent segfault in ctypes, when _as_parameter_ on a class is set
to an instance of the class.
- Issue #678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY.
Build
-----
- Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds,
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
- Issue #11411: Fix 'make DESTDIR=' with a relative destination.
- Issue #10709: Add updated AIX notes in Misc/README.AIX.
- Issue #11184: Fix large-file support on AIX.
- Issue #941346: Fix broken shared library build on AIX.
- Issue #11268: Prevent Mac OS X Installer failure if Documentation
package had previously been installed.
- Issue #11079: The /Applications/Python x.x folder created by the Mac
OS X installers now includes a link to the installed documentation.
- Issue #11054: Allow Mac OS X installer builds to again work on 10.5 with
the system-provided Python.
- Issue #10843: Update third-party library versions used in OS X
32-bit installer builds: bzip2 1.0.6, readline 6.1.2, SQLite 3.7.4
(with FTS3/FTS4 and RTREE enabled), and ncursesw 5.5 (wide-char
support enabled).
- Don't run pgen twice when using make -j.
- Issue #7716: Under Solaris, don't assume existence of /usr/xpg4/bin/grep in
the configure script but use $GREP instead. Patch by Fabian Groffen.
- Issue #10475: Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD
and DragonFly BSD. Patch by Nicolas Joly.
- Issue #10655: Fix the build on PowerPC on Linux with GCC when building with
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC
support now looks for "__powerpc__" as well as "__ppc__": the latter seems to
only be present on OS X; the former is the correct one for Linux with GCC.
- Issue #1099: Fix the build on MacOSX when building a framework with pydebug
using GCC 4.0.
IDLE
----
- Issue #11718: IDLE's open module dialog couldn't find the __init__.py
file in a package.
Tests
-----
- Issue #12205: Fix test_subprocess failure due to uninstalled test data.
- Issue #5723: Improve json tests to be executed with and without accelerations.
- Issue #11910: Fix test_heapq to skip the C tests when _heapq is missing.
- Fix test_startfile to wait for child process to terminate before finishing.
- Issue #11719: Fix message about unexpected test_msilib skip on non-Windows
platforms. Patch by Nadeem Vawda.
- Issue #7108: Fix test_commands to not fail when special attributes ('@'
or '.') appear in 'ls -l' output.
- Issue #11490: test_subprocess:test_leaking_fds_on_error no longer gives a
false positive if the last directory in the path is inaccessible.
- Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch
by Ross Lagerwall.
- Issue #6293: Have regrtest.py echo back sys.flags. This is done by default
in whole runs and enabled selectively using ``--header`` when running an
explicit list of tests. Original patch by Collin Winter.
- Issue #775964: test_grp now skips YP/NIS entries instead of failing when
encountering them.
- Issue #7110: regrtest now sends test failure reports and single-failure
tracebacks to stderr rather than stdout.
Diffstat (limited to 'lang/python27')
-rw-r--r-- | lang/python27/Makefile | 3 | ||||
-rw-r--r-- | lang/python27/PLIST.common | 78 | ||||
-rw-r--r-- | lang/python27/dist.mk | 4 | ||||
-rw-r--r-- | lang/python27/distinfo | 20 | ||||
-rw-r--r-- | lang/python27/patches/patch-al | 24 | ||||
-rw-r--r-- | lang/python27/patches/patch-am | 22 | ||||
-rw-r--r-- | lang/python27/patches/patch-ao | 6 | ||||
-rw-r--r-- | lang/python27/patches/patch-au | 8 | ||||
-rw-r--r-- | lang/python27/patches/patch-ax | 6 | ||||
-rw-r--r-- | lang/python27/patches/patch-ca | 29 | ||||
-rw-r--r-- | lang/python27/patches/patch-cb | 21 |
11 files changed, 83 insertions, 138 deletions
diff --git a/lang/python27/Makefile b/lang/python27/Makefile index c67d473ba1d..ee862549b2a 100644 --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -1,9 +1,8 @@ -# $NetBSD: Makefile,v 1.4 2011/04/23 10:35:28 tron Exp $ +# $NetBSD: Makefile,v 1.5 2011/06/13 11:31:13 obache Exp $ .include "dist.mk" PKGNAME= python27-${PY_DISTVERSION} -PKGREVISION= 3 CATEGORIES= lang python MAINTAINER= pkgsrc-users@NetBSD.org diff --git a/lang/python27/PLIST.common b/lang/python27/PLIST.common index aa94b413bd5..66a57f8873b 100644 --- a/lang/python27/PLIST.common +++ b/lang/python27/PLIST.common @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST.common,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ +@comment $NetBSD: PLIST.common,v 1.2 2011/06/13 11:31:13 obache Exp $ bin/2to3-${PY_VER_SUFFIX} bin/pydoc${PY_VER_SUFFIX} bin/python${PY_VER_SUFFIX} @@ -1939,6 +1939,9 @@ lib/python${PY_VER_SUFFIX}/lib2to3/PatternGrammar${PKGVERSION}.final.0.pickle lib/python${PY_VER_SUFFIX}/lib2to3/__init__.py lib/python${PY_VER_SUFFIX}/lib2to3/__init__.pyc lib/python${PY_VER_SUFFIX}/lib2to3/__init__.pyo +lib/python${PY_VER_SUFFIX}/lib2to3/__main__.py +lib/python${PY_VER_SUFFIX}/lib2to3/__main__.pyc +lib/python${PY_VER_SUFFIX}/lib2to3/__main__.pyo lib/python${PY_VER_SUFFIX}/lib2to3/btm_matcher.py lib/python${PY_VER_SUFFIX}/lib2to3/btm_matcher.pyc lib/python${PY_VER_SUFFIX}/lib2to3/btm_matcher.pyo @@ -2578,9 +2581,32 @@ lib/python${PY_VER_SUFFIX}/test/buffer_tests.pyc lib/python${PY_VER_SUFFIX}/test/buffer_tests.pyo lib/python${PY_VER_SUFFIX}/test/cfgparser.1 lib/python${PY_VER_SUFFIX}/test/check_soundcard.vbs -lib/python${PY_VER_SUFFIX}/test/cjkencodings_test.py -lib/python${PY_VER_SUFFIX}/test/cjkencodings_test.pyc -lib/python${PY_VER_SUFFIX}/test/cjkencodings_test.pyo +lib/python${PY_VER_SUFFIX}/test/cjkencodings/big5-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/big5.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/big5hkscs-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/big5hkscs.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/cp949-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/cp949.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/euc_jisx0213-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/euc_jisx0213.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/euc_jp-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/euc_jp.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/euc_kr-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/euc_kr.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/gb18030-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/gb18030.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/gb2312-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/gb2312.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/gbk-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/gbk.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/hz-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/hz.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/johab-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/johab.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/shift_jis-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/shift_jis.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/shift_jisx0213-utf8.txt +lib/python${PY_VER_SUFFIX}/test/cjkencodings/shift_jisx0213.txt lib/python${PY_VER_SUFFIX}/test/cmath_testcases.txt lib/python${PY_VER_SUFFIX}/test/curses_tests.py lib/python${PY_VER_SUFFIX}/test/curses_tests.pyc @@ -2827,6 +2853,9 @@ lib/python${PY_VER_SUFFIX}/test/ssl_key.pem lib/python${PY_VER_SUFFIX}/test/string_tests.py lib/python${PY_VER_SUFFIX}/test/string_tests.pyc lib/python${PY_VER_SUFFIX}/test/string_tests.pyo +lib/python${PY_VER_SUFFIX}/test/subprocessdata/sigchild_ignore.py +lib/python${PY_VER_SUFFIX}/test/subprocessdata/sigchild_ignore.pyc +lib/python${PY_VER_SUFFIX}/test/subprocessdata/sigchild_ignore.pyo lib/python${PY_VER_SUFFIX}/test/svn_python_org_https_cert.pem lib/python${PY_VER_SUFFIX}/test/test_MimeWriter.py lib/python${PY_VER_SUFFIX}/test/test_MimeWriter.pyc @@ -3475,6 +3504,9 @@ lib/python${PY_VER_SUFFIX}/test/test_module.pyo lib/python${PY_VER_SUFFIX}/test/test_modulefinder.py lib/python${PY_VER_SUFFIX}/test/test_modulefinder.pyc lib/python${PY_VER_SUFFIX}/test/test_modulefinder.pyo +lib/python${PY_VER_SUFFIX}/test/test_msilib.py +lib/python${PY_VER_SUFFIX}/test/test_msilib.pyc +lib/python${PY_VER_SUFFIX}/test/test_msilib.pyo lib/python${PY_VER_SUFFIX}/test/test_multibytecodec.py lib/python${PY_VER_SUFFIX}/test/test_multibytecodec.pyc lib/python${PY_VER_SUFFIX}/test/test_multibytecodec.pyo @@ -3790,45 +3822,15 @@ lib/python${PY_VER_SUFFIX}/test/test_syntax.pyo lib/python${PY_VER_SUFFIX}/test/test_sys.py lib/python${PY_VER_SUFFIX}/test/test_sys.pyc lib/python${PY_VER_SUFFIX}/test/test_sys.pyo -lib/python${PY_VER_SUFFIX}/test/test_sysconfig.py -lib/python${PY_VER_SUFFIX}/test/test_sysconfig.pyc -lib/python${PY_VER_SUFFIX}/test/test_sysconfig.pyo lib/python${PY_VER_SUFFIX}/test/test_sys_setprofile.py lib/python${PY_VER_SUFFIX}/test/test_sys_setprofile.pyc lib/python${PY_VER_SUFFIX}/test/test_sys_setprofile.pyo lib/python${PY_VER_SUFFIX}/test/test_sys_settrace.py lib/python${PY_VER_SUFFIX}/test/test_sys_settrace.pyc lib/python${PY_VER_SUFFIX}/test/test_sys_settrace.pyo -lib/python${PY_VER_SUFFIX}/test/test_tarfile.py -lib/python${PY_VER_SUFFIX}/test/test_tarfile.pyc -lib/python${PY_VER_SUFFIX}/test/test_tarfile.pyo -lib/python${PY_VER_SUFFIX}/test/test_tcl.py -lib/python${PY_VER_SUFFIX}/test/test_tcl.pyc -lib/python${PY_VER_SUFFIX}/test/test_tcl.pyo -lib/python${PY_VER_SUFFIX}/test/test_telnetlib.py -lib/python${PY_VER_SUFFIX}/test/test_telnetlib.pyc -lib/python${PY_VER_SUFFIX}/test/test_telnetlib.pyo -lib/python${PY_VER_SUFFIX}/test/test_tempfile.py -lib/python${PY_VER_SUFFIX}/test/test_tempfile.pyc -lib/python${PY_VER_SUFFIX}/test/test_tempfile.pyo -lib/python${PY_VER_SUFFIX}/test/test_textwrap.py -lib/python${PY_VER_SUFFIX}/test/test_textwrap.pyc -lib/python${PY_VER_SUFFIX}/test/test_textwrap.pyo -lib/python${PY_VER_SUFFIX}/test/test_thread.py -lib/python${PY_VER_SUFFIX}/test/test_thread.pyc -lib/python${PY_VER_SUFFIX}/test/test_thread.pyo -lib/python${PY_VER_SUFFIX}/test/test_threaded_import.py -lib/python${PY_VER_SUFFIX}/test/test_threaded_import.pyc -lib/python${PY_VER_SUFFIX}/test/test_threaded_import.pyo -lib/python${PY_VER_SUFFIX}/test/test_threadedtempfile.py -lib/python${PY_VER_SUFFIX}/test/test_threadedtempfile.pyc -lib/python${PY_VER_SUFFIX}/test/test_threadedtempfile.pyo -lib/python${PY_VER_SUFFIX}/test/test_threading.py -lib/python${PY_VER_SUFFIX}/test/test_threading.pyc -lib/python${PY_VER_SUFFIX}/test/test_threading.pyo -lib/python${PY_VER_SUFFIX}/test/test_threading_local.py -lib/python${PY_VER_SUFFIX}/test/test_threading_local.pyc -lib/python${PY_VER_SUFFIX}/test/test_threading_local.pyo +lib/python${PY_VER_SUFFIX}/test/test_sysconfig.py +lib/python${PY_VER_SUFFIX}/test/test_sysconfig.pyc +lib/python${PY_VER_SUFFIX}/test/test_sysconfig.pyo lib/python${PY_VER_SUFFIX}/test/test_tarfile.py lib/python${PY_VER_SUFFIX}/test/test_tarfile.pyc lib/python${PY_VER_SUFFIX}/test/test_tarfile.pyo @@ -4049,13 +4051,13 @@ lib/python${PY_VER_SUFFIX}/test/threaded_import_hangers.pyo lib/python${PY_VER_SUFFIX}/test/time_hashlib.py lib/python${PY_VER_SUFFIX}/test/time_hashlib.pyc lib/python${PY_VER_SUFFIX}/test/time_hashlib.pyo +lib/python${PY_VER_SUFFIX}/test/tokenize_tests.txt lib/python${PY_VER_SUFFIX}/test/tracedmodules/__init__.py lib/python${PY_VER_SUFFIX}/test/tracedmodules/__init__.pyc lib/python${PY_VER_SUFFIX}/test/tracedmodules/__init__.pyo lib/python${PY_VER_SUFFIX}/test/tracedmodules/testmod.py lib/python${PY_VER_SUFFIX}/test/tracedmodules/testmod.pyc lib/python${PY_VER_SUFFIX}/test/tracedmodules/testmod.pyo -lib/python${PY_VER_SUFFIX}/test/tokenize_tests.txt lib/python${PY_VER_SUFFIX}/test/warning_tests.py lib/python${PY_VER_SUFFIX}/test/warning_tests.pyc lib/python${PY_VER_SUFFIX}/test/warning_tests.pyo diff --git a/lang/python27/dist.mk b/lang/python27/dist.mk index b3ac0354721..63760eed1d6 100644 --- a/lang/python27/dist.mk +++ b/lang/python27/dist.mk @@ -1,6 +1,6 @@ -# $NetBSD: dist.mk,v 1.1.1.1 2011/02/22 08:51:58 obache Exp $ +# $NetBSD: dist.mk,v 1.2 2011/06/13 11:31:13 obache Exp $ -PY_DISTVERSION= 2.7.1 +PY_DISTVERSION= 2.7.2 DISTNAME= Python-${PY_DISTVERSION} EXTRACT_SUFX= .tar.bz2 DISTINFO_FILE= ${.CURDIR}/../../lang/python27/distinfo diff --git a/lang/python27/distinfo b/lang/python27/distinfo index 14567a05066..01448da19d2 100644 --- a/lang/python27/distinfo +++ b/lang/python27/distinfo @@ -1,20 +1,18 @@ -$NetBSD: distinfo,v 1.4 2011/05/06 16:27:04 abs Exp $ +$NetBSD: distinfo,v 1.5 2011/06/13 11:31:13 obache Exp $ -SHA1 (Python-2.7.1.tar.bz2) = fbe1894322ff91b80726e269c97454f4129fc2a3 -RMD160 (Python-2.7.1.tar.bz2) = 3ce59305f6cd3fb320a53771d0ea01ec0687005f -Size (Python-2.7.1.tar.bz2) = 11722546 bytes +SHA1 (Python-2.7.2.tar.bz2) = 417bdeea77abfaf1b9257fc6b4a04aaa209f4547 +RMD160 (Python-2.7.2.tar.bz2) = c3bf4f09b7c429a4d9f4cc251c795304cd5232c5 +Size (Python-2.7.2.tar.bz2) = 11754834 bytes SHA1 (patch-aa) = 990e4025bb6a37715e1f5df1831499f0ab08acfa SHA1 (patch-ab) = 8c44f60d9ed0babb107bc4643b0437e2dd55d03a SHA1 (patch-ad) = de730b9f5a5efb56afa8bed05824b5f6579242ec SHA1 (patch-ae) = ff6d8c6164fe3c6dc4fb33d88eb8a49d5c5442f6 SHA1 (patch-ah) = 8e9ee44c7a054f1387b6d8ef8dbe9c1b8dc8d891 -SHA1 (patch-al) = 2c6a578b62dfba45b2ba01a6b004f1d8feee0fe2 -SHA1 (patch-am) = 760ed52308b31043bbf28528adf2a99f2420d85b +SHA1 (patch-al) = f1c11a62106a5b5c2346d326525b85039d00f503 +SHA1 (patch-am) = 8b546a0eb9b5e6d287b6fead2d0c20fd457b5b66 SHA1 (patch-an) = 6098fbf0fc31422196cc40d3a227934523db11ca -SHA1 (patch-ao) = 2061473e5e672b4cc38d91c5d8f885cb361a35b3 -SHA1 (patch-au) = 700dc128833af755f3ea08c4db79c127453b12e6 +SHA1 (patch-ao) = 9996a444fc0034c9f01fd18f4ad7bf714a8c8d04 +SHA1 (patch-au) = 18fce68df48e43c2927cc83e6b4b404b5e1103b7 SHA1 (patch-av) = a14eaf4d5db6fc3b79ed896fbfcc34ca98051af2 SHA1 (patch-aw) = 15652e241f371a22c7300f46771825ea74514fa0 -SHA1 (patch-ax) = b3a69107d3abbc8476ce79fb05aa8c9f293896a2 -SHA1 (patch-ca) = aa0ad5a9dff1cd7c1c456aa6371733727ac1425b -SHA1 (patch-cb) = f8fa30bb9aae0ef02c187d1d6db176bac731381e +SHA1 (patch-ax) = bdb8e6555f36b1603c553e03a2d6d772e50c623b diff --git a/lang/python27/patches/patch-al b/lang/python27/patches/patch-al index 913b87063b7..c160d562c07 100644 --- a/lang/python27/patches/patch-al +++ b/lang/python27/patches/patch-al @@ -1,8 +1,8 @@ -$NetBSD: patch-al,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ +$NetBSD: patch-al,v 1.2 2011/06/13 11:31:13 obache Exp $ ---- configure.orig 2010-11-01 01:47:19.000000000 +0000 +--- configure.orig 2011-06-11 15:46:28.000000000 +0000 +++ configure -@@ -4912,15 +4912,10 @@ $as_echo "#define Py_ENABLE_SHARED 1" >> +@@ -4927,15 +4927,10 @@ $as_echo "#define Py_ENABLE_SHARED 1" >> RUNSHARED=LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH} INSTSONAME="$LDLIBRARY".$SOVERSION ;; @@ -19,7 +19,7 @@ $NetBSD: patch-al,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ INSTSONAME="$LDLIBRARY".$SOVERSION ;; hp*|HP*) -@@ -7586,9 +7581,9 @@ then +@@ -7648,9 +7643,9 @@ then LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' else # No framework, use the Python app as bundle-loader @@ -32,7 +32,7 @@ $NetBSD: patch-al,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ fi ;; Darwin/*) # Use -undefined dynamic_lookup whenever possible (10.3 and later). -@@ -7612,15 +7607,15 @@ then +@@ -7674,15 +7669,15 @@ then LDCXXSHARED="$LDCXXSHARED "'$(PYTHONFRAMEWORKPREFIX)/$(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)' else # No framework, use the Python app as bundle-loader @@ -52,21 +52,17 @@ $NetBSD: patch-al,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ BSD/OS*/4*) LDSHARED="gcc -shared" LDCXXSHARED="g++ -shared";; -@@ -7649,8 +7644,11 @@ then - esac - fi;; +@@ -7713,6 +7708,9 @@ then NetBSD*|DragonFly*) -- LDSHARED="cc -shared ${LDFLAGS}" -- LDCXXSHARED="c++ -shared ${LDFLAGS}";; -+ LDSHARED='$(CC) -shared' -+ LDCXXSHARED='$(CXX) -shared ${LDFLAGS}';; + LDSHARED='$(CC) -shared' + LDCXXSHARED='$(CXX) -shared';; + Interix*) + LDSHARED='$(CC) -shared'" ${LDFLAGS}" + LDCXXSHARED='$(CXX) -shared'" ${LDFLAGS}";; # XXX tv needs image-base hack OpenUNIX*|UnixWare*) if test "$GCC" = "yes" ; then LDSHARED='$(CC) -shared' -@@ -7695,6 +7693,7 @@ then +@@ -7757,6 +7755,7 @@ then Linux*|GNU*) CCSHARED="-fPIC";; BSD/OS*/4*) CCSHARED="-fpic";; FreeBSD*|NetBSD*|OpenBSD*|DragonFly*) CCSHARED="-fPIC";; @@ -74,7 +70,7 @@ $NetBSD: patch-al,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ OpenUNIX*|UnixWare*) if test "$GCC" = "yes" then CCSHARED="-fPIC" -@@ -7751,6 +7750,7 @@ then +@@ -7813,6 +7812,7 @@ then then LINKFORSHARED="-Wl,--export-dynamic" fi;; diff --git a/lang/python27/patches/patch-am b/lang/python27/patches/patch-am index 3db7010efc7..5163f520b34 100644 --- a/lang/python27/patches/patch-am +++ b/lang/python27/patches/patch-am @@ -1,4 +1,4 @@ -$NetBSD: patch-am,v 1.2 2011/05/06 16:27:04 abs Exp $ +$NetBSD: patch-am,v 1.3 2011/06/13 11:31:13 obache Exp $ Disabled modules for normal build: bsddb @@ -19,7 +19,7 @@ headers and libraries from the system. Build the 1.85 compat module all the time against the BDB version of choice. ---- setup.py.orig 2010-10-31 16:40:21.000000000 +0000 +--- setup.py.orig 2011-06-11 15:46:28.000000000 +0000 +++ setup.py @@ -21,7 +21,7 @@ from distutils.spawn import find_executa COMPILED_WITH_PYDEBUG = hasattr(sys, 'gettotalrefcount') @@ -30,8 +30,8 @@ Build the 1.85 compat module all the time against the BDB version of choice. def add_dir_to_list(dirlist, dir): """Add the directory 'dir' to the list 'dirlist' (at the front) if -@@ -346,9 +346,15 @@ class PyBuildExt(build_ext): - return sys.platform +@@ -368,9 +368,15 @@ class PyBuildExt(build_ext): + os.unlink(tmpfile) def detect_modules(self): - # Ensure that /usr/local is always used @@ -46,10 +46,10 @@ Build the 1.85 compat module all the time against the BDB version of choice. + self.compiler.library_dirs.insert(0, libdir) + if incdir not in self.compiler.include_dirs: + self.compiler.include_dirs.insert(0, incdir) + self.add_multiarch_paths() # Add paths specified in the environment variables LDFLAGS and - # CPPFLAGS for header and library files. -@@ -692,9 +698,7 @@ class PyBuildExt(build_ext): +@@ -715,9 +721,7 @@ class PyBuildExt(build_ext): if krb5_h: ssl_incs += krb5_h ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs, @@ -60,7 +60,7 @@ Build the 1.85 compat module all the time against the BDB version of choice. if (ssl_incs is not None and ssl_libs is not None): -@@ -809,172 +813,6 @@ class PyBuildExt(build_ext): +@@ -832,172 +836,6 @@ class PyBuildExt(build_ext): else: raise ValueError("unknown major BerkeleyDB version", major) @@ -190,7 +190,7 @@ Build the 1.85 compat module all the time against the BDB version of choice. - tmp.append(dn) - db_dirs_to_check = tmp - -- # Look for a version specific db-X.Y before an ambiguoius dbX +- # Look for a version specific db-X.Y before an ambiguous dbX - # XXX should we -ever- look for a dbX name? Do any - # systems really not name their library by version and - # symlink to more general names? @@ -233,7 +233,7 @@ Build the 1.85 compat module all the time against the BDB version of choice. # The sqlite interface sqlite_setup_debug = False # verbose debug prints from this script? -@@ -1090,31 +928,12 @@ class PyBuildExt(build_ext): +@@ -1113,31 +951,12 @@ class PyBuildExt(build_ext): # we do not build this one. Otherwise this build will pick up # the more recent berkeleydb's db.h file first in the include path # when attempting to compile and it will fail. @@ -270,7 +270,7 @@ Build the 1.85 compat module all the time against the BDB version of choice. dbm_order = ['gdbm'] # The standard Unix dbm module: -@@ -1170,18 +989,14 @@ class PyBuildExt(build_ext): +@@ -1193,18 +1012,14 @@ class PyBuildExt(build_ext): libraries = gdbm_libs) break elif cand == "bdb": @@ -297,7 +297,7 @@ Build the 1.85 compat module all the time against the BDB version of choice. if dbmext is not None: exts.append(dbmext) else: -@@ -2043,9 +1858,9 @@ def main(): +@@ -2066,9 +1881,9 @@ def main(): ext_modules=[Extension('_struct', ['_struct.c'])], # Scripts to install diff --git a/lang/python27/patches/patch-ao b/lang/python27/patches/patch-ao index ff10f86a2bb..214d531f22e 100644 --- a/lang/python27/patches/patch-ao +++ b/lang/python27/patches/patch-ao @@ -1,8 +1,8 @@ -$NetBSD: patch-ao,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ +$NetBSD: patch-ao,v 1.2 2011/06/13 11:31:13 obache Exp $ ---- Lib/distutils/util.py.orig 2010-05-05 19:09:31.000000000 +0000 +--- Lib/distutils/util.py.orig 2011-06-11 15:46:24.000000000 +0000 +++ Lib/distutils/util.py -@@ -177,6 +177,8 @@ def get_platform (): +@@ -176,6 +176,8 @@ def get_platform (): # See 'i386' case if sys.maxint >= 2**32: machine = 'ppc64' diff --git a/lang/python27/patches/patch-au b/lang/python27/patches/patch-au index 0e62877b1fc..1841ab3e402 100644 --- a/lang/python27/patches/patch-au +++ b/lang/python27/patches/patch-au @@ -1,8 +1,8 @@ -$NetBSD: patch-au,v 1.2 2011/02/22 10:50:38 adam Exp $ +$NetBSD: patch-au,v 1.3 2011/06/13 11:31:13 obache Exp $ ---- Makefile.pre.in.orig 2010-04-12 00:10:46.000000000 +0000 +--- Makefile.pre.in.orig 2011-06-11 15:46:26.000000000 +0000 +++ Makefile.pre.in -@@ -444,7 +444,7 @@ gdbhooks: $(BUILDPYTHON)-gdb.py +@@ -447,7 +447,7 @@ gdbhooks: $(BUILDPYTHON)-gdb.py SRC_GDB_HOOKS=$(srcdir)/Tools/gdb/libpython.py $(BUILDPYTHON)-gdb.py: $(SRC_GDB_HOOKS) @@ -11,7 +11,7 @@ $NetBSD: patch-au,v 1.2 2011/02/22 10:50:38 adam 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 -@@ -815,7 +815,8 @@ altbininstall: $(BUILDPYTHON) +@@ -820,7 +820,8 @@ altbininstall: $(BUILDPYTHON) (cd $(DESTDIR)$(LIBDIR); $(LN) -sf $(INSTSONAME) $(LDLIBRARY)) \ fi \ fi; \ diff --git a/lang/python27/patches/patch-ax b/lang/python27/patches/patch-ax index 25d29badf8a..536c4321fe1 100644 --- a/lang/python27/patches/patch-ax +++ b/lang/python27/patches/patch-ax @@ -1,10 +1,10 @@ -$NetBSD: patch-ax,v 1.1.1.1 2011/02/22 08:52:01 obache Exp $ +$NetBSD: patch-ax,v 1.2 2011/06/13 11:31:13 obache Exp $ chop "-RELEASE" or "-DEVELOPMENT" from release for DragonFly. ---- Lib/sysconfig.py.orig 2010-11-06 04:06:18.000000000 +0000 +--- Lib/sysconfig.py.orig 2011-06-11 15:46:25.000000000 +0000 +++ Lib/sysconfig.py -@@ -697,6 +697,8 @@ def get_platform(): +@@ -679,6 +679,8 @@ def get_platform(): machine = 'ppc64' else: machine = 'ppc' diff --git a/lang/python27/patches/patch-ca b/lang/python27/patches/patch-ca deleted file mode 100644 index 457474d629a..00000000000 --- a/lang/python27/patches/patch-ca +++ /dev/null @@ -1,29 +0,0 @@ -$NetBSD: patch-ca,v 1.1 2011/03/28 16:00:07 drochner Exp $ - -Issue #11662 (CVE-2011-1521) - ---- Lib/urllib.py.orig 2007-03-14 08:27:57.000000000 +0000 -+++ Lib/urllib.py -@@ -638,10 +638,20 @@ class FancyURLopener(URLopener): - newurl = headers['uri'] - else: - return -- void = fp.read() -- fp.close() -+ - # In case the server sent a relative URL, join with original: - newurl = basejoin(self.type + ":" + url, newurl) -+ -+ # For security reasons we do not allow redirects to protocols -+ # other than HTTP, HTTPS or FTP. -+ newurl_lower = newurl.lower() -+ if not (newurl_lower.startswith('http://') or -+ newurl_lower.startswith('https://') or -+ newurl_lower.startswith('ftp://')): -+ return -+ -+ void = fp.read() -+ fp.close() - return self.open(newurl) - - def http_error_301(self, url, fp, errcode, errmsg, headers, data=None): diff --git a/lang/python27/patches/patch-cb b/lang/python27/patches/patch-cb deleted file mode 100644 index 1af34378a99..00000000000 --- a/lang/python27/patches/patch-cb +++ /dev/null @@ -1,21 +0,0 @@ -$NetBSD: patch-cb,v 1.1 2011/03/28 16:00:07 drochner Exp $ - -Issue #11662 (CVE-2011-1521) - ---- Lib/urllib2.py.orig 2011-03-28 15:17:02.000000000 +0000 -+++ Lib/urllib2.py -@@ -578,6 +578,14 @@ class HTTPRedirectHandler(BaseHandler): - - newurl = urlparse.urljoin(req.get_full_url(), newurl) - -+ # For security reasons we do not allow redirects to protocols -+ # other than HTTP, HTTPS or FTP. -+ newurl_lower = newurl.lower() -+ if not (newurl_lower.startswith('http://') or -+ newurl_lower.startswith('https://') or -+ newurl_lower.startswith('ftp://')): -+ return -+ - # XXX Probably want to forget about the state of the current - # request, although that might interact poorly with other - # handlers that also use handler-specific request attributes |