Commit graph

922 commits

Author SHA1 Message Date
Miro Hrončok
014f2b2430 Update to Python 3.14.0b2 2025-05-27 09:29:13 +02:00
Miro Hrončok
ef2d703504 Disable JIT on RHEL
For now on, until we figure out a way of building the JIT with pre-built stencils,
we disable the JIT on RHEL to avoid a dependency on a specific LLVM+clang version.

https://discuss.python.org/t/building-the-jit-with-pre-built-stencils/91838
https://src.fedoraproject.org/rpms/python3.14/pull-request/40
https://github.com/fedora-eln/eln/issues/207
2025-05-20 13:54:21 +02:00
Miro Hrončok
143d59d932 Verify bundled() provides for setuptools.whl 2025-05-13 19:29:44 +02:00
Charalampos Stratakis
1e24d38cd9 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 16:39:54 +02:00
Karolina Surma
05411b4c04 Update to Python 3.14.0b1 2025-05-09 10:58:55 +02:00
Miro Hrončok
e3f12dbc36 Drop requirement on python-wheel-wheel with setuptools >= 71 2025-05-05 12:43:44 +02:00
Charalampos Stratakis
eee246a4f2 Apply Intel's CET for mitigation against control-flow hijacking attacks 2025-04-23 16:14:28 +02:00
Tomáš Hrnčiar
096e4f0d88 Regenerate patches with updated importpatches script 2025-04-17 12:24:25 +02:00
Karolina Surma
81efe7427b Don't mangle the shebangs of test files
Shebangs are mangled from #!/bin/bash to #!/usr/bin/bash, which causes
the change in data_offset calculated in tests, resulting in a
test_zipfile failure:

FAIL: test_data_offset_with_exe_prepended
(test.test_zipfile.test_core.TestDataOffsetPrependedZip.test_data_offset_with_exe_prepended)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python3.14/test/test_zipfile/test_core.py", line
  3431, in test_data_offset_with_exe_prepended
      self._test_data_offset(self.exe_zip)
      ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
  File "/usr/lib64/python3.14/test/test_zipfile/test_core.py",
  line 3428, in _test_data_offset
      self.assertEqual(zipfp.data_offset, 713)
      ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 717 != 713
2025-04-15 10:49:07 +02:00
Karolina Surma
608ee6ea09 Update to Python 3.14.0a7 2025-04-11 11:42:59 +02:00
Karolina Surma
4490e888a6 Update to Python 3.14.0a6 2025-03-18 09:03:12 +01:00
Karolina Surma
a6be165890 Update to Python 3.14.0a5 2025-02-18 08:53:49 +01:00
Miro Hrončok
71818464a3 Rebuilt with mpdecimal 4.0.0 2025-02-06 12:04:28 +01:00
Charalampos Stratakis
a9eff720fa Security fix for CVE-2025-0938
Fixes: rhbz#2343273
2025-02-04 04:26:18 +01:00
Miro Hrončok
524afa95d3 Drop version constraints from Recommends
This makes it easier for the package manager to determine "already broken" weak dependency.
When Python is updated, the Recommends now remain identical, rather than being "new".

Note that I don't know if dnf currently treats weak dependencies this way,
but the assumption is that it *might*.

The reverse dependency is versioned anyway, so the constraint is not necessary.

Intentionally not bumping the release, this can land with the next update.
2025-01-28 13:30:16 +01:00
Charalampos Stratakis
594724cb65 Remove redundant --with-system-ffi configure option
The option has been removed since Python 3.12

See: 25590eb5de
2025-01-23 02:04:40 +01:00
Karolina Surma
83a2832b2b Update to Python 3.14.0a4 2025-01-21 17:36:57 +01:00
Fedora Release Engineering
8d4a33cab3 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 21:09:13 +00:00
Miro Hrončok
2f4307845b Remove unused GPG key 2025-01-02 11:30:49 +01:00
Miro Hrončok
85202ae1ee Bump the PYC magic number for a change in annotate functions 2025-01-02 11:30:18 +01:00
Karolina Surma
31971f96ff Update to Python 3.14.0a3
selftest and debugtest in tests/tests.yml exclude test_sysconfigdata_json
for now, reported upstream as:
https://github.com/python/cpython/issues/128055
2024-12-18 13:40:47 +01:00
Charalampos Stratakis
1e0faaa82b Security fix for CVE-2024-12254
Fixes: rhbz#2330928
2024-12-08 21:28:58 +01:00
Miro Hrončok
42592ff6ca 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

This can be shipped together with the next alpha release.
2024-12-05 11:50:31 +01:00
Karolina Surma
139e55ac21 Update to Python 3.14.0a2 2024-11-20 14:55:55 +01:00
U2FsdGVkX1
a6de6df64c Increase the timeout for riscv64 because the current RISC-V CPU has slower performance. 2024-11-13 16:17:12 +01:00
Tom Stellard
6efb19ea1b Remove unnecessary export LINKCC=gcc
I tracked the addition of this line to a 20-year old commit:
https://src.fedoraproject.org/rpms/python2/c/d4a39597bc32ab2cf84b43a3b0c71a18d1a0e0ec

I can't see why this would still be necessary, and it also prevents the
package from being built with clang.
2024-11-09 17:07:13 +01:00
Karolina Surma
03979a1e62 Finish bootstrapping Python 3.14, use it to build self 2024-10-18 13:50:29 +02:00
Karolina Surma
75087a7a85 Initial Python 3.14 package forked from Python 3.13
Python's upstream decided to switch from artifacts GPG signing to sigstore.
We don't have sigstore in Fedora yet, so we're skipping the (now impossible) GPG check
without a replacement.
2024-10-17 17:30:30 +02: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
Miro Hrončok
a8ce422a93 CI: Explicitly lists flags to be checked for -O3/-O0
Not listing the flags skips the ones without -O.
This way, we no longer assert -O3/-O2 is the only -O flag,
but we also assert it is actually set.
2024-10-14 12:00:50 +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
f01f38eff5 CI: Skip test_abort_clients, failure reported upstream
https://github.com/python/cpython/issues/122136
2024-07-24 00:08:05 +02:00
Miro Hrončok
90526d6169 rpmlint: Exclude unittest and gil from spelling-error
python3-test.x86_64: E: spelling-error ('unittest', '%description -l en_US unittest -> unit test, unit-test, unities')
    python3.13-freethreading.x86_64: E: spelling-error ('gil', '%description -l en_US gil -> Gil, girl, gilt')
    python3.13-freethreading-debug.x86_64: E: spelling-error ('gil', '%description -l en_US gil -> Gil, girl, gilt')
2024-07-23 22:07:22 +00: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