From c80b6acef58f8879a06976321df64ef0b71d43c7 Mon Sep 17 00:00:00 2001 From: Xisco Fauli Date: Thu, 1 Oct 2026 10:09:26 +0200 Subject: [PATCH] python3: upgrade to 3.13.16 Downloaded from https://www.python.org/ftp/python/3.13.16/Python-3.13.16.tar.xz Change-Id: Ic86fd03f87d26a96f7eb4e350b3766ce0992cdbb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211649 Tested-by: Jenkins Reviewed-by: Xisco Fauli --- configure.ac | 2 +- download.lst | 4 ++-- external/python3/ubsan.patch.0 | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 81dc59a566b6..67f6f68965a3 100644 --- a/configure.ac +++ b/configure.ac @@ -10834,7 +10834,7 @@ if test \( "$cross_compiling" = yes -a -z "$PYTHON_FOR_BUILD" \) -o "$enable_pyt SYSTEM_PYTHON= PYTHON_VERSION_MAJOR=3 PYTHON_VERSION_MINOR=13 - PYTHON_VERSION=${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}.15 + PYTHON_VERSION=${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}.16 if ! grep -q -i python.*${PYTHON_VERSION} ${SRC_ROOT}/download.lst; then AC_MSG_ERROR([PYTHON_VERSION ${PYTHON_VERSION} but no matching file in download.lst]) fi diff --git a/download.lst b/download.lst index 09a8cb6bfe98..2fe3e0a8296d 100644 --- a/download.lst +++ b/download.lst @@ -581,8 +581,8 @@ POSTGRESQL_TARBALL := postgresql-15.19.tar.bz2 # three static lines # so that git cherry-pick # will not run into conflicts -PYTHON_SHA256SUM := 1e66a7945a48390ee4c2a4268a0e4185884059a13c4aab6d148aa208deea4a76 -PYTHON_TARBALL := Python-3.13.15.tar.xz +PYTHON_SHA256SUM := f4b1bfb3c79b5bb11b8d228a12504163b4c0dab4d679828d8f5f26b6cb6ab35d +PYTHON_TARBALL := Python-3.13.16.tar.xz # three static lines # so that git cherry-pick # will not run into conflicts diff --git a/external/python3/ubsan.patch.0 b/external/python3/ubsan.patch.0 index 0ae1e4abf281..07fc51205024 100644 --- a/external/python3/ubsan.patch.0 +++ b/external/python3/ubsan.patch.0 @@ -61,7 +61,7 @@ PyObject *key, *value; --- Parser/lexer/buffer.c +++ Parser/lexer/buffer.c -@@ -27,8 +27,8 @@ +@@ -29,8 +29,8 @@ for (index = tok->tok_mode_stack_index; index >= 0; --index) { mode = &(tok->tok_mode_stack[index]); @@ -69,6 +69,6 @@ - mode->f_string_multi_line_start = mode->f_string_multi_line_start_offset < 0 ? NULL : tok->buf + mode->f_string_multi_line_start_offset; + mode->f_string_start = mode->f_string_start_offset < 0 ? NULL : (char *) (((intptr_t) tok->buf) + mode->f_string_start_offset); + mode->f_string_multi_line_start = mode->f_string_multi_line_start_offset < 0 ? NULL : (char *) (((intptr_t) tok->buf) + mode->f_string_multi_line_start_offset); + mode->last_expr_start = mode->last_expr_start_offset < 0 + ? NULL : tok->buf + mode->last_expr_start_offset; } - } -