From 6af5b9f2b380dbbab1480e69595b641f97e6a74df09d83d3d341494303f498f7 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 14 Jul 2022 16:01:58 +0000 Subject: [PATCH] - Update to 3.11.0b4: - Fixes many bugs and adds following more significant changes - Security - gh-68966: The deprecated mailcap module now refuses to inject Coreunsafe text (filenames, MIME types, parameters) into shell Corecommands. Instead of using such text, it will warn and act Coreas if a match was not found (or for test commands, as if the Coretest failed). and Builtins - gh-93516: Lazily create a table mapping bytecode offsets to line numbers to speed up calculation of line numbers when tracing. - gh-93461: importlib.invalidate_caches() now drops entries from sys.path_importer_cache with a relative path as name. This solves a caching issue when a process changes its current working directory. - FileFinder no longer inserts a dot in the path, e.g. /egg/./spam is now /egg/spam. Library - gh-93896: Fix asyncio.run() and unittest.IsolatedAsyncioTestCase to always the set event loop as it was done in Python 3.10 and earlier. Patch by Kumar Aditya. - gh-94101: Manual instantiation of ssl.SSLSession objects is no longer allowed as it lead to misconfigured instances that crashed the interpreter when attributes where accessed on them. - gh-83658: Make multiprocessing.Pool raise an exception if maxtasksperchild is not None or a positive int. - gh-61162: Clarify sqlite3 behavior when Using the connection as a context manager. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python311?expand=0&rev=20 --- Python-3.11.0b2.tar.xz | 3 -- Python-3.11.0b2.tar.xz.asc | 16 ------- Python-3.11.0b4.tar.xz | 3 ++ Python-3.11.0b4.tar.xz.asc | 16 +++++++ bpo-31046_ensurepip_honours_prefix.patch | 12 ++--- fix_configure_rst.patch | 2 +- no-skipif-doctests.patch | 14 +----- python-3.3.0b1-fix_date_time_compiler.patch | 2 +- python311.changes | 49 +++++++++++++++++++++ python311.spec | 2 +- skip-test_pyobject_freed_is_freed.patch | 2 +- 11 files changed, 79 insertions(+), 42 deletions(-) delete mode 100644 Python-3.11.0b2.tar.xz delete mode 100644 Python-3.11.0b2.tar.xz.asc create mode 100644 Python-3.11.0b4.tar.xz create mode 100644 Python-3.11.0b4.tar.xz.asc diff --git a/Python-3.11.0b2.tar.xz b/Python-3.11.0b2.tar.xz deleted file mode 100644 index ce5d685..0000000 --- a/Python-3.11.0b2.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e574dee6694fb255dff8036f3c0048251e5cb29a167766030b7ce3160fb4c47d -size 19529360 diff --git a/Python-3.11.0b2.tar.xz.asc b/Python-3.11.0b2.tar.xz.asc deleted file mode 100644 index 46b7a42..0000000 --- a/Python-3.11.0b2.tar.xz.asc +++ /dev/null @@ -1,16 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iQIzBAABCAAdFiEEz9yiRbEEPPKl+Xhl/+h0BBaL2EcFAmKVNMAACgkQ/+h0BBaL -2EeBzA/+K18D5/KHhY4lYl5IesjZ2j0R+ChXahEP0+uItTdrB1v5UDjo18tyvn1h -3zqqI0DRIckabOceyrWl2/EsLUb6SJOXbp7iB5E5dLGQPtsaxEgqBhUwWKq5AjFT -y9aBRkms2dKqIIvekC5vrZRDmiOz2pkS+xbqBHRvFSaRwdK2CdoFWFeHpCveqHvi -icX6xndT9R43d9k3FmsK162vopIVfMRpXk1fZwSxbetqQX3bvutqoIYbDpY80zAa -lKEd27c8Cx2dbeEL0MILiEN8F6xrHM3LSOFANrV2bEakkLFUuZTdSyG11HWqzbCl -tYcSDyptJl3CbP4Pnaa1tgpoVEtH7DVC/7W4TJyeEZ2c7TAY5dawEF9T3nb3bdGG -xaUK6oDnMbWSyLq4SLUGLEN0kC7EAXbn4VnHVUKuPoFHUj5hhq9EUnv6kJdc3CA1 -SF2r3hph6OMb0MoYGbztSeQ0F7XsND3kTqFMhYOwDHlt5Z1PgD6ET8sK3J3OjVi+ -FjEAInq6uGlCLJpfrc4TVzErE0aT0RSBEc+kPRBhASQoO1jEw5llX4kIgRNfA2a1 -ZnixuB7AfSxLHIgyoMrrPvO3/x/003BKWD3cd/DuRzUU37OG/mfYLgvVc3kcjNz8 -sdNjnjpAvAOhZEIEB5rdUTfAtIbQHFEMbmiaNOOegog1sK2Qgus= -=B4l/ ------END PGP SIGNATURE----- diff --git a/Python-3.11.0b4.tar.xz b/Python-3.11.0b4.tar.xz new file mode 100644 index 0000000..051521e --- /dev/null +++ b/Python-3.11.0b4.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d93b611607903e080417c1a9567f5fbbf5124cc5c86f4afbba1c8fd34c5f6fb +size 19573532 diff --git a/Python-3.11.0b4.tar.xz.asc b/Python-3.11.0b4.tar.xz.asc new file mode 100644 index 0000000..eca319c --- /dev/null +++ b/Python-3.11.0b4.tar.xz.asc @@ -0,0 +1,16 @@ +-----BEGIN PGP SIGNATURE----- + +iQIzBAABCAAdFiEEz9yiRbEEPPKl+Xhl/+h0BBaL2EcFAmLMQR4ACgkQ/+h0BBaL +2EeIzA/+OXF1w6oXajUYxjWK13w3DR95Rje+X+x8F5Fzpyt+aJPgGNBB+OD0mc7/ +Lm3NAZwmNzTPRGU1aUfRWcP07ZqVmpdlmk8C2PHEYwfB+Hg7WBX0cuYgm2vvIU2X +h8figNl+uThgnInt/CJVzUDbUvVENvFwRwrwn+8FLPD3m7W8orad0m9RR7IVhmfe +VyNkwTb76ArCCBNbRC/KbKnudmvMVlpFV8YPphGLeeJvQY41bwuxmZqhtCqzGk9i +t6zB/Q9xlAMIpOCcSlOGdGcivzVwFIbBM5iR1TOARxtrUkyNVCDVrExC7GdLGIsy +sdRcqJGuVclLSdHK4r9ybx6/Bz9ODaeIO5Sgk3Xh09jN2v6lPDKI7v9Y20njvgB6 +SS8MAwbliQx9TNFgxHEACI0he7vNUcPbzV1hrbMHU7lv4y5ATcKmnt4bsrqNZdbN +PD88Dop1bUgfzvglaSBzxInawfPanVw3S6JSgs+2kJcIXu2Mchmj2+bRGbWjCvo4 +qKT3Yn23iLJ+EHcMqsZ4rKpCDy0953lR37G9JdfaMeh1PH88cqNsJVILHZZMcooR +nZeFtS7C5jZP1KTMogxbeiKoPKKgvgKnuBzkphv8uxTlnH8AG5ZG61UKFSu1O4bh +B0xARxclmPgryXALE+QWlYjrxtnI26Dgw1YNC2Y13mr1HZ3wiBA= +=uigd +-----END PGP SIGNATURE----- diff --git a/bpo-31046_ensurepip_honours_prefix.patch b/bpo-31046_ensurepip_honours_prefix.patch index cd581e4..24d46ae 100644 --- a/bpo-31046_ensurepip_honours_prefix.patch +++ b/bpo-31046_ensurepip_honours_prefix.patch @@ -55,7 +55,7 @@ Co-Authored-By: Xavier de Gaye .. note:: --- a/Lib/ensurepip/__init__.py +++ b/Lib/ensurepip/__init__.py -@@ -112,27 +112,27 @@ def _disable_pip_configuration_settings( +@@ -122,27 +122,27 @@ def _disable_pip_configuration_settings( os.environ['PIP_CONFIG_FILE'] = os.devnull @@ -88,7 +88,7 @@ Co-Authored-By: Xavier de Gaye Note that calling this function will alter both sys.path and os.environ. """ -@@ -182,6 +182,8 @@ def _bootstrap(*, root=None, upgrade=Fal +@@ -192,6 +192,8 @@ def _bootstrap(*, root=None, upgrade=Fal args = ["install", "--no-cache-dir", "--no-index", "--find-links", tmpdir] if root: args += ["--root", root] @@ -97,7 +97,7 @@ Co-Authored-By: Xavier de Gaye if upgrade: args += ["--upgrade"] if user: -@@ -257,6 +259,11 @@ def _main(argv=None): +@@ -267,6 +269,11 @@ def _main(argv=None): help="Install everything relative to this alternate root directory.", ) parser.add_argument( @@ -109,7 +109,7 @@ Co-Authored-By: Xavier de Gaye "--altinstall", action="store_true", default=False, -@@ -275,6 +282,7 @@ def _main(argv=None): +@@ -285,6 +292,7 @@ def _main(argv=None): return _bootstrap( root=args.root, @@ -139,7 +139,7 @@ Co-Authored-By: Xavier de Gaye --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1741,7 +1741,7 @@ install: @FRAMEWORKINSTALLFIRST@ commoni +@@ -1749,7 +1749,7 @@ install: @FRAMEWORKINSTALLFIRST@ commoni install|*) ensurepip="" ;; \ esac; \ $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \ @@ -148,7 +148,7 @@ Co-Authored-By: Xavier de Gaye fi altinstall: commoninstall -@@ -1751,7 +1751,7 @@ altinstall: commoninstall +@@ -1759,7 +1759,7 @@ altinstall: commoninstall install|*) ensurepip="--altinstall" ;; \ esac; \ $(RUNSHARED) $(PYTHON_FOR_BUILD) -m ensurepip \ diff --git a/fix_configure_rst.patch b/fix_configure_rst.patch index d61451b..7fc3159 100644 --- a/fix_configure_rst.patch +++ b/fix_configure_rst.patch @@ -29,7 +29,7 @@ Create a Python.framework rather than a traditional Unix install. Optional --- a/Misc/NEWS +++ b/Misc/NEWS -@@ -5685,7 +5685,7 @@ C API +@@ -6147,7 +6147,7 @@ C API - bpo-40939: Removed documentation for the removed ``PyParser_*`` C API. - bpo-43795: The list in :ref:`stable-abi-list` now shows the public name diff --git a/no-skipif-doctests.patch b/no-skipif-doctests.patch index b33c0c7..dea56fc 100644 --- a/no-skipif-doctests.patch +++ b/no-skipif-doctests.patch @@ -1,21 +1,9 @@ only in patch2: unchanged: --- - Doc/conf.py | 2 - Doc/library/turtle.rst | 82 ------------------------------------------------- - 2 files changed, 1 insertion(+), 83 deletions(-) + 1 file changed, 82 deletions(-) ---- a/Doc/conf.py -+++ b/Doc/conf.py -@@ -45,7 +45,7 @@ today_fmt = '%B %d, %Y' - highlight_language = 'python3' - - # Minimum version of sphinx required --needs_sphinx = '1.8' -+needs_sphinx = '1.7.6' - - # Ignore any .rst files in the venv/ directory. - exclude_patterns = ['venv/*', 'README.rst'] --- a/Doc/library/turtle.rst +++ b/Doc/library/turtle.rst @@ -250,7 +250,6 @@ Turtle motion diff --git a/python-3.3.0b1-fix_date_time_compiler.patch b/python-3.3.0b1-fix_date_time_compiler.patch index 26846e7..a3fd005 100644 --- a/python-3.3.0b1-fix_date_time_compiler.patch +++ b/python-3.3.0b1-fix_date_time_compiler.patch @@ -4,7 +4,7 @@ --- a/Makefile.pre.in +++ b/Makefile.pre.in -@@ -1230,11 +1230,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \ +@@ -1233,11 +1233,18 @@ Modules/getbuildinfo.o: $(PARSER_OBJS) \ $(DTRACE_OBJS) \ $(srcdir)/Modules/getbuildinfo.c $(CC) -c $(PY_CORE_CFLAGS) \ diff --git a/python311.changes b/python311.changes index d187a21..7627d8b 100644 --- a/python311.changes +++ b/python311.changes @@ -1,3 +1,52 @@ +------------------------------------------------------------------- +Thu Jul 14 15:37:35 UTC 2022 - Matej Cepl + +- Update to 3.11.0b4: +- Fixes many bugs and adds following more significant changes +- Security + - gh-68966: The deprecated mailcap module now refuses to inject + Coreunsafe text (filenames, MIME types, parameters) into + shell Corecommands. Instead of using such text, it will + warn and act Coreas if a match was not found (or for test + commands, as if the Coretest failed). and Builtins + - gh-93516: Lazily create a table mapping bytecode offsets to + line numbers to speed up calculation of line numbers when + tracing. + - gh-93461: importlib.invalidate_caches() now drops entries + from sys.path_importer_cache with a relative path as + name. This solves a caching issue when a process changes its + current working directory. + - FileFinder no longer inserts a dot in the path, e.g. + /egg/./spam is now /egg/spam. +Library + - gh-93896: Fix asyncio.run() and + unittest.IsolatedAsyncioTestCase to always the set event loop + as it was done in Python 3.10 and earlier. Patch by Kumar + Aditya. + - gh-94101: Manual instantiation of ssl.SSLSession objects is + no longer allowed as it lead to misconfigured instances that + crashed the interpreter when attributes where accessed on + them. + - gh-83658: Make multiprocessing.Pool raise an exception if + maxtasksperchild is not None or a positive int. + - gh-61162: Clarify sqlite3 behavior when Using the connection + as a context manager. +Tools/Demos + - gh-94538: Fix Argument Clinic output to custom file + destinations. Patch by Erlend E. Aasland. +C API + - gh-93937: The following frame functions and type are now + directly available with #include , it’s no longer + needed to add #include : + PyFrame_Check() + PyFrame_GetBack() + PyFrame_GetBuiltins() + PyFrame_GetGenerator() + PyFrame_GetGlobals() + PyFrame_GetLasti() + PyFrame_GetLocals() + PyFrame_Type + ------------------------------------------------------------------- Tue May 31 20:54:36 UTC 2022 - Matej Cepl diff --git a/python311.spec b/python311.spec index 541c6d3..1fdfb43 100644 --- a/python311.spec +++ b/python311.spec @@ -100,7 +100,7 @@ Obsoletes: python39%{?1:-%{1}} %define dynlib() %{sitedir}/lib-dynload/%{1}.cpython-%{abi_tag}-%{archname}-%{_os}%{?_gnu}%{?armsuffix}.so %bcond_without profileopt Name: %{python_pkg_name}%{psuffix} -Version: 3.11.0b2 +Version: 3.11.0b4 Release: 0 Summary: Python 3 Interpreter License: Python-2.0 diff --git a/skip-test_pyobject_freed_is_freed.patch b/skip-test_pyobject_freed_is_freed.patch index b68f049..1525256 100644 --- a/skip-test_pyobject_freed_is_freed.patch +++ b/skip-test_pyobject_freed_is_freed.patch @@ -4,7 +4,7 @@ --- a/Lib/test/test_capi.py +++ b/Lib/test/test_capi.py -@@ -1014,6 +1014,7 @@ class PyMemDebugTests(unittest.TestCase) +@@ -1016,6 +1016,7 @@ class PyMemDebugTests(unittest.TestCase) def test_pyobject_forbidden_bytes_is_freed(self): self.check_pyobject_is_freed('check_pyobject_forbidden_bytes_is_freed')