Commit graph

86 commits

Author SHA1 Message Date
Karolina Surma
1331394c24 Lower the minimal required autoconf version for EPEL 9 build 2025-06-25 16:33:29 +02:00
Karolina Surma
f31a75016f Switch the basic conditionals based on the bootstrap's value
We always switch rpmswheels, optimizations and tests when bootstrapping
new Python version, so they can be tied to the bootstrap conditional.
With that, switching the bootstrap in Koji side tag will be possible,
letting us to avoid separate "bootstrap" and "rebuild" commits.
2025-06-25 16:33:29 +02:00
Karolina Surma
1a07ebce6b Move the bootstrapping conditionals above the global metadata
We need to have it above the Release field, in order for the build NVR
to contain the ~bootstrap suffix and sort correctly (lower than the main
build).

This enables bootstrapping the package directly in Koji side tag.
2025-06-25 11:53:04 +02:00
Karolina Surma
a7e6af421e Downstream patch: Skip tests not working with older expat version
This will ensure the tests run in Fedoras and EPEL 10, but are skipped
for EPEL 9.
2025-06-25 09:46:57 +02:00
Karolina Surma
c6f6c7c522 Define %python3_pkgversion based on the Python's status
Main Python should retain the value '3', non-main the major-minor one.
We need that to request the correctly versioned wheels for EPEL builds.
2025-06-24 12:58:07 +02:00
Karolina Surma
8df7c5a736 Remove the upper version bound from expat library
It's already greater than 2.6 in all Fedoras.
2025-06-24 11:22:52 +02:00
Miro Hrončok
17339454ef Verify bundled() provides for setuptools.whl 2025-05-13 17:29:44 +00:00
Miro Hrončok
ae868353c3 Update to 3.13.5 2025-06-12 12:10:14 +02:00
Charalampos Stratakis
2eee834815 Enable PAC and BTI hardware protections for aarch64 2025-06-12 02:49:36 +02:00
Miro Hrončok
d1bf28e630 Revert "Add perf to the testing BuildRequires"
This reverts commit 2198fa7927.

The test fails for 3.13.4.
2025-06-05 11:40:47 +02:00
Tomáš Hrnčiar
b13a982a62 Update to 3.13.4 2025-06-04 13:42:18 +02:00
Python Maint
093e433f0c Rebuilt as non-main Python on Fedora 43 2025-06-02 14:02:26 +02:00
Charalampos Stratakis
2198fa7927 Add perf to the testing BuildRequires
Perf profiling showing the Python functions is only
supported on x86_64 and aarch64 at the moment.

Adding perf as a BuildRequires allows tests that utilize the
perf binary to run.
2025-05-12 18:41:11 +02:00
Miro Hrončok
5336a4f623 Drop requirement on python-wheel-wheel with setuptools >= 71 2025-05-06 19:12:54 +02:00
Charalampos Stratakis
d3f76dd9d5 Apply Intel's CET for mitigation against control-flow hijacking attacks 2025-04-23 16:16:36 +02:00
Tomáš Hrnčiar
ee3b609ce7 Update to 3.13.3 2025-04-10 15:17:59 +02:00
Miro Hrončok
94a1f56279 Rebuilt with mpdecimal 4.0.0 2025-02-06 12:04:28 +01:00
Charalampos Stratakis
4f7875132e Update to 3.13.2
Security fix for CVE-2025-0938

Fixes: rhbz#2343274
2025-02-04 22:44:24 +01:00
Miro Hrončok
fd1e3b0098 Changelog typo 2025-02-03 18:30:24 +01:00
Miro Hrončok
ef73f1e89c On Fedora 41 or older, statically build the _datetime module into libpython
- This fixes a segfault when importng it from Python 3.13.0 updated to 3.13.1+ while running
- Fixes: rhbz#2333852
2025-01-29 21:31:44 +01:00
Miro Hrončok
63816a4d7a Ensure this package is built with Tk 8
- Fixes: rhbz#2337760
2025-01-29 21:29:07 +01:00
Charalampos Stratakis
d6e1ac20e8 Remove redundant --with-system-ffi configure option
The option has been removed since Python 3.12

