Commit graph

808 commits

Author SHA1 Message Date
Miro Hrončok
dfe7d50957 Ensure this package is built with Tk 8
- Fixes: rhbz#2337757
2025-02-03 12:21:09 +01:00
df15baee47
Add explicit BR: libxcrypt-devel
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2025-02-01 19:56:54 +01:00
Fedora Release Engineering
10df377823 Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild 2025-01-18 21:08:05 +00:00
Charalampos Stratakis
9af4582cf9 Update to 3.10.16
Security fix for CVE-2024-9287

Resolves: rhbz#2321654
2024-12-05 00:54:17 +01:00
Miro Hrončok
5c73fd0f8e Fix ThreadedVSOCKSocketStreamTest 2024-09-11 20:20:50 +02:00
Miro Hrončok
cdabc2abe7 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.
2024-09-09 16:10:38 +02:00
Tomáš Hrnčiar
6d6290fa95 Update to 3.10.15 2024-09-09 10:54:57 +02:00
Lumir Balhar
67b71083fa Require systemtap-sdt-devel for sys/sdt.h 2024-07-23 13:23:31 +02:00
Fedora Release Engineering
f7d93eee18 Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 17:26:02 +00:00
Miro Hrončok
b3ea7e1f7d 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:50:23 +02:00
Tomáš Hrnčiar
8ba4297490 Update to 3.10.14 2024-03-20 11:33:47 +01:00
Tomáš Hrnčiar
88602725a6 Merge rawhide with f39 2024-03-20 11:30:32 +01:00
Charalampos Stratakis
d897af59da Fix tests for XMLPullParser with Expat 2.6.0
See also: https://bugzilla.redhat.com/2264859
2024-02-28 17:10:33 +01:00
Charalampos Stratakis
f8879650f9 Fix tests for XMLPullParser with Expat 2.6.0
See also: https://bugzilla.redhat.com/2264859
2024-02-28 17:08:06 +01:00
Karolina Surma
433e38e58c Fix test_zlib with zlib-ng-compat 2024-01-29 12:00:35 +01:00
Fedora Release Engineering
740efdfb46 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 13:31:26 +00:00
Fedora Release Engineering
8e56c79b2a Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 09:21:36 +00:00
Lumir Balhar
034e3e58be Security fix for CVE-2023-27043 (rhbz#2196187) 2023-12-18 13:15:37 +01:00
Tomáš Hrnčiar
f9e0b9baea Update to 3.10.13 2023-08-28 15:35:01 +02:00
Charalampos Stratakis
53f7dd0a42 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:16:20 +02:00
Fedora Release Engineering
1a8b07885e Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 15:41:58 +00:00
Tomáš Hrnčiar
718dd7e9a5 Update to 3.10.12 2023-06-08 09:33:27 +02:00
Charalampos Stratakis
db3fe4ad65 Fix for CVE-2023-24329
Resolves: rhbz#2174010
2023-05-29 17:16:39 +02:00
Tomáš Hrnčiar
1797d63700 Update to 3.10.11 2023-04-06 09:58:27 +02:00
Tomáš Hrnčiar
f7c068e6b9 Update to 3.10.10 2023-02-09 14:35:49 +01:00
Fedora Release Engineering
70c2981695 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 18:45:00 +00:00
Miro Hrončok
ad089d6d9f 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 11:05:28 +00:00
Miro Hrončok
550562473d 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-21 12:41:55 +01:00
Miro Hrončok
f6a8197f41 Supplement tox from the devel package
tox only Recommends python3.10, not python3.10-devel.

Since this is the oldest "nonflat" alternate Python version package,
this was forgotten.

See https://src.fedoraproject.org/rpms/python3.11/c/771f810493740f35e92e75cdd52dd9dd4b5fa621

See also https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/NVVUXSVSPFQOWIGBE2JNI67HEO7R63ZQ/
2022-12-20 20:50:42 +01:00
Tomáš Hrnčiar
4c508562f0 Update to 3.10.9 2022-12-07 12:02:58 +01:00
Miro Hrončok
b399bc200e Make IDLE work without python3-test installed 2022-11-14 16:23:15 +01:00
Lumir Balhar
924c3ebdb1 Fix CVE-2022-42919 2022-11-09 12:05:00 +01:00
Miro Hrončok
49411c201e 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)

