From 085afc322b15bf0bdc1818d80227dc802e3f6bff Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Wed, 23 Oct 2024 16:24:20 +0200 Subject: python3: update 3.12.6 -> 3.13.0 License-update: copyright years Update 0001-Makefile.pre-use-qemu-wrapper-when-gathering-profile.patch to only include tests that do not fail under qemu (following upstream change that also no longer obscures failures). Drop 0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch (backport) 0001-python3-use-cc_basename-to-replace-CC-for-checking-c.patch (fixed upstream) 0020-configure.ac-setup.py-do-not-add-a-curses-include-pa.patch (code completely rewritten upstream) cgi_py.patch (cgi and cgitb modules removed upstream) Add fix-armv5.patch (address armv5 crashes) Modules removed in 3.13 (look for 'important removals'): https://docs.python.org/3/whatsnew/3.13.html Manifest updated accordingly. Add an explicit dependency on libatomic (needed on mips and ppc), as upstream has explicitly switched it off in cross builds. It's a no-op on other targets. Fcntl relocated to python3-core by the manifest script. (From OE-Core rev: 0b49c9aa31279ecda565cc66b63d1d61723b37b8) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- ...arfile-treat-overflow-in-UID-GID-as-failu.patch | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch (limited to 'meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch') diff --git a/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch b/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch deleted file mode 100644 index 88b84c6024..0000000000 --- a/meta/recipes-devtools/python/python3/0001-gh-107811-tarfile-treat-overflow-in-UID-GID-as-failu.patch +++ /dev/null @@ -1,40 +0,0 @@ -From 999d4e74d34afa233ad8ad0c70b989d77a21957f Mon Sep 17 00:00:00 2001 -From: Petr Viktorin -Date: Wed, 23 Aug 2023 20:00:07 +0200 -Subject: [PATCH] gh-107811: tarfile: treat overflow in UID/GID as failure to - set it (#108369) - -Upstream-Status: Backport [https://github.com/python/cpython/pull/108369] -Signed-off-by: Khem Raj ---- - Lib/tarfile.py | 3 ++- - .../Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst | 3 +++ - 2 files changed, 5 insertions(+), 1 deletion(-) - create mode 100644 Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst - -diff --git a/Lib/tarfile.py b/Lib/tarfile.py -index 3bbbcaa..473167d 100755 ---- a/Lib/tarfile.py -+++ b/Lib/tarfile.py -@@ -2557,7 +2557,8 @@ class TarFile(object): - os.lchown(targetpath, u, g) - else: - os.chown(targetpath, u, g) -- except OSError as e: -+ except (OSError, OverflowError) as e: -+ # OverflowError can be raised if an ID doesn't fit in `id_t` - raise ExtractError("could not change owner") from e - - def chmod(self, tarinfo, targetpath): -diff --git a/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst b/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst -new file mode 100644 -index 0000000..ffca413 ---- /dev/null -+++ b/Misc/NEWS.d/next/Library/2023-08-23-17-34-39.gh-issue-107811.3Fng72.rst -@@ -0,0 +1,3 @@ -+:mod:`tarfile`: extraction of members with overly large UID or GID (e.g. on -+an OS with 32-bit :c:type:`!id_t`) now fails in the same way as failing to -+set the ID. --- -2.45.0 - -- cgit v1.2.3-54-g00ecf