pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/python27 python27: updated to 2.7.17



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a64520ed3546
branches:  trunk
changeset: 416194:a64520ed3546
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Oct 21 09:40:35 2019 +0000

description:
python27: updated to 2.7.17

2.7.17:
Escape the server title of :class:`DocXMLRPCServer.DocXMLRPCServer` when
rendering the document page as HTML.

Update vendorized expat library version to 2.2.8, which resolves
CVE-2019-15903.

Updated OpenSSL to 1.0.2s in Windows installer

Don't set cookie for a request when the request path is a prefix match of
the cookie's path attribute but doesn't end with "/".

Don't send cookies of domain A without Domain attribute to domain B when
domain A is a suffix match of domain B while using a cookiejar with
:class:`cookielib.DefaultCookiePolicy` policy.

Fix parsing of invalid email addresses with more than one ``@`` (e.g.
a@b%c.com@localhost.) to not return the part before 2nd ``@`` as valid email address.

Fixes mishandling of pre-normalization characters in urlsplit().

Address CVE-2019-9740 by disallowing URL paths with embedded whitespace or
control characters through into the underlying http client request.  Such
potentially malicious header injection URLs now cause an httplib.InvalidURL
exception to be raised.

Changes urlsplit() to raise ValueError when the URL contains characters that
decompose under IDNA encoding (NFKC-normalization) into characters that
affect how the URL is parsed.

CVE-2019-9948: Avoid file reading by disallowing ``local-file://`` and
``local_file://`` URL schemes in :func:`urllib.urlopen`,
:meth:`urllib.URLopener.open` and :meth:`urllib.URLopener.retrieve`.

Fix race in PyThread_release_lock that was leading to memory corruption and
deadlocks. The fix applies to POSIX systems where Python locks are
implemented with mutex and condition variable because POSIX semaphores are
either not provided, or are known to be broken. One particular example of
such system is macOS.

valgrind: suppress a false alarm in memory leak checks. _PyWarnings_Init()
only allocates memory once at startup but it is not released at exit. Ignore
this issue to be able to catch other bugs more easily.

Fix possible overflow in ``wrap_lenfunc()`` when ``sizeof(long) <
sizeof(Py_ssize_t)`` (e.g., 64-bit Windows).

pymalloc returns memory blocks aligned by 16 bytes, instead of 8 bytes, on
64-bit platforms to conform x86-64 ABI. Recent compilers assume this
alignment more often.

Fix signed integer overflow in _ctypes.c's ``PyCArrayType_new()``.

Fix a possible double ``PyMem_FREE()`` due to tokenizer.c's ``tok_nextc()``.

Fix a possible reference leak in :func:`itertools.count`.

PyOS_StdioReadline() no longer leaks memory when realloc() fails.

Fix an unlikely memory leak on conversion from string to float in the
function ``_Py_dg_strtod()`` used by ``float(str)``, ``complex(str)``,
:func:`pickle.load`, :func:`marshal.load`, etc.

Fix use of uninitialized memory in cPickle when reading a truncated pickle
from a file object.

Clarified Doc string for builtin filter function. 2nd Argument can be any
iterable.

Allow the rare code that wants to send invalid http requests from the
`http.client` library a way to do so.  The fixes for bpo-30458 led to
breakage for some projects that were relying on this ability to test their
own behavior in the face of bad requests.

Fix a memory leak in comparison of :class:`sqlite3.Row` objects.

_hashlib no longer calls obsolete OpenSSL initialization function with
OpenSSL 1.1.0+.

Fixed a crash in the :func:`tee` iterator when re-enter it. RuntimeError is
now raised in this case.

Fix C compiler warning caused by distutils.ccompiler.CCompiler.has_function.

Fix file descriptors transfer in multiprocessing on FreeBSD: use
``CMSG_SPACE()`` rather than ``CMSG_LEN()``; see :rfc:`3542`.

Update wheels bundled with ensurepip (pip 19.2.3 and setuptools 41.2.0)

Update vendorized expat version to 2.2.7.

:func:`urlparse.urlsplit` error message for invalid ``netloc`` according to
NFKC normalization is now a :class:`str` string, rather than a
:class:`unicode` string, to prevent error when displaying the error.

:meth:`msilib.Directory.start_component()` no longer fails if *keyfile* is
not ``None``.

Rename the :meth:`test_ascii_replace` to :meth:`test_ascii_strict`.

Fix :mod:`distutils.sysconfig` if :data:`sys.executable` is ``None`` or an
empty string: use :func:`os.getcwd` to initialize ``project_base``.  Fix
also the distutils build command: don't use :data:`sys.executable` if it is
``None`` or an empty string.

Fix buffer overflow in :meth:`~socket.socket.send` and
:meth:`~socket.socket.sendall` methods of :func:`socket.socket` for data
larger than 2 GiB.

Fix a possible reference leak in the json module.

Fix a possible reference leak in the io module.

Fix two possible reference leaks in the hotshot module.