See: 25590eb5de
2025-01-23 02:04:14 +01:00
Fedora Release Engineering
027f189877 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 21:09:02 +00:00
Miro Hrončok
00aa424d30 Security fix for CVE-2024-12254
- Fixes: rhbz#2330927
2024-12-09 14:59:04 +01:00
Miro Hrončok
f84c0fe12f Optimize patch 251 a tiny bit
Before:

    $ python3.14 -m timeit -s 'import sysconfig' 'sysconfig.get_paths()'
    2000 loops, best of 5: 157 usec per loop

    $ python3.14 -m timeit -s 'import sysconfig' 'sysconfig.get_paths()'
    2000 loops, best of 5: 162 usec per loop

    $ python3.14 -m timeit -s 'import sysconfig' 'sysconfig.get_paths()'
    1000 loops, best of 5: 146 usec per loop

After:

    $ python3.14 -m timeit -s 'import sysconfig' 'sysconfig.get_paths()'
    5000 loops, best of 5: 75.9 usec per loop

    $ python3.14 -m timeit -s 'import sysconfig' 'sysconfig.get_paths()'
    5000 loops, best of 5: 77.1 usec per loop

    $ python3.14 -m timeit -s 'import sysconfig' 'sysconfig.get_paths()'
    5000 loops, best of 5: 76.2 usec per loop

The results are inconclusive on 3.13,
but we want the patch to be identical (if possible).

This can be shipped with the next update.
2024-12-05 11:57:53 +01:00
Charalampos Stratakis
ae3b33f266 Update to 3.13.1
Security fix for CVE-2024-9287

Fixes: rhbz#2321657
2024-12-04 14:31:57 +01:00
U2FsdGVkX1
a5d0a1835e Increase the timeout for riscv64 because the current RISC-V CPU has slower performance. 2024-11-13 20:17:42 +08:00
Miro Hrončok
461d9adf9e Turn valgrind bcond into in-place %ifarch
There's no way to turn this bcond off on arches where it is not supported.
There's no need to turn this bcond on on arches where it is supported.
2024-10-15 18:19:14 +02:00
Miro Hrončok
90ea69d66a Remove rarely used bconds
I have not used those in ~12 years.
2024-10-15 18:18:17 +02:00
Miro Hrončok
7fc2da03e5 Use new-style RPM bconds 2024-10-15 18:16:31 +02:00
Karolina Surma
f443f05bcf Skip test_signal and test_deadlock on ppc64le 2024-10-08 12:11:07 +02:00
Karolina Surma
1299ef8725 Update to Python 3.13.0 2024-10-08 09:39:13 +02:00
Miro Hrončok
7aec56a73f Update to Python 3.13.0rc3 2024-10-01 17:36:42 +02:00
Miro Hrončok
d3b035438f Fix segfault when trying to use PyRun_SimpleString() with some imports 2024-09-19 18:48:13 +02:00
Miro Hrončok
9de4655645 Handle an empty AST body when reporting tracebacks
- Fixes: rhbz#2311907
2024-09-19 00:08:35 +02:00
Miro Hrončok
3758838aa7 Revert "Skip test_abort_clients"
This was fixed upstream in https://github.com/python/cpython/pull/123443

This reverts commit 75fa60d507.
This reverts commit f01f38eff5.
2024-09-09 15:29:28 +02:00
Miro Hrončok
75f739f5a9 Revert "Skip test_sendfile_close_peer_in_the_middle_of_receiving on ppc64le"
This was fixed upstream in https://github.com/python/cpython/pull/123421

