summaryrefslogtreecommitdiff
path: root/lang/python35/patches
diff options
context:
space:
mode:
authoradam <adam>2016-07-02 15:07:47 +0000
committeradam <adam>2016-07-02 15:07:47 +0000
commit3aa8b7ecc0862153c9f5664415dae03bb73ecd85 (patch)
tree07438b9134cee0ea42cf8b5e1e4896af271c0625 /lang/python35/patches
parent5c4b8051c1ab6f3540ec2f13c1e78786bb3473c1 (diff)
downloadpkgsrc-3aa8b7ecc0862153c9f5664415dae03bb73ecd85.tar.gz
Changes 3.5.2:
Issue 27066: Fixed SystemError if a custom opener (for open()) returns a negative number without setting an exception. Issue 20041: Fixed TypeError when frame.f_trace is set to None. Patch by Xavier de Gaye. Issue 26168: Fixed possible refleaks in failing Py_BuildValue() with the “N” format unit. Issue 26991: Fix possible refleak when creating a function with annotations. Issue 27039: Fixed bytearray.remove() for values greater than 127. Patch by Joe Jevnik. Issue 23640: int.from_bytes() no longer bypasses constructors for subclasses. Issue 26811: gc.get_objects() no longer contains a broken tuple with NULL pointer. Issue 20120: Use RawConfigParser for .pypirc parsing, removing support for interpolation unintentionally added with move to Python 3. Behavior no longer does any interpolation in .pypirc files, matching behavior in Python 2.7 and Setuptools 19.0. Issue 26659: Make the builtin slice type support cycle collection. Issue 26718: super.__init__ no longer leaks memory if called multiple times. NOTE: A direct call of super.__init__ is not endorsed! Issue 25339: PYTHONIOENCODING now has priority over locale in setting the error handler for stdin and stdout. Issue 26494: Fixed crash on iterating exhausting iterators. Affected classes are generic sequence iterators, iterators of str, bytes, bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding views and os.scandir() iterator. Issue 26581: If coding cookie is specified multiple times on a line in Python source code file, only the first one is taken to account. Issue 26464: Fix str.translate() when string is ASCII and first replacements removes character, but next replacement uses a non-ASCII character or a string longer than 1 character. Regression introduced in Python 3.5.0. Issue 22836: Ensure exception reports from PyErr_Display() and PyErr_WriteUnraisable() are sensible even when formatting them produces secondary errors. This affects the reports produced by sys.__excepthook__() and when __del__() raises an exception. Issue 26302: Correct behavior to reject comma as a legal character for cookie names. Issue 4806: Avoid masking the original TypeError exception when using star (*) unpacking in function calls. Based on patch by Hagen Fürstenau and Daniel Urban. Issue 27138: Fix the doc comment for FileFinder.find_spec(). Issue 26154: Add a new private _PyThreadState_UncheckedGet() function to get the current Python thread state, but don’t issue a fatal error if it is NULL. This new function must be used instead of accessing directly the _PyThreadState_Current variable. The variable is no more exposed since Python 3.5.1 to hide the exact implementation of atomic C types, to avoid compiler issues. Issue 26194: Deque.insert() gave odd results for bounded deques that had reached their maximum size. Now an IndexError will be raised when attempting to insert into a full deque. Issue 25843: When compiling code, don’t merge constants if they are equal but have a different types. For example, f1, f2 = lambda: 1, lambda: 1.0 is now correctly compiled to two different functions: f1() returns 1 (int) and f2() returns 1.0 (int), even if 1 and 1.0 are equal. Issue 22995: [UPDATE] Comment out the one of the pickleability tests in _PyObject_GetState() due to regressions observed in Cython-based projects. Issue 25961: Disallowed null characters in the type name. Issue 25973: Fix segfault when an invalid nonlocal statement binds a name starting with two underscores. Issue 22995: Instances of extension types with a state that aren’t subclasses of list or dict and haven’t implemented any pickle-related methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__, or __getstate__), can no longer be pickled. Including memoryview. Issue 20440: Massive replacing unsafe attribute setting code with special macro Py_SETREF. Issue 25766: Special method __bytes__() now works in str subclasses. Issue 25421: __sizeof__ methods of builtin types now use dynamic basic size. This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. Issue 25709: Fixed problem with in-place string concatenation and utf-8 cache. Issue 27147: Mention PEP 420 in the importlib docs. Issue 24097: Fixed crash in object.__reduce__() if slot name is freed inside __getattr__. Issue 24731: Fixed crash on converting objects with special methods __bytes__, __trunc__, and __float__ returning instances of subclasses of bytes, int, and float to subclasses of bytes, int, and float correspondingly. Issue 26478: Fix semantic bugs when using binary operators with dictionary views and tuples. Issue 26171: Fix possible integer overflow and heap corruption in zipimporter.get_data(). Issue 25660: Fix TAB key behaviour in REPL with readline. Issue 25887: Raise a RuntimeError when a coroutine object is awaited more than once. Issue 27243: Update the __aiter__ protocol: instead of returning an awaitable that resolves to an asynchronous iterator, the asynchronous iterator should be returned directly. Doing the former will trigger a PendingDeprecationWarning. more...
Diffstat (limited to 'lang/python35/patches')
-rw-r--r--lang/python35/patches/patch-Makefile.pre.in26
-rw-r--r--lang/python35/patches/patch-setup.py24
2 files changed, 25 insertions, 25 deletions
diff --git a/lang/python35/patches/patch-Makefile.pre.in b/lang/python35/patches/patch-Makefile.pre.in
index aa7343b7972..587205e5b54 100644
--- a/lang/python35/patches/patch-Makefile.pre.in
+++ b/lang/python35/patches/patch-Makefile.pre.in
@@ -1,10 +1,10 @@
-$NetBSD: patch-Makefile.pre.in,v 1.1 2015/12/05 17:12:13 adam Exp $
+$NetBSD: patch-Makefile.pre.in,v 1.2 2016/07/02 15:07:48 adam Exp $
Use only one optimisation level; needed for PLIST and setuptools compatibility.
---- Makefile.pre.in.orig 2015-09-13 11:41:23.000000000 +0000
+--- Makefile.pre.in.orig 2016-06-25 21:38:37.000000000 +0000
+++ Makefile.pre.in
-@@ -86,7 +86,7 @@ PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODI
+@@ -91,7 +91,7 @@ PY_CFLAGS_NODIST=$(CONFIGURE_CFLAGS_NODI
# be able to build extension modules using the directories specified in the
# environment variables
PY_CPPFLAGS= $(BASECPPFLAGS) -I. -IInclude -I$(srcdir)/Include $(CONFIGURE_CPPFLAGS) $(CPPFLAGS)
@@ -13,16 +13,16 @@ Use only one optimisation level; needed for PLIST and setuptools compatibility.
NO_AS_NEEDED= @NO_AS_NEEDED@
LDLAST= @LDLAST@
SGI_ABI= @SGI_ABI@
-@@ -700,7 +700,7 @@ Python/importlib_external.h: $(srcdir)/L
- ./Programs/_freeze_importlib \
- $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h
+@@ -724,7 +724,7 @@ Python/importlib_external.h: $(srcdir)/L
+ $(srcdir)/Lib/importlib/_bootstrap_external.py Python/importlib_external.h; \
+ fi
-Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib
+Python/importlib.h: $(srcdir)/Lib/importlib/_bootstrap.py Programs/_freeze_importlib $(LIBRARY_OBJS_OMIT_FROZEN)
- ./Programs/_freeze_importlib \
- $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h
-
-@@ -845,7 +845,7 @@ Objects/setobject.o: $(srcdir)/Objects/s
+ if test "$(cross_compiling)" != "yes"; then \
+ ./Programs/_freeze_importlib \
+ $(srcdir)/Lib/importlib/_bootstrap.py Python/importlib.h; \
+@@ -882,7 +882,7 @@ Objects/setobject.o: $(srcdir)/Objects/s
$(OPCODETARGETS_H): $(OPCODETARGETGEN_FILES)
$(OPCODETARGETGEN) $(OPCODETARGETS_H)
@@ -31,7 +31,7 @@ Use only one optimisation level; needed for PLIST and setuptools compatibility.
Python/frozen.o: Python/importlib.h Python/importlib_external.h
-@@ -1085,7 +1085,8 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORK
+@@ -1122,7 +1122,8 @@ altbininstall: $(BUILDPYTHON) @FRAMEWORK
if test -n "$(PY3LIBRARY)"; then \
$(INSTALL_SHARED) $(PY3LIBRARY) $(DESTDIR)$(LIBDIR)/$(PY3LIBRARY); \
fi; \
@@ -41,7 +41,7 @@ Use only one optimisation level; needed for PLIST and setuptools compatibility.
fi
if test "x$(LIPO_32BIT_FLAGS)" != "x" ; then \
rm -f $(DESTDIR)$(BINDIR)python$(VERSION)-32$(EXE); \
-@@ -1271,11 +1272,6 @@ libinstall: build_all $(srcdir)/Lib/$(PL
+@@ -1312,11 +1313,6 @@ libinstall: build_all $(srcdir)/Lib/$(PL
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
$(DESTDIR)$(LIBDEST)
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
@@ -53,7 +53,7 @@ Use only one optimisation level; needed for PLIST and setuptools compatibility.
$(PYTHON_FOR_BUILD) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST)/site-packages -f \
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
-@@ -1284,10 +1280,6 @@ libinstall: build_all $(srcdir)/Lib/$(PL
+@@ -1325,10 +1321,6 @@ libinstall: build_all $(srcdir)/Lib/$(PL
-d $(LIBDEST)/site-packages -f \
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
diff --git a/lang/python35/patches/patch-setup.py b/lang/python35/patches/patch-setup.py
index 19039d007a9..754cd130739 100644
--- a/lang/python35/patches/patch-setup.py
+++ b/lang/python35/patches/patch-setup.py
@@ -1,8 +1,8 @@
-$NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
+$NetBSD: patch-setup.py,v 1.2 2016/07/02 15:07:48 adam Exp $
---- setup.py.orig 2014-03-17 02:31:31.000000000 +0000
+--- setup.py.orig 2016-06-25 21:38:39.000000000 +0000
+++ setup.py
-@@ -33,7 +33,8 @@ host_platform = get_platform()
+@@ -44,7 +44,8 @@ host_platform = get_platform()
COMPILED_WITH_PYDEBUG = ('--with-pydebug' in sysconfig.get_config_var("CONFIG_ARGS"))
# This global variable is used to hold the list of modules to be disabled.
@@ -12,8 +12,8 @@ $NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
def add_dir_to_list(dirlist, dir):
"""Add the directory 'dir' to the list 'dirlist' (after any relative
-@@ -441,15 +442,15 @@ class PyBuildExt(build_ext):
- os.unlink(tmpfile)
+@@ -488,15 +489,15 @@ class PyBuildExt(build_ext):
+ return ['m']
def detect_modules(self):
- # Ensure that /usr/local is always used, but the local build
@@ -37,7 +37,7 @@ $NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
self.add_multiarch_paths()
# Add paths specified in the environment variables LDFLAGS and
-@@ -751,8 +752,7 @@ class PyBuildExt(build_ext):
+@@ -809,8 +810,7 @@ class PyBuildExt(build_ext):
depends = ['socketmodule.h']) )
# Detect SSL support for the socket module (via _ssl)
search_for_ssl_incs_in = [
@@ -47,7 +47,7 @@ $NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
]
ssl_incs = find_file('openssl/ssl.h', inc_dirs,
search_for_ssl_incs_in
-@@ -763,9 +763,7 @@ class PyBuildExt(build_ext):
+@@ -821,9 +821,7 @@ class PyBuildExt(build_ext):
if krb5_h:
ssl_incs += krb5_h
ssl_libs = find_library_file(self.compiler, 'ssl',lib_dirs,
@@ -58,7 +58,7 @@ $NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
if (ssl_incs is not None and
ssl_libs is not None):
-@@ -784,7 +782,7 @@ class PyBuildExt(build_ext):
+@@ -842,7 +840,7 @@ class PyBuildExt(build_ext):
# look for the openssl version header on the compiler search path.
opensslv_h = find_file('openssl/opensslv.h', [],
@@ -67,7 +67,7 @@ $NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
if opensslv_h:
name = os.path.join(opensslv_h[0], 'openssl/opensslv.h')
if host_platform == 'darwin' and is_macosx_sdk_path(name):
-@@ -1148,6 +1146,30 @@ class PyBuildExt(build_ext):
+@@ -1216,6 +1214,30 @@ class PyBuildExt(build_ext):
dbm_order = ['gdbm']
# The standard Unix dbm module:
if host_platform not in ['cygwin']:
@@ -98,7 +98,7 @@ $NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
config_args = [arg.strip("'")
for arg in sysconfig.get_config_var("CONFIG_ARGS").split()]
dbm_args = [arg for arg in config_args
-@@ -1159,7 +1181,7 @@ class PyBuildExt(build_ext):
+@@ -1227,7 +1249,7 @@ class PyBuildExt(build_ext):
dbmext = None
for cand in dbm_order:
if cand == "ndbm":
@@ -107,7 +107,7 @@ $NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
# Some systems have -lndbm, others have -lgdbm_compat,
# others don't have either
if self.compiler.find_library_file(lib_dirs,
-@@ -1956,10 +1986,7 @@ class PyBuildExt(build_ext):
+@@ -2027,10 +2049,7 @@ class PyBuildExt(build_ext):
depends = ['_decimal/docstrings.h']
else:
srcdir = sysconfig.get_config_var('srcdir')
@@ -119,7 +119,7 @@ $NetBSD: patch-setup.py,v 1.1 2015/12/05 17:12:13 adam Exp $
libraries = []
sources = [
'_decimal/_decimal.c',
-@@ -2205,7 +2232,7 @@ def main():
+@@ -2276,7 +2295,7 @@ def main():
# If you change the scripts installed here, you also need to
# check the PyBuildScripts command above, and change the links
# created by the bininstall target in Makefile.pre.in