Commit graph

829 commits

Author SHA1 Message Date
Tomáš Hrnčiar
61754725b2 Fix ThreadedVSOCKSocketStreamTest 2024-09-11 19:54:15 +02:00
Tomáš Hrnčiar
6116f5c4e8 Update to 3.11.10 2024-09-11 19:53:38 +02:00
Miro Hrončok
58d3aefea4 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:36:46 +02:00
Charalampos Stratakis
73a97226f5 Security fix for CVE-2024-8088
Fixes: rhbz#2307460
2024-08-23 15:08:45 +02:00
Charalampos Stratakis
0ba3337813 Security fix for CVE-2024-6923 (rhbz#2303158) 2024-08-16 01:52:30 +02:00
Charalampos Stratakis
8ff163b3f2 Security fix for CVE-2024-4032 (rhbz#2293391) 2024-08-16 01:50:57 +02:00
Lumir Balhar
5c3351913b Require systemtap-sdt-devel for sys/sdt.h 2024-07-23 13:24:37 +02:00
Fedora Release Engineering
2a37127936 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 17:26:12 +00:00
Miro Hrončok
f5eb1e0bd1 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 01:47:02 +02:00
Tomáš Hrnčiar
75e1fc6869 Update to 3.11.9 2024-04-09 13:59:56 +02:00
Miro Hrončok
2c45c73ad3 Fix tests for XMLPullParser with Expat 2.6.0
See also: https://bugzilla.redhat.com/2264859
2024-02-28 14:15:47 +01:00
Tomáš Hrnčiar
19c104a138 Update to 3.11.8 2024-02-07 15:16:09 +01:00
Fedora Release Engineering
402c54cf0a Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 13:31:36 +00:00
Fedora Release Engineering
4812846058 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 09:21:45 +00:00
Lumir Balhar
7434c7a69a Security fix for CVE-2023-27043 (rhbz#2196188) 2023-12-18 13:15:07 +01:00
Miro Hrončok
5c1f70d712 Own stray directories in /usr/lib64/python3.11
Fixes https://bugzilla.redhat.com/2252144
2023-12-08 20:36:19 +01:00
Tomáš Hrnčiar
955993c3ec Update to 3.11.7 2023-12-06 14:52:23 +01:00
Yaakov Selkowitz
1b480eac01 Use bundled libb2 in RHEL builds
Standalone libb2 is unwanted in RHEL.
2023-10-05 12:12:15 +02:00
Tomáš Hrnčiar
3254311fe9 Update to 3.11.6 2023-10-04 11:16:54 +02:00
Tomáš Hrnčiar
7d571986dc Temporarily skip test_check_probes in CI tests
See: https://github.com/python/cpython/issues/104280#issuecomment-1669249980
2023-08-29 15:54:08 +02:00
Tomáš Hrnčiar
32c38941f9 Update to 3.11.5 2023-08-29 15:50:12 +02:00
Charalampos Stratakis
ee27ca470f Remove extra distro-applied CFLAGS passed to user-built C extensions
Only -fexceptions and -fcf-protection are preserved for binary
compatibility with user-built python C extension.

https://fedoraproject.org/wiki/Changes/Python_Extension_Flags_Reduction
2023-08-04 16:06:02 +02:00
Fedora Release Engineering
458f7d2d24 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 15:42:14 +00:00
Python Maint
5f98fe006c Rebuilt for Python 3.12 2023-06-13 15:09:02 +02:00
Tomáš Hrnčiar
8ca0a0a2d8 Update to 3.11.4 2023-06-08 08:36:11 +02:00
Charalampos Stratakis
64d93401a3 Fixup for CVE-2023-24329 patch name 2023-05-27 00:55:16 +02:00
Lumir Balhar
68ad779a6c Fix for CVE-2023-24329 2023-05-24 14:08:28 +02:00
Tomáš Hrnčiar
7b688dbf92 Update to 3.11.3 2023-04-05 13:51:34 +02:00
Tomáš Hrnčiar
0331299c7d Update to 3.11.2 2023-02-09 11:25:31 +01:00
Miro Hrončok
db4f001692 Don't require pyproject-rpm-macros on RHEL
See also https://src.fedoraproject.org/rpms/pyproject-rpm-macros/pull-request/345
2023-01-20 20:54:07 +00:00
Fedora Release Engineering
85c6584975 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 18:45:09 +00:00
Miro Hrončok
01ddee3bb6 Remove any deprecation warnings in asyncio.get_event_loop()
The warnings were added in 3.11.1 and will be reverted in 3.11.2.
They make some Fedora packages fail to build, so we backport the revert.
2023-01-11 15:26:49 +01:00
Miro Hrončok
06ef941d95 Fix asyncio subprocess losing stderr and stdout output
Reported as a regression in https://bodhi.fedoraproject.org/updates/FEDORA-2022-dbb811d203
2023-01-09 13:19:27 +00:00
Miro Hrončok
ec7d75e3d1 Opt-out from https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/6TQYCHMX4FZLF27U5BCEC7IFV6XNBKJP/
for rationale, namely https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/message/ZVDEXGPU6JQFXB3XHYZ4IXVQNNR3YM3V/

Summary: Python is currently slower with frame pointers
due to a slowdown in _PyEval_EvalFrameDefault,
but we expect this to be solved in Python 3.12.

Tracking bugzilla: https://bugzilla.redhat.com/2158729

This change does not require a release bump.
It is only needed to be here to prevent the next builds from including frame pointers.
2023-01-06 12:05:28 +01:00
Miro Hrončok
11c77ae388 No longer patch the default bytecode cache invalidation policy
That is, drop patch 328.

Fixes https://bugzilla.redhat.com/2133850

See also https://src.fedoraproject.org/rpms/python-rpm-macros/pull-request/154

This is part of https://fedoraproject.org/wiki/Changes/ReproducibleBuildsClampMtimes
2022-12-19 17:21:06 +01:00
Tomáš Hrnčiar
19bf071b14 Update to 3.11.1 2022-12-07 12:05:59 +01:00
Miro Hrončok
58109b55ab Update to 3.11.0 2022-10-25 00:46:26 +02:00
Miro Hrončok
2d80073286 Update the license tag to SPDX
See https://gitlab.com/fedora/legal/fedora-license-data/-/merge_requests/61

The LICENSE file differs from the text at https://spdx.org/licenses/Python-2.0.1.html
only by:

 - not saying "Python 2.0.1" but "Python" which is considered OK
 - copyright years which is considered OK
 - formatting
 - listing the history and license for code examples from the documentation
   (the documentation is not shipped via this package)
2022-09-13 13:30:06 +02:00
Miro Hrončok
38b3f29b55 Update to 3.11.0rc2 2022-09-13 11:00:55 +02:00
Miro Hrončok
216f3d53bc rpminspect: Explicitly list allowed badfuncs in the _socket module
See https://github.com/rpminspect/rpminspect/pull/805
2022-09-05 17:32:25 +00:00
Miro Hrončok
0c6709aa13 rpmlint: Remove a superfluous space in one of the filters
The warnings look like:

    python3.11-debugsource.x86_64: W: files-duplicate /usr/src/debug/python3.11-3.11.0~rc1-2.fc38.x86_64/build/optimized/Include/pydtrace_probes.h /usr/src/debug/python3.11-3.11.0~rc1-2.fc38.x86_64/build/debug/Include/pydtrace_probes.h
    python3.11-debugsource.x86_64: W: files-duplicate /usr/src/debug/python3.11-3.11.0~rc1-2.fc38.x86_64/build/optimized/Modules/config.c /usr/src/debug/python3.11-3.11.0~rc1-2.fc38.x86_64/build/debug/Modules/config.c
    python3.11-debugsource.x86_64: W: files-duplicate /usr/src/debug/python3.11-3.11.0~rc1-2.fc38.x86_64/build/optimized/Python/deepfreeze/deepfreeze.c /usr/src/debug/python3.11-3.11.0~rc1-2.fc38.x86_64/build/debug/Python/deepfreeze/deepfreeze.c
    python3.11-debugsource.x86_64: W: files-duplicate /usr/src/debug/python3.11-3.11.0~rc1-2.fc38.x86_64/build/optimized/Python/frozen_modules/getpath.h /usr/src/debug/python3.11-3.11.0~rc1-2.fc38.x86_64/build/debug/Python/frozen_modules/getpath.h
2022-09-05 11:20:40 +02:00
Miro Hrončok
a71ba97787 Add more rpmlint rules to avoid all reports we see and don't care about 2022-08-23 15:12:53 +00:00
Miro Hrončok
252afb8c11 Update rpmlintrc to rpmlint 2
- Rename to rpmlint.toml
- Change from Python function calls to TOML list
- Remove rpmlint 1.1 workarounds
- Add rpmlint 2.2 workarounds
- Adjusts some filters to match rpmlint 2.2 messages
2022-08-23 15:12:53 +00:00
Miro Hrončok
d75ca77a64 Don't use custom installation schemes 2022-08-17 14:57:24 +02:00
Tomáš Hrnčiar
ab88d7f86c Update to 3.11.0rc1 2022-08-08 16:04:49 +02:00
Tomáš Hrnčiar
9518f2915c Update to 3.11.0b5 2022-07-26 13:55:26 +02:00
Fedora Release Engineering
2742991dbe Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 23:46:54 +00:00
Miro Hrončok
44b7dd93c4 CI tests config: Define and reuse the pybasever variable
This will make future changes easier to backport to other Python versions.

Note that with jinja2 expressions, we need to quote them to preserve valid yaml, see:
https://docs.ansible.com/ansible/latest/user_guide/playbooks_variables.html#when-to-quote-variables-a-yaml-gotcha
2022-07-12 15:56:13 +00:00
Miro Hrončok
b2d80045f9 Update to 3.11.0b4
Patches 383 and 384 were merged upstream.
Patch 385 was partially merged upstream, the PR with test is still open.
2022-07-12 00:52:25 +02:00
Miro Hrončok
c7432171d0 Finish bootstrap of the re module speed regression fix 2022-07-09 01:23:18 +02:00