Backported from https://src.fedoraproject.org/rpms/python3.11/c/2d800732862d491c7f7c355c86d86467c249b1ae
2022-10-12 22:40:34 +00:00
Miro Hrončok
119d97a7e0 rpminspect: Explicitly list allowed badfuncs in the _socket module
See https://github.com/rpminspect/rpminspect/pull/805

Backported from https://src.fedoraproject.org/rpms/python3.11/c/216f3d53bcdd8415503a7541552ca566e097ae07
2022-10-12 22:40:34 +00:00
Miro Hrončok
aa19b39b5d Add more rpmlint rules to avoid all reports we see and don't care about
Backported from https://src.fedoraproject.org/rpms/python3.11/c/a71ba977876be314fc59759bce0f9f7eaea55af3
Backported from https://src.fedoraproject.org/rpms/python3.11/c/0c6709aa1336854a7225749f4e74c0c868e63601
2022-10-12 22:40:34 +00:00
Miro Hrončok
b13d6004fe 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

Backported from https://src.fedoraproject.org/rpms/python3.11/c/252afb8c115e3ecd34985fcb7e09d8831844584e
2022-10-12 22:40:34 +00:00
Miro Hrončok
3fef586c93 Update to 3.10.8
Patch 382 was merged upstream.
2022-10-12 15:45:54 +02:00
Miro Hrončok
3809748543 Update to 3.10.7, with security fix for CVE-2020-10735 2022-09-07 16:28:28 +02:00
Miro Hrončok
38f9dd1590 Don't use custom installation schemes 2022-08-22 12:03:59 +02:00
Tomáš Hrnčiar
f5d6ae420d Update to 3.10.6 2022-08-02 15:33:21 +02:00
Fedora Release Engineering
ce2b654098 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 23:46:44 +00:00
Miro Hrončok
4225d6644b 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-08 13:21:07 +02:00
Tomáš Hrnčiar
cd753a02ba Fedora CI: Make CI tests compatible with both main and non-main Python 2022-06-22 16:22:04 +02:00
Miro Hrončok
3c729ba430 rpminspect: exclude the debug build from annocheck entirely 2022-06-20 11:33:12 +00:00
Tomáš Hrnčiar
563252ba42 Rebuilt for Python 3.11 2022-06-13 11:49:58 +02:00
Charalampos Stratakis
14dceddf56 Security fix for CVE-2015-20107
Resolves: rhbz#2075390
2022-06-09 15:46:59 +02:00
Tomáš Hrnčiar
940ad7f7ca Update to 3.10.5 2022-06-07 13:29:54 +02:00
Miro Hrončok
7ff8be2916 Don't hardcode %{ABIFLAGS_debug} 2022-05-31 19:47:45 +00:00
Miro Hrončok
c060b0c436 Don't exclude files that don't exist
When built without debug_build, RPM warns:

    File not found: /builddir/build/BUILDROOT/python3.11-3.11.0~b2-1.fc37.x86_64/usr/lib64/python3.11/_sysconfigdata_d_linux_x86_64-linux-gnu.py
    File not found: /builddir/build/BUILDROOT/python3.11-3.11.0~b2-1.fc37.x86_64/usr/lib64/python3.11/__pycache__/_sysconfigdata_d_linux_x86_64-linux-gnu.cpython-311*.pyc

This might become an error in some distant future.
2022-05-31 19:47:45 +00:00
Tomas Orsava
55d25b67d6 Move _sysconfigdata_d_linux*.py to the debug subpackage 2022-05-14 10:51:11 +02:00