From 1a9b96ab3121bfde08dd38f0dd41d79adaac2fc0fd4ba5c834c6e755d3abc442 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 21 Mar 2025 10:53:19 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main python313 revision d0dfd4215089a37af0ae2e0812cb62c5 --- python313.changes | 13 ++++++++++++- python313.spec | 33 +++++++++++++++++++-------------- 2 files changed, 31 insertions(+), 15 deletions(-) diff --git a/python313.changes b/python313.changes index 2dddbfb..5678ee5 100644 --- a/python313.changes +++ b/python313.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Mon Mar 10 15:44:31 UTC 2025 - Bernhard Wiedemann + +- Skip PGO with %want_reproducible_builds (bsc#1239210). + +------------------------------------------------------------------- +Tue Mar 4 11:30:07 UTC 2025 - Daniel Garcia + +- Do not build with experimental_jit when primary_python + ------------------------------------------------------------------- Wed Feb 5 09:13:26 UTC 2025 - Matej Cepl @@ -2958,7 +2968,8 @@ Wed Mar 20 05:08:29 UTC 2024 - Matej Cepl - gh-100985: Update HTTPSConnection to consistently wrap IPv6 Addresses when using a proxy. - gh-100884: email: fix misfolding of comma in address-lists - over multiple lines in combination with unicode encoding. + over multiple lines in combination with unicode encoding + (bsc#1238450 CVE-2025-1795) - gh-95782: Fix io.BufferedReader.tell(), io.BufferedReader.seek(), _pyio.BufferedReader.tell(), io.BufferedRandom.tell(), io.BufferedRandom.seek() and diff --git a/python313.spec b/python313.spec index e6f2d34..ad9488a 100644 --- a/python313.spec +++ b/python313.spec @@ -54,25 +54,12 @@ %bcond_with GIL %endif -%if 0%{?do_profiling} +%if 0%{?do_profiling} && !0%{?want_reproducible_builds} %bcond_without profileopt %else %bcond_with profileopt %endif -# No experimental_jit in SLES, there's no clang >=18 -%if 0%{?suse_version} <= 1600 -%bcond_with experimental_jit -%else -# Currently supported architectures -# https://peps.python.org/pep-0744/#support -%ifarch x86_64 %{x86_64} aarch64 -%bcond_without experimental_jit -%else -%bcond_with experimental_jit -%endif -%endif - # Only for Tumbleweed # https://en.opensuse.org/openSUSE:Python:Externally_managed %if 0%{?suse_version} > 1600 @@ -93,6 +80,24 @@ %define primary_interpreter 0 %endif +# No experimental_jit in SLES, there's no clang >=18 +%if 0%{?suse_version} <= 1600 +%bcond_with experimental_jit +# Disable experimental_jit for primary python. +# llvm is not part of ring0 and experimental_jit requires clang >= 18 +%elif !%{primary_interpreter} +# Currently supported architectures +# https://peps.python.org/pep-0744/#support +%ifarch x86_64 %{x86_64} aarch64 +%bcond_without experimental_jit +%else +%bcond_with experimental_jit +%endif + +%else +%bcond_with experimental_jit +%endif + # %%if 0%%{?sle_version} && 0%%{?suse_version} < 1550 # Obsoleting previous "latest" Python versions # Next versions will get more lines like for older versions