From a6751e4cb12062f5bbd900c5def7f474852d4d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= Date: Tue, 19 Aug 2025 13:18:33 +0200 Subject: [PATCH] Convert from Fedora for the Python 3.14 stack in RHEL --- python3.14.spec | 149 ++++++++++++++++++------------------------------ 1 file changed, 57 insertions(+), 92 deletions(-) diff --git a/python3.14.spec b/python3.14.spec index d6cae5b..586e435 100644 --- a/python3.14.spec +++ b/python3.14.spec @@ -14,7 +14,7 @@ # - disables regen-all with the same Python version # - disables dependency on python3-rpm-generators if we build with main_python # - disables rpmwheels, optimizations and tests by default -%bcond bootstrap 0 +%bcond bootstrap 1 # Whether to use RPM build wheels from the python-{pip,setuptools,wheel}-wheel packages # Uses upstream bundled prebuilt wheels otherwise @@ -60,8 +60,8 @@ License: Python-2.0.1 # Main Python, i.e. whether this is the main Python version in the distribution # that owns /usr/bin/python3 and other unique paths # This also means the built subpackages are called python3 rather than python3X -# By default, this is determined by the %%__default_python3_pkgversion value -%bcond main_python %["%{?__default_python3_pkgversion}" == "%{pybasever}"] +# RHEL: Disabled by default +%bcond main_python 0 # If this is *not* Main Python, should it contain `Provides: python(abi) ...`? # In Fedora no package shall depend on an alternative Python via this tag, so we do not provide it. @@ -948,6 +948,10 @@ rm configure pyconfig.h.in # Patch out the version requirement on autoconf 2.72 # We need it to allow the version available in RHEL 9 sed -i "s/AC_PREREQ(\[2\.72\])/AC_PREREQ([2.69])/" configure.ac +# There is a missing backslash which causes failures on RHEL 9 +# Upstream commit: github.com/python/cpython/pull/137394.patch +sed -i 's/pthread_set_name_np$/pthread_set_name_np \\/' configure.ac + # ====================================================== # Configuring and building the code: @@ -1933,93 +1937,54 @@ CheckPython freethreading # ====================================================== %changelog -* Fri Oct 17 2025 Karolina Surma - 3.14.0-2 -- Split -freethreading package into analogs of the main Python - -* Tue Oct 07 2025 Karolina Surma - 3.14.0-1 -- Update to Python 3.14.0 - -* Thu Sep 18 2025 Karolina Surma - 3.14.0~rc3-1 -- Update to Python 3.14.0rc3 -- The .pyc magic number was bumped again - -* Thu Aug 14 2025 Miro Hrončok - 3.14.0~rc2-1 -- Update to Python 3.14.0rc2 -- The .pyc magic number was bumped - -* Fri Jul 25 2025 Fedora Release Engineering - 3.14.0~rc1-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild - -* Tue Jul 22 2025 Miro Hrončok - 3.14.0~rc1-1 -- Update to Python 3.14.0rc1 - -* Tue Jul 08 2025 Miro Hrončok - 3.14.0~b4-1 -- Update to Python 3.14.0b4 - -* Wed Jun 25 2025 Karolina Surma - 3.14.0~b3-3 -- Conditionally skip tests not working with the older expat version - -* Wed Jun 18 2025 Charalampos Stratakis - 3.14.0~b3-2 -- Enable PAC and BTI hardware protections for aarch64 - -* Tue Jun 17 2025 Miro Hrončok - 3.14.0~b3-1 -- Update to Python 3.14.0b3 -- The .pyc magic number was bumped -- python3.14-freethreading is no longer provisional - -* Mon Jun 02 2025 Python Maint - 3.14.0~b2-3 -- Rebuilt for Python 3.14 - -* Mon Jun 02 2025 Python Maint - 3.14.0~b2-2 -- Bootstrap for Python 3.14 - -* Mon May 26 2025 Miro Hrončok - 3.14.0~b2-1 -- Update to Python 3.14.0b2 - -* Wed May 07 2025 Karolina Surma - 3.14.0~b1-1 -- Update to Python 3.14.0b1 - -* Mon May 05 2025 Miro Hrončok - 3.14.0~a7-3 -- Drop requirement on python-wheel-wheel with setuptools >= 71 - -* Tue Apr 22 2025 Charalampos Stratakis - 3.14.0~a7-2 -- Apply Intel's CET for mitigation against control-flow hijacking attacks - -* Tue Apr 08 2025 Karolina Surma - 3.14.0~a7-1 -- Update to Python 3.14.0a7 - -* Mon Mar 17 2025 Karolina Surma - 3.14.0~a6-1 -- Update to Python 3.14.0a6 - -* Wed Feb 12 2025 Karolina Surma - 3.14.0~a5-1 -- Update to Python 3.14.0a5 - -* Thu Feb 06 2025 Miro Hrončok - 3.14.0~a4-3 -- Rebuilt with mpdecimal 4.0.0 - -* Tue Feb 04 2025 Charalampos Stratakis - 3.14.0~a4-2 -- Security fix for CVE-2025-0938 -- Fixes: rhbz#2343273 - -* Mon Jan 20 2025 Karolina Surma - 3.14.0~a4-1 -- Update to Python 3.14.0a4 - -* Sat Jan 18 2025 Fedora Release Engineering - 3.14.0~a3-2 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild - -* Tue Dec 17 2024 Karolina Surma - 3.14.0~a3-1 -- Update to Python 3.14.0a3 - -* Sun Dec 08 2024 Charalampos Stratakis - 3.14.0~a2-2 -- Security fix for CVE-2024-12254 -- Fixes: rhbz#2330928 - -* Wed Nov 20 2024 Karolina Surma - 3.14.0~a2-1 -- Update to Python 3.14.0a2 - -* Fri Oct 18 2024 Karolina Surma - 3.14.0~a1-2 -- Build Python 3.14 using Python 3.14 - -* Thu Oct 17 2024 Karolina Surma - 3.14.0~a1-1 -- Initial Python 3.14 package forked from Python 3.13 +* Wed Oct 22 2025 Tomáš Hrnčiar - 3.14.0-2 +- Initial package +- Fedora contributions by: + Björn Esser + Bohuslav Kabrda + Charalampos Stratakis + Dan Horák + David Malcolm + Dennis Gilmore + Florian Weimer + Gwyn Ciesla + Igor Gnatenko + Iryna Shcherbina + Jaroslav Škarvada + Jason ティビツ + Kalev Lember + Karolina Surma + Karsten Hopp + Lukáš Zachar + Lumir Balhar + Marcel Plch + Matej Stuchlik + Michal Cyprian + Michal Toman + Miro Hrončok + Nicolas Chauvet + Orion Poplawski + Patrik Kopkan + Peter Robinson + Petr Šplíchal + Petr Viktorin + Rex Dieter + Richard W.M. Jones + Robert Kuska + Sahana Prasad + Stephen Gallagher + Than Ngo + Thomas Spura + Till Maas + Tom Stellard + Tomas Mraz + Tomas Orsava + Tomas Radej + Tomáš Hrnčiar + Toshio Kuratomi + U2FsdGVkX1 + Victor Stinner + Ville Skyttä + Yaakov Selkowitz + Zbigniew Jędrzejewski-Szmek