This reverts commit 222d4d99b9.
2024-09-09 15:25:51 +02:00
Karolina Surma
19f429832d Update to Python 3.13.0rc2 2024-09-07 10:03:09 +02:00
Miro Hrončok
222d4d99b9 Skip test_sendfile_close_peer_in_the_middle_of_receiving on ppc64le
Reported upstream https://github.com/python/cpython/issues/123384
Which was a duplicate of https://github.com/python/cpython/issues/120226

The test is fixed on the main branch, but skipping is easier than backporting.

The failure occurs with Kernel 6.10.x even when Python is built with an older Kernel.
By skipping the tests, we can ship a CVE fix.
2024-08-27 15:28:39 +02:00
Miro Hrončok
75fa60d507 Also skip test_abort_clients when building the package
This is a fixup for f01f38eff5

Previously, the test only failed on CI; now it also fails in %check.
2024-08-26 11:23:49 +02:00
Charalampos Stratakis
b53472088c Security fix for CVE-2024-8088
Fixes: rhbz#2307462
2024-08-23 15:32:50 +02:00
Miro Hrončok
66bf96f29a Security fix for CVE-2024-6923
- Fixes: rhbz#2303160
2024-08-06 23:23:11 +02:00
Miro Hrončok
396df33f84 Fix SystemError in PyEval_GetLocals()
- Fixes: rhbz#2303107
2024-08-06 23:21:44 +02:00
Karolina Surma
5ff1fff3e0 Update to Python 3.13.0rc1 2024-08-01 13:10:59 +02:00
Miro Hrončok
b25f06562b Preserve AST nodes for f-string with single-element format specifiers
- Fixes https://github.com/python/cpython/issues/122300
2024-07-30 12:19:31 +02:00
Miro Hrončok
c27761fdda Revert "Skip test_gdb for now"
This reverts commit db3aa2889c.

gdb was fixed in gdb-14.2-13.fc41
2024-07-23 15:24:37 +00:00
Miro Hrončok
7ed344344c Explicitly BuildRequire systemtap-sdt-devel
This is for https://fedoraproject.org/wiki/Changes/Separate_dtrace_package

This already BuildRequired /usr/bin/dtrace, but it also needs the headers:

    In file included from /builddir/build/BUILD/python3.13-3.13.0_b4-build/Python-3.13.0b4/Include/pydtrace.h:11,
                     from /builddir/build/BUILD/python3.13-3.13.0_b4-build/Python-3.13.0b4/Python/ceval.c:40:
    Include/pydtrace_probes.h:10:10: fatal error: sys/sdt.h: No such file or directory
       10 | #include <sys/sdt.h>
          |          ^~~~~~~~~~~
    compilation terminated.
2024-07-23 13:16:37 +02:00
Miro Hrončok
d1242289d7 Group BuildRequires based in %ifs, sort within 2024-07-22 12:01:42 +00:00
Miro Hrončok
745ccf0261 Reduce and conditionalize BuildRequires
- bzip2 is not used directly, only via bzip2-devel
- tar is not used directly either, %autosetup uses rpmuncompress
- desktop-file-utils is only used to install idle desktop file with main_python
- libappstream-glib is only used to validate idle appdata file with main_python
- /usr/sbin/ifconfig is no longer needed for test_uuid
- gcc-c++, glibc-all-langpacks, tzdata are only used in tests
  (although something pulls in tzdata even with bootstrap without tests, so this one is hard to verify)
- gmp-devel in not needed since Python 2.4 (mpz module was removed)
- libGL-devel appears unused (and hard to find why it ever was needed)

Courtesy of https://github.com/mkoncek/unbreq
2024-07-22 12:01:42 +00:00
Miro Hrončok
6740145ba8 Update to Python 3.13.0b4
The freethreading packages are now located in /usr/lib64/python3.13t
See https://github.com/python/cpython/issues/121103

Co-Authored-By: Karolina Surma <ksurma@redhat.com>
2024-07-22 12:53:50 +02:00