Fix ``CFLAGS`` in ``customize_compiler()`` of ``distutils.sysconfig``: when
the ``CFLAGS`` environment variable is defined, don't override ``CFLAGS``
variable with the ``OPT`` variable anymore.

Update ensurepip to install pip 19.0.3 and setuptools 40.8.0.

Fix linuxaudiodev.linux_audio_device() error handling: close the internal
file descriptor if it fails to open the device.

Fix memory leak in ctypes POINTER handling of large values.

Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases.

Resolve potential name clash with libm's sinpi().

Fix ``setup.py check --restructuredtext`` for files containing ``include``
directives.

Fix PyList_GetItem index description to include 0.

Replace the dead link to the Tkinter 8.5 reference by John Shipman, New
Mexico Tech, with a link to the archive.org copy.

Improve the examples in the "How do I convert a number to string?" question
of the "Programming" section of the FAQ.

Fix documentation build for sphinx<1.6.

Explicitly set master_doc variable in conf.py for compliance with Sphinx 2.0

Add glossary entry for 'magic method'.

Fix test_wsgiref.testEnviron() to no longer depend on the environment
variables (don't fail if "X" variable is set).

Add --cleanup option to python3 -m test to remove ``test_python_*``
directories of previous failed jobs. Add "make cleantest" to run ``python3
-m test --cleanup``.

test_gdb no longer fails if it gets an "unexpected" message on stderr: it
now ignores stderr. The purpose of test_gdb is to test that python-gdb.py
commands work as expected, not to test gdb.

Update Lib/test/selfsigned_pythontestdotnet.pem to match
self-signed.pythontest.net's new TLS certificate.

Skip specific nntplib and ssl networking tests when they would otherwise
fail due to a modern OS or distro with a default OpenSSL policy of rejecting
connections to servers with weak certificates or disabling TLS below
TLSv1.2.

Fix reference leak hunting in regrtest: compute also deltas (of reference
count and file descriptor count) during warmup, to ensure that everything is
initialized before starting to hunt reference leaks.

test_posix.PosixUidGidTests: add tests for invalid uid/gid type (str).

Add test.support.TEST_HTTP_URL and replace references of
http://www.example.com by this new constant.

Avoid test_ttk_guionly ComboboxTest failure with macOS Cocoa Tk.

Re-enable missing widget testcases in test_ttk_guionly.

Fix ``test_default_ecdh_curve`` when TLSv1.3 is enabled by default.

In Solaris family, we must be sure to use ``-D_REENTRANT``.

Fix detection of the bind_textdomain_codeset function for building gettext
support into the locale module.

``make tags`` and ``make TAGS`` now also parse ``Modules/_io/*.c`` and
``Modules/_io/*.h``.

Fix SSL module build with OpenSSL 1.1.0

Updates bundled OpenSSL to 1.0.2t

Include the ``FORMAT_MESSAGE_IGNORE_INSERTS`` flag in ``FormatMessageW()``
calls.

Update Windows builds to use SQLite 3.28.0.

Correctly handle string length in ``msilib.SummaryInfo.GetProperty()`` to
prevent it from truncating the last character.

Updated OpenSSL to 1.0.2t in macOS installer for 2.7.x.

When building 2.7 on macOS without system header files installed in
``/usr/include``, a few extension modules dependent on system-supplied
third-party libraries were not being built, most notably zlib.

Update macOS installer to use SQLite 3.28.0.

Updated OpenSSL to 1.0.2s in macOS installer.

Support building Python on macOS without /usr/include installed. As of macOS
10.14, system header files are only available within an SDK provided by
either the Command Line Tools or the Xcode app.

Properly 'attach' search dialogs to their main window so that they behave
like other dialogs and do not get hidden behind their main window.

When saving a file, call os.fsync() so bits are flushed to e.g. USB drive.

2to3 now works when run from a zipped standard library.

Fix the argument handling in Tools/scripts/lll.py.

Fix the cast on error in :c:func:`PyLong_AsUnsignedLongLongMask()`.

diffstat:

 lang/python27/PLIST    |   8 +++++---
 lang/python27/dist.mk  |   4 ++--
 lang/python27/distinfo |  10 +++++-----
 3 files changed, 12 insertions(+), 10 deletions(-)

diffs (66 lines):

diff -r 8db0947a90df -r a64520ed3546 lang/python27/PLIST
--- a/lang/python27/PLIST       Mon Oct 21 09:38:08 2019 +0000
+++ b/lang/python27/PLIST       Mon Oct 21 09:40:35 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.3 2019/04/25 15:59:54 roy Exp $
+@comment $NetBSD: PLIST,v 1.4 2019/10/21 09:40:35 adam Exp $
 bin/2to3-${PY_VER_SUFFIX}
 bin/pydoc${PY_VER_SUFFIX}
 bin/python${PY_VER_SUFFIX}
@@ -781,6 +781,7 @@
 lib/python${PY_VER_SUFFIX}/distutils/tests/__init__.py
 lib/python${PY_VER_SUFFIX}/distutils/tests/__init__.pyc
 lib/python${PY_VER_SUFFIX}/distutils/tests/__init__.pyo
+lib/python${PY_VER_SUFFIX}/distutils/tests/includetest.rst
 lib/python${PY_VER_SUFFIX}/distutils/tests/setuptools_build_ext.py
 lib/python${PY_VER_SUFFIX}/distutils/tests/setuptools_build_ext.pyc
 lib/python${PY_VER_SUFFIX}/distutils/tests/setuptools_build_ext.pyo
@@ -1437,8 +1438,8 @@
 lib/python${PY_VER_SUFFIX}/ensurepip/__main__.py
 lib/python${PY_VER_SUFFIX}/ensurepip/__main__.pyc
 lib/python${PY_VER_SUFFIX}/ensurepip/__main__.pyo
-lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/pip-18.1-py2.py3-none-any.whl
-lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/setuptools-40.6.2-py2.py3-none-any.whl
+lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/pip-19.2.3-py2.py3-none-any.whl
+lib/python${PY_VER_SUFFIX}/ensurepip/_bundled/setuptools-41.2.0-py2.py3-none-any.whl
 lib/python${PY_VER_SUFFIX}/ensurepip/_uninstall.py
 lib/python${PY_VER_SUFFIX}/ensurepip/_uninstall.pyc
 lib/python${PY_VER_SUFFIX}/ensurepip/_uninstall.pyo
@@ -2732,6 +2733,7 @@
 lib/python${PY_VER_SUFFIX}/test/capath/6e88d7b8.0
 lib/python${PY_VER_SUFFIX}/test/capath/99d0fa06.0
 lib/python${PY_VER_SUFFIX}/test/capath/ce7b8643.0
+lib/python${PY_VER_SUFFIX}/test/capath/efa5f9c3.0
 lib/python${PY_VER_SUFFIX}/test/cfgparser.1
 lib/python${PY_VER_SUFFIX}/test/cjkencodings/big5-utf8.txt
 lib/python${PY_VER_SUFFIX}/test/cjkencodings/big5.txt
diff -r 8db0947a90df -r a64520ed3546 lang/python27/dist.mk
--- a/lang/python27/dist.mk     Mon Oct 21 09:38:08 2019 +0000
+++ b/lang/python27/dist.mk     Mon Oct 21 09:40:35 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: dist.mk,v 1.16 2019/03/05 12:43:40 adam Exp $
+# $NetBSD: dist.mk,v 1.17 2019/10/21 09:40:35 adam Exp $
 
-PY_DISTVERSION=        2.7.16
+PY_DISTVERSION=        2.7.17
 DISTNAME=      Python-${PY_DISTVERSION}
 EXTRACT_SUFX=  .tar.xz
 DISTINFO_FILE= ${.CURDIR}/../../lang/python27/distinfo
diff -r 8db0947a90df -r a64520ed3546 lang/python27/distinfo
--- a/lang/python27/distinfo    Mon Oct 21 09:38:08 2019 +0000
+++ b/lang/python27/distinfo    Mon Oct 21 09:40:35 2019 +0000
@@ -1,9 +1,9 @@
-$NetBSD: distinfo,v 1.71 2019/03/05 12:43:40 adam Exp $
+$NetBSD: distinfo,v 1.72 2019/10/21 09:40:35 adam Exp $
 
-SHA1 (Python-2.7.16.tar.xz) = e9543af127d958b12b0edfb9340d4f0af3d0d90e
-RMD160 (Python-2.7.16.tar.xz) = 2e4ab325a9c9edf1687b6a5969cdafeb3cc954da
-SHA512 (Python-2.7.16.tar.xz) = 16e814e8dcffc707b595ca2919bd2fa3db0d15794c63d977364652c4a5b92e90e72b8c9e1cc83b5020398bd90a1b397dbdd7cb931c49f1aa4af6ef95414b43e0
-Size (Python-2.7.16.tar.xz) = 12752104 bytes
+SHA1 (Python-2.7.17.tar.xz) = dc5784d11d09c29fbf3fc155e2f242b3d3309454
+RMD160 (Python-2.7.17.tar.xz) = 55e05d1475d4e27873e71802529499361ba25e14
+SHA512 (Python-2.7.17.tar.xz) = 2dc19a0b0d818c71429dae94783e58b2aac0fa31f5faa1e840cac06245a59932ecc4658d913515736601bcf70a78c9ec60367aed75f4567d1e41ff3bb104da9a
+Size (Python-2.7.17.tar.xz) = 12855568 bytes
 SHA1 (patch-Include_pyerrors.h) = 0d2cd52d18cc719b895fa32ed7e11c6cb15bae54
 SHA1 (patch-Include_pyport.h) = f3e4ddbc954425a65301465410911222ca471320
 SHA1 (patch-Lib_ctypes_util.py) = 6fa516c7b43f08992427a0afcbe80c17bcc070f1



Home | Main Index | Thread Index | Old Index