forked from pool/python38
Accepting request 965120 from devel:languages:python:Factory
- Update to 3.8.13: Core and Builtins bpo-46794: Bump up the libexpat version into 2.4.6 bpo-46985: Upgrade pip wheel bundled with ensurepip (pip 22.0.4) bpo-46932: Update bundled libexpat to 2.4.7 bpo-46811: Make test suite support Expat >=2.4.5 bpo-46784: Fix libexpat symbols collisions with user dynamically loaded or statically linked libexpat in embedded Python. bpo-46400: expat: Update libexpat from 2.4.1 to 2.4.4 bpo-46474: In importlib.metadata.EntryPoint.pattern, avoid potential REDoS by limiting ambiguity in consecutive whitespace. bpo-44849: Fix the os.set_inheritable() function on FreeBSD 14 for file descriptor opened with the O_PATH flag: ignore the EBADF error on ioctl(), fallback on the fcntl() implementation. bpo-41028: Language and version switchers, previously maintained in every cpython branches, are now handled by docsbuild-script. bpo-45195: Fix test_readline.test_nonascii(): sometimes, the newline character is not written at the end, so don’t expect it in the output. bpo-44949: Fix auto history tests of test_readline: sometimes, the newline character is not written at the end, so don’t expect it in the output. bpo-45405: Prevent internal configure error when running configure with recent versions of clang. - Remove upstreamed patches: - support-expat-245.patch OBS-URL: https://build.opensuse.org/request/show/965120 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python38?expand=0&rev=22
This commit is contained in:
commit
71ed8dd763
@ -183,7 +183,7 @@ Co-authored-by: Iryna Shcherbina <shcherbina.iryna@gmail.com>
|
|||||||
}
|
}
|
||||||
--- a/configure
|
--- a/configure
|
||||||
+++ b/configure
|
+++ b/configure
|
||||||
@@ -15262,9 +15262,9 @@ fi
|
@@ -15264,9 +15264,9 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if test x$PLATFORM_TRIPLET = x; then
|
if test x$PLATFORM_TRIPLET = x; then
|
||||||
@ -197,7 +197,7 @@ Co-authored-by: Iryna Shcherbina <shcherbina.iryna@gmail.com>
|
|||||||
|
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -4720,9 +4720,9 @@ fi
|
@@ -4722,9 +4722,9 @@ fi
|
||||||
dnl define LIBPL after ABIFLAGS and LDVERSION is defined.
|
dnl define LIBPL after ABIFLAGS and LDVERSION is defined.
|
||||||
AC_SUBST(PY_ENABLE_SHARED)
|
AC_SUBST(PY_ENABLE_SHARED)
|
||||||
if test x$PLATFORM_TRIPLET = x; then
|
if test x$PLATFORM_TRIPLET = x; then
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b1d3a76420375343b5e8a22fceb1ac65b77193e9ed27146524f0a9db058728ea
|
|
||||||
size 18443568
|
|
@ -1,16 +0,0 @@
|
|||||||
-----BEGIN PGP SIGNATURE-----
|
|
||||||
|
|
||||||
iQIzBAABCgAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAmEtCqkACgkQsmmV4xAl
|
|
||||||
BWiX4A/+LBc42iF/V8rob0MGnUkLNe0zmfMwk4m0ji7ukH9o+2/Qttt1cWE8Mnhl
|
|
||||||
VanXlxfctk5v4MIWo+/p3iQqjoDBCQZTuHIJZ06ZXmKvgWABrPImT2NGaWz2jQip
|
|
||||||
s28VQTax2fQrJk8fiGA59ty5qMyvLefwYMPgvFPpkk+ToBgIDGFSuKYbPQ9X+CE1
|
|
||||||
Hwbk1Z0HfEHIMoDJ10uM5I00wX38Dbt6QaSO6v/PSowajOnBE43pjqEINBGHT7/C
|
|
||||||
il/JecPQj1bamTrZWQy6DA2+WjmNMVlXZv8Nwix9Jw5vPt/BVLLuN6whP4UKvKmc
|
|
||||||
ib/EI53sDB4WstROMngslfyR4XBg/DtCIOGZfmfnTJKvQTQlOSt1P5w7jh0NKXM4
|
|
||||||
syDClByOXkKSf/Buu8vW1hWFgdoXW55s47tusS6ExCuBdQyo9abyq7DjkAyYu88U
|
|
||||||
bqHQoFIH+ARyr/aWVErWPlfBfVUR2Ch4V1fkszPA7rcdyWVw82R66K7cwN235zcq
|
|
||||||
oqD23aNMJ26nd5d1Xw2xoybB652S2Q+PmuT0KQn+GHbLLIquTdMYFb80f1rQDRS8
|
|
||||||
5bMGjYhlgXB9f2Wcg62m1J1OdKKasQUE8zMVHlArW8TRV7P4xRFzmYgP63Kl9oMP
|
|
||||||
Ux64wl5hs+LLFWTjH1f8608z70ijsgfaMdVpHzfD8Q0q5mPbE2Y=
|
|
||||||
=aijj
|
|
||||||
-----END PGP SIGNATURE-----
|
|
3
Python-3.8.13.tar.xz
Normal file
3
Python-3.8.13.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6f309077012040aa39fe8f0c61db8c0fa1c45136763299d375c9e5756f09cf57
|
||||||
|
size 19023016
|
16
Python-3.8.13.tar.xz.asc
Normal file
16
Python-3.8.13.tar.xz.asc
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
|
||||||
|
iQIzBAABCgAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAmIx4HAACgkQsmmV4xAl
|
||||||
|
BWipJQ/9EbtuovqB+22Ol5OWhgC8pUOZaYFSXWFIFCq0I6/SvomdHdU3+Kb95uAL
|
||||||
|
1YWdC06Su+mz7+d4f0BfGimvSD7AUjvjJXo6HBuhsHxUwYyfB9lqQsgJhn/ZuHc8
|
||||||
|
ZXZhee72oSc3u59jChNlPA7OJSToMN38ynHLefwnDl60HX/Vdv/l5Hq3qpA1kZdI
|
||||||
|
j+J4p+vLo2ez/SZu8G/bl0Gii06et8w96Nv2ffOXyyC+DZsSO3ryxqnFMWQXJnop
|
||||||
|
GLr1eJqFja80fQ4YGpO7KbEgG+vhRoS4xVTJsl3ooeobBHs45kDOk4ud5DIrs0HH
|
||||||
|
W1M6vydtweyy/MJbCrZsSQBtW/n3FZk7YhsDE1JQYBEk4IP8iYi5KS4+1Iz6Hv/5
|
||||||
|
WBGe6hcMWMSV+Hmb2CC5/CqZof+uZqIffe4xNHqmilQ4m/tIhiklbxrAGbo6D9ER
|
||||||
|
CseBEAqultlCRp31dIKoJqpfN6hDJW8NGkek8loA1CSEK0egfYVvaInoXaj5rpC7
|
||||||
|
456hxAl/cgurybZifoqRZMLaOtJf4pMApdbJqxferCDEYVuKVXwgutVTZc8WfAnk
|
||||||
|
gCj/3lOrKi3ZVnry6A8uOnCNmgcW8AIC0qEVES+776fWF6K8GrAbXr6/FDTp53ZJ
|
||||||
|
Hc0h1bkyE2EcA2wVBKdgDlaQp/+8H8ZfNFuBgMzeLgUx8S6DGCc=
|
||||||
|
=txx+
|
||||||
|
-----END PGP SIGNATURE-----
|
@ -341,7 +341,7 @@
|
|||||||
}
|
}
|
||||||
--- a/configure
|
--- a/configure
|
||||||
+++ b/configure
|
+++ b/configure
|
||||||
@@ -15262,9 +15262,9 @@ fi
|
@@ -15264,9 +15264,9 @@ fi
|
||||||
|
|
||||||
|
|
||||||
if test x$PLATFORM_TRIPLET = x; then
|
if test x$PLATFORM_TRIPLET = x; then
|
||||||
@ -355,7 +355,7 @@
|
|||||||
|
|
||||||
--- a/configure.ac
|
--- a/configure.ac
|
||||||
+++ b/configure.ac
|
+++ b/configure.ac
|
||||||
@@ -4717,12 +4717,26 @@ else
|
@@ -4719,12 +4719,26 @@ else
|
||||||
LIBPYTHON=''
|
LIBPYTHON=''
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -55,7 +55,7 @@ Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
|
|||||||
.. note::
|
.. note::
|
||||||
--- a/Lib/ensurepip/__init__.py
|
--- a/Lib/ensurepip/__init__.py
|
||||||
+++ b/Lib/ensurepip/__init__.py
|
+++ b/Lib/ensurepip/__init__.py
|
||||||
@@ -52,27 +52,27 @@ def _disable_pip_configuration_settings(
|
@@ -50,27 +50,27 @@ def _disable_pip_configuration_settings(
|
||||||
os.environ['PIP_CONFIG_FILE'] = os.devnull
|
os.environ['PIP_CONFIG_FILE'] = os.devnull
|
||||||
|
|
||||||
|
|
||||||
@ -88,7 +88,7 @@ Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
|
|||||||
|
|
||||||
Note that calling this function will alter both sys.path and os.environ.
|
Note that calling this function will alter both sys.path and os.environ.
|
||||||
"""
|
"""
|
||||||
@@ -115,6 +115,8 @@ def _bootstrap(*, root=None, upgrade=Fal
|
@@ -113,6 +113,8 @@ def _bootstrap(*, root=None, upgrade=Fal
|
||||||
args = ["install", "--no-cache-dir", "--no-index", "--find-links", tmpdir]
|
args = ["install", "--no-cache-dir", "--no-index", "--find-links", tmpdir]
|
||||||
if root:
|
if root:
|
||||||
args += ["--root", root]
|
args += ["--root", root]
|
||||||
@ -97,7 +97,7 @@ Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
|
|||||||
if upgrade:
|
if upgrade:
|
||||||
args += ["--upgrade"]
|
args += ["--upgrade"]
|
||||||
if user:
|
if user:
|
||||||
@@ -187,6 +189,11 @@ def _main(argv=None):
|
@@ -185,6 +187,11 @@ def _main(argv=None):
|
||||||
help="Install everything relative to this alternate root directory.",
|
help="Install everything relative to this alternate root directory.",
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
@ -109,7 +109,7 @@ Co-Authored-By: Xavier de Gaye <xdegaye@gmail.com>
|
|||||||
"--altinstall",
|
"--altinstall",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
default=False,
|
default=False,
|
||||||
@@ -205,6 +212,7 @@ def _main(argv=None):
|
@@ -203,6 +210,7 @@ def _main(argv=None):
|
||||||
|
|
||||||
return _bootstrap(
|
return _bootstrap(
|
||||||
root=args.root,
|
root=args.root,
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
if (sep == NULL) {
|
if (sep == NULL) {
|
||||||
--- a/setup.py
|
--- a/setup.py
|
||||||
+++ b/setup.py
|
+++ b/setup.py
|
||||||
@@ -2053,7 +2053,7 @@ class PyBuildExt(build_ext):
|
@@ -2055,7 +2055,7 @@ class PyBuildExt(build_ext):
|
||||||
undef_macros = []
|
undef_macros = []
|
||||||
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
|
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
|
||||||
include_dirs = []
|
include_dirs = []
|
||||||
|
@ -1,3 +1,37 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Mar 26 21:59:44 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update to 3.8.13:
|
||||||
|
Core and Builtins
|
||||||
|
bpo-46794: Bump up the libexpat version into 2.4.6
|
||||||
|
bpo-46985: Upgrade pip wheel bundled with ensurepip (pip 22.0.4)
|
||||||
|
bpo-46932: Update bundled libexpat to 2.4.7
|
||||||
|
bpo-46811: Make test suite support Expat >=2.4.5
|
||||||
|
bpo-46784: Fix libexpat symbols collisions with user
|
||||||
|
dynamically loaded or statically linked libexpat in embedded
|
||||||
|
Python.
|
||||||
|
bpo-46400: expat: Update libexpat from 2.4.1 to 2.4.4
|
||||||
|
bpo-46474: In importlib.metadata.EntryPoint.pattern, avoid
|
||||||
|
potential REDoS by limiting ambiguity in consecutive
|
||||||
|
whitespace.
|
||||||
|
bpo-44849: Fix the os.set_inheritable() function on FreeBSD
|
||||||
|
14 for file descriptor opened with the O_PATH flag: ignore
|
||||||
|
the EBADF error on ioctl(), fallback on the fcntl()
|
||||||
|
implementation.
|
||||||
|
bpo-41028: Language and version switchers, previously
|
||||||
|
maintained in every cpython branches, are now handled by
|
||||||
|
docsbuild-script.
|
||||||
|
bpo-45195: Fix test_readline.test_nonascii(): sometimes, the
|
||||||
|
newline character is not written at the end, so don’t
|
||||||
|
expect it in the output.
|
||||||
|
bpo-44949: Fix auto history tests of test_readline:
|
||||||
|
sometimes, the newline character is not written at the end,
|
||||||
|
so don’t expect it in the output.
|
||||||
|
bpo-45405: Prevent internal configure error when running
|
||||||
|
configure with recent versions of clang.
|
||||||
|
- Remove upstreamed patches:
|
||||||
|
- support-expat-245.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 22 05:53:06 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
Tue Feb 22 05:53:06 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@
|
|||||||
%define dynlib() %{sitedir}/lib-dynload/%{1}.cpython-%{abi_tag}-%{archname}-%{_os}%{?_gnu}%{?armsuffix}.so
|
%define dynlib() %{sitedir}/lib-dynload/%{1}.cpython-%{abi_tag}-%{archname}-%{_os}%{?_gnu}%{?armsuffix}.so
|
||||||
%bcond_without profileopt
|
%bcond_without profileopt
|
||||||
Name: %{python_pkg_name}%{psuffix}
|
Name: %{python_pkg_name}%{psuffix}
|
||||||
Version: 3.8.12
|
Version: 3.8.13
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python 3 Interpreter
|
Summary: Python 3 Interpreter
|
||||||
License: Python-2.0
|
License: Python-2.0
|
||||||
@ -160,8 +160,6 @@ Patch32: sphinx-update-removed-function.patch
|
|||||||
# Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'
|
# Use of 'complex' as a C variable name confuses Sphinx; change it to 'num'
|
||||||
# The same goes for 'default', which I had to change to 'def_size'
|
# The same goes for 'default', which I had to change to 'def_size'
|
||||||
Patch33: bpo44426-complex-keyword-sphinx.patch
|
Patch33: bpo44426-complex-keyword-sphinx.patch
|
||||||
# PATCH-FIX-UPSTREAM bpo-46811 gh#python/cpython#d4f5bb912e67299b59b814b89a5afd9a8821a14e
|
|
||||||
Patch34: support-expat-245.patch
|
|
||||||
BuildRequires: autoconf-archive
|
BuildRequires: autoconf-archive
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -424,7 +422,6 @@ other applications.
|
|||||||
%patch29 -p1
|
%patch29 -p1
|
||||||
%patch32 -p1
|
%patch32 -p1
|
||||||
%patch33 -p1
|
%patch33 -p1
|
||||||
%patch34 -p1
|
|
||||||
|
|
||||||
# drop Autoconf version requirement
|
# drop Autoconf version requirement
|
||||||
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac
|
||||||
|
@ -1,101 +0,0 @@
|
|||||||
From d4f5bb912e67299b59b814b89a5afd9a8821a14e Mon Sep 17 00:00:00 2001
|
|
||||||
From: "Miss Islington (bot)"
|
|
||||||
<31488909+miss-islington@users.noreply.github.com>
|
|
||||||
Date: Mon, 21 Feb 2022 11:03:08 -0800
|
|
||||||
Subject: [PATCH] bpo-46811: Make test suite support Expat >=2.4.5 (GH-31453)
|
|
||||||
(GH-31471)
|
|
||||||
|
|
||||||
Curly brackets were never allowed in namespace URIs
|
|
||||||
according to RFC 3986, and so-called namespace-validating
|
|
||||||
XML parsers have the right to reject them a invalid URIs.
|
|
||||||
|
|
||||||
libexpat >=2.4.5 has become strcter in that regard due to
|
|
||||||
related security issues; with ET.XML instantiating a
|
|
||||||
namespace-aware parser under the hood, this test has no
|
|
||||||
future in CPython.
|
|
||||||
|
|
||||||
References:
|
|
||||||
- https://datatracker.ietf.org/doc/html/rfc3968
|
|
||||||
- https://www.w3.org/TR/xml-names/
|
|
||||||
|
|
||||||
Also, test_minidom.py: Support Expat >=2.4.5
|
|
||||||
(cherry picked from commit 2cae93832f46b245847bdc252456ddf7742ef45e)
|
|
||||||
|
|
||||||
Co-authored-by: Sebastian Pipping <sebastian@pipping.org>
|
|
||||||
---
|
|
||||||
Lib/test/test_minidom.py | 17 +++++++++++++++--
|
|
||||||
Lib/test/test_xml_etree.py | 6 ------
|
|
||||||
.../2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst | 1 +
|
|
||||||
3 files changed, 16 insertions(+), 8 deletions(-)
|
|
||||||
create mode 100644 Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst
|
|
||||||
|
|
||||||
diff --git a/Lib/test/test_minidom.py b/Lib/test/test_minidom.py
|
|
||||||
index 041a41511314a..0b76f6e87bc50 100644
|
|
||||||
--- a/Lib/test/test_minidom.py
|
|
||||||
+++ b/Lib/test/test_minidom.py
|
|
||||||
@@ -5,10 +5,12 @@
|
|
||||||
from test import support
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
+import pyexpat
|
|
||||||
import xml.dom.minidom
|
|
||||||
|
|
||||||
from xml.dom.minidom import parse, Node, Document, parseString
|
|
||||||
from xml.dom.minidom import getDOMImplementation
|
|
||||||
+from xml.parsers.expat import ExpatError
|
|
||||||
|
|
||||||
|
|
||||||
tstfile = support.findfile("test.xml", subdir="xmltestdata")
|
|
||||||
@@ -1146,7 +1148,13 @@ def testEncodings(self):
|
|
||||||
|
|
||||||
# Verify that character decoding errors raise exceptions instead
|
|
||||||
# of crashing
|
|
||||||
- self.assertRaises(UnicodeDecodeError, parseString,
|
|
||||||
+ if pyexpat.version_info >= (2, 4, 5):
|
|
||||||
+ self.assertRaises(ExpatError, parseString,
|
|
||||||
+ b'<fran\xe7ais></fran\xe7ais>')
|
|
||||||
+ self.assertRaises(ExpatError, parseString,
|
|
||||||
+ b'<franais>Comment \xe7a va ? Tr\xe8s bien ?</franais>')
|
|
||||||
+ else:
|
|
||||||
+ self.assertRaises(UnicodeDecodeError, parseString,
|
|
||||||
b'<fran\xe7ais>Comment \xe7a va ? Tr\xe8s bien ?</fran\xe7ais>')
|
|
||||||
|
|
||||||
doc.unlink()
|
|
||||||
@@ -1592,7 +1600,12 @@ def testEmptyXMLNSValue(self):
|
|
||||||
self.confirm(doc2.namespaceURI == xml.dom.EMPTY_NAMESPACE)
|
|
||||||
|
|
||||||
def testExceptionOnSpacesInXMLNSValue(self):
|
|
||||||
- with self.assertRaisesRegex(ValueError, 'Unsupported syntax'):
|
|
||||||
+ if pyexpat.version_info >= (2, 4, 5):
|
|
||||||
+ context = self.assertRaisesRegex(ExpatError, 'syntax error')
|
|
||||||
+ else:
|
|
||||||
+ context = self.assertRaisesRegex(ValueError, 'Unsupported syntax')
|
|
||||||
+
|
|
||||||
+ with context:
|
|
||||||
parseString('<element xmlns:abc="http:abc.com/de f g/hi/j k"><abc:foo /></element>')
|
|
||||||
|
|
||||||
def testDocRemoveChild(self):
|
|
||||||
diff --git a/Lib/test/test_xml_etree.py b/Lib/test/test_xml_etree.py
|
|
||||||
index 75c9c25a8b639..5ba0de82cdf9a 100644
|
|
||||||
--- a/Lib/test/test_xml_etree.py
|
|
||||||
+++ b/Lib/test/test_xml_etree.py
|
|
||||||
@@ -1683,12 +1683,6 @@ def test_issue6233(self):
|
|
||||||
b"<?xml version='1.0' encoding='ascii'?>\n"
|
|
||||||
b'<body>tãg</body>')
|
|
||||||
|
|
||||||
- def test_issue3151(self):
|
|
||||||
- e = ET.XML('<prefix:localname xmlns:prefix="${stuff}"/>')
|
|
||||||
- self.assertEqual(e.tag, '{${stuff}}localname')
|
|
||||||
- t = ET.ElementTree(e)
|
|
||||||
- self.assertEqual(ET.tostring(e), b'<ns0:localname xmlns:ns0="${stuff}" />')
|
|
||||||
-
|
|
||||||
def test_issue6565(self):
|
|
||||||
elem = ET.XML("<body><tag/></body>")
|
|
||||||
self.assertEqual(summarize_list(elem), ['tag'])
|
|
||||||
diff --git a/Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst b/Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst
|
|
||||||
new file mode 100644
|
|
||||||
index 0000000000000..6969bd1898f65
|
|
||||||
--- /dev/null
|
|
||||||
+++ b/Misc/NEWS.d/next/Library/2022-02-20-21-03-31.bpo-46811.8BxgdQ.rst
|
|
||||||
@@ -0,0 +1 @@
|
|
||||||
+Make test suite support Expat >=2.4.5
|
|
Loading…
x
Reference in New Issue
Block a user