Commit graph

66 commits

Author SHA1 Message Date
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
Fedora Release Engineering
4463b58c2f Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 17:26:54 +00:00
Miro Hrončok
1fc17cc898 Fix a bug that emptied the command history of the Python REPL (~/.python_history) 2024-07-02 11:41:59 +02:00
Karolina Surma
917cccffae Update to Python 3.13.0b3 2024-06-28 10:38:31 +02:00
Miro Hrončok
f1315eaf0b On Fedora 40+ x86_64 and aarch64, build Python with the experimental JIT compiler 2024-06-19 11:58:27 +02:00
Karolina Surma
29ab7b7006 Skip test_deadlock on s390x 2024-06-18 13:00:35 +02:00
Python Maint
5cf9f2e9e5 Rebuilt for Python 3.13 2024-06-06 18:27:18 +02:00
Python Maint
a843455610 Bootstrap for Python 3.13 2024-06-06 16:08:25 +02:00
Karolina Surma
3aedd5cc92 Fedora 38 is EOL, always build with rpmwheels 2024-06-06 11:54:58 +02:00
Karolina Surma
e2f294c9e2 Keep SOURCE_DATE_EPOCH set 2024-06-06 11:54:58 +02:00
Karolina Surma
fe95321993 Skip test_signal for now 2024-06-06 11:54:58 +02:00
Miro Hrončok
db3aa2889c Skip test_gdb for now 2024-06-06 08:51:00 +02:00
Miro Hrončok
7b82077f49 Update to Python 3.13.0b2 2024-06-06 01:32:42 +02:00
Karolina Surma
1c24374362 Update to Python 3.13.0b1 2024-05-10 13:15:38 +02:00
Miro Hrončok
0898154cc9 Build Python with -O3
https://fedoraproject.org/wiki/Changes/Python_built_with_gcc_O3
2024-05-09 15:06:13 +02:00
Miro Hrončok
c686992b6c Require expat >= 2.6 to prevent errors when creating venvs with older expat
The code in CPython uses XML_SetReparseDeferralEnabled when expat is >= 2.6 during the build.
However, when users upgrade Python independently on the expat package,
they may have expat 2.5 installed and see errors like:

    $ python3.1X -m venv venv
    Error: Command '['venv/bin/python3.1X', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

    $ venv/bin/python3.1X -m ensurepip --upgrade --default-pip
    Traceback (most recent call last):
      ...
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/commands/install.py", line 15, in <module>
        from pip._internal.cli.req_command import (
        ...<3 lines>...
        )
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/cli/req_command.py", line 21, in <module>
        from pip._internal.index.package_finder import PackageFinder
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/index/package_finder.py", line 30, in <module>
        from pip._internal.req import InstallRequirement
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/req/__init__.py", line 8, in <module>
        from .req_install import InstallRequirement
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/req/req_install.py", line 40, in <module>
        from pip._internal.operations.install.wheel import install_wheel
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_internal/operations/install/wheel.py", line 39, in <module>
        from pip._vendor.distlib.scripts import ScriptMaker
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 16, in <module>
        from .compat import sysconfig, detect_encoding, ZipFile
      File "/tmp/.../pip-24.0-py3-none-any.whl/pip/_vendor/distlib/compat.py", line 81, in <module>
        import xmlrpc.client as xmlrpclib
      File "/usr/lib64/python3.1X/xmlrpc/client.py", line 138, in <module>
        from xml.parsers import expat
      File "/usr/lib64/python3.1X/xml/parsers/expat.py", line 4, in <module>
        from pyexpat import *
    ImportError: /usr/lib64/python3.1X/lib-dynload/pyexpat.cpython-31X-x86_64-linux-gnu.so: undefined symbol: XML_SetReparseDeferralEnabled
    Traceback (most recent call last):
      ...
    subprocess.CalledProcessError: Command '['venv/bin/python3.1X', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/.../pip-24.0-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/...\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.

Thanks to Markus Falb for discovering this problem.

https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/7XHGWHBQDNFKNGSZTP44SSD6PQKZPG6C/
2024-04-18 00:58:28 +02:00
Karolina Surma
fa7c4e897f Declare the bundled mimalloc and update license tags accordingly
mimalloc provide is only declared in -libs subpackage, although
it's present also in -devel, -debug, -freethreading and
-freethreading-debug. All of those effectively require -libs, so
duplicating the provide accross all those was deemed unnecessary.
2024-04-12 13:00:08 +02:00
Karolina Surma
b95623ede3 Update to Python 3.13.0a6
Patch 00371 was removed as it no longer applies after
33da0e844c
We need to monitor the freeipa situation and rework the patch entirely in
case it is still needed.
See also https://bugzilla.redhat.com/2133853
2024-04-12 08:31:46 +02:00
Karolina Surma
c1d785c5ae Remove internal usage of @LIBPYTHON@ 2024-03-21 09:46:36 +01:00
Miro Hrončok
4161fb48da Move all test modules to the test subpackage
- __phello__
  - _xxinterpqueues
  - _xxsubinterpreters
  - xxlimited
  - xxlimited_35
  - xxsubtype

Source: https://github.com/python/cpython/blob/v3.13.0a5/Tools/build/generate_stdlib_module_names.py#L21
2024-03-13 12:42:47 +01:00
Miro Hrončok
0697d12bda Update to Python 3.13.0a5 2024-03-13 12:06:12 +01:00