Commit graph

94 commits

Author SHA1 Message Date
Miro Hrončok
64188e0cae 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:54:19 +02:00
Tomáš Hrnčiar
59b6d298e9 Update to 3.9.19 2024-03-20 13:53:11 +01:00
Charalampos Stratakis
800c22e484 Fix tests for XMLPullParser with Expat 2.6.0
See also: https://bugzilla.redhat.com/2264859
2024-02-28 17:16:55 +01:00
Karolina Surma
d1898e800c Fix test_zlib with zlib-ng-compat 2024-01-29 12:07:08 +01:00
Fedora Release Engineering
53abe334d1 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 13:34:33 +00:00
Fedora Release Engineering
45fe9e38c3 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 09:22:35 +00:00
Lumir Balhar
1341447949 Security fix for CVE-2023-27043 (rhbz#2196194) 2023-12-18 13:15:55 +01:00
Miro Hrončok
d25ca05b8f Fix implicit int compiler warning in configure check for PTHREAD_SCOPE_SYSTEM
- Resolves: rhbz#2147519
2023-11-23 11:50:56 +01:00
Tomáš Hrnčiar
77e0d4f156 Update to 3.9.18 2023-08-28 16:21:38 +02:00
Charalampos Stratakis
c7a252caa8 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:28:11 +02:00
Fedora Release Engineering
7b9f870dc5 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-21 15:43:15 +00:00
Tomáš Hrnčiar
4b77d9d333 Update to 3.9.17 2023-06-08 11:50:59 +02:00
Charalampos Stratakis
1d79558046 Security fix for CVE-2023-24329
Resolves: rhbz#2174016
2023-05-30 07:15:31 +02:00
Fedora Release Engineering
26dc60a272 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 18:45:57 +00:00
Miro Hrončok
9b71f83691 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-11 15:43:03 +01:00
Miro Hrončok
e8f06b736b 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
2023-01-03 12:18:10 +01:00
Tomáš Hrnčiar
3afb626968 Update to 3.9.16 2022-12-07 10:03:57 +01:00
Miro Hrončok
66cc30cc44 Rebuilt for infrastructure problems 2022-11-17 14:47:28 +01:00
Lumir Balhar
3bae8212c1 Fix for CVE-2022-42919 2022-11-09 12:32:02 +01:00
Miro Hrončok
4a5d76b5fe Update to 3.9.15 2022-10-12 15:49:00 +02:00
Miro Hrončok
ab27283a29 Update to 3.9.14, with security fix for CVE-2020-10735 2022-09-07 16:13:54 +02:00
Miro Hrončok
7636db24d1 Remove no longer needed %apply_patch workaround
All supported Fedora releases have RPM 4.17+,
so we can use %autopatch with a positional argument.
2022-09-06 11:37:28 +02:00
Fedora Release Engineering
009e4351fd Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 23:47:33 +00:00
Charalampos Stratakis
face7cd60e Security fix for CVE-2015-20107
Resolves: rhbz#2075390
2022-06-10 01:10:38 +02:00
Tomáš Hrnčiar
65cf3d711c Update to 3.9.13 2022-05-18 16:05:55 +02:00
Tomáš Hrnčiar
fefc6815e5 Update to 3.9.12 2022-03-25 07:53:12 +01:00
Tomáš Hrnčiar
d899219223 Update to 3.9.11 2022-03-17 15:55:45 +01:00
Karolina Surma
519e7eee12 Explicitly declare the usage of distutils from Python stdlib for tests
setuptools 60+ bundles distutils which then have an impact on the test
environment, causing test_with_pip to fail.
Resolves: https://bugzilla.redhat.com/2064734
2022-03-16 16:34:49 +01:00
Fedora Release Engineering
c12e3e49f2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 16:49:31 +00:00
Tomáš Hrnčiar
ee9e037e7b Update to 3.9.10 2022-01-17 16:17:34 +01:00
Miro Hrončok
250d7d5d30 Sync patch 251 with Python 3.10+ on Fedora < 36
Instruct pip to use distutils
-----------------------------

The current version of pip uses distutils on Python < 3.10,
so this should change nothing,
but future versions of pip may theoretically change that.

Instruct pypa/distutils to add /local/ addition to prefix
---------------------------------------------------------

Needed for setuptools 60+ installed/upgraded by pip or when we update it in rawhide.
Setuptools 60+ uses bundled pypa/distutils instead of the standard library distutils.
2022-01-12 15:41:25 +01:00
Miro Hrončok
e1fa6a9599 Rebuilt for https://fedoraproject.org/wiki/Changes/LIBFFI34 2022-01-08 11:12:38 +01:00
Tomáš Hrnčiar
3216989552 Add patch to revert "bpo-1596321: Fix threading._shutdown() for
the main thread"

https://bodhi.fedoraproject.org/updates/FEDORA-2021-e152ce5f31
https://github.com/GrahamDumpleton/mod_wsgi/issues/730
2021-11-19 14:13:26 +01:00
Tomáš Hrnčiar
913221b8e2 Update to 3.9.9 2021-11-16 14:10:47 +01:00
Björn Esser
59f1238794
Rebuild(libnsl2)
Signed-off-by: Björn Esser <besser82@fedoraproject.org>
2021-11-12 22:26:58 +01:00
Tomáš Hrnčiar
dc16576a77 Update to 3.9.8 2021-11-08 08:56:26 +01:00
Sahana Prasad
010c643aae Rebuilt with OpenSSL 3.0.0 2021-09-14 19:12:46 +02:00
Miro Hrončok
9d73093ec3 Update to 3.9.7 2021-08-31 01:30:12 +02:00
Miro Hrončok
a43ee056fa Update description of the flat python3.9 package -- it is now older, not newer 2021-08-13 01:12:28 +02:00
Fedora Release Engineering
f60bd18051 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 10:32:23 +00:00
Petr Viktorin
c3420255b1 Require pyproject-rpm-macros from python3-devel
Part of the new Python packaging guidelines change:
- https://fedoraproject.org/wiki/Changes/PythonPackagingGuidelines202x
- https://bugzilla.redhat.com/show_bug.cgi?id=1977883
2021-07-16 14:00:09 +02:00
Petr Viktorin
f4a64b51fd Provide python3-turtle from python3-tkinter
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1952565
2021-07-16 14:00:09 +02:00
Tomas Hrnciar
2b5ef05f9d Update to 3.9.6 2021-06-29 12:19:13 +02:00
Python Maint
b7d7c27b1b Rebuilt for Python 3.10 2021-06-01 16:14:28 +02:00
Miro Hrončok
dccd43b6f8 Set $LD_LIBRARY_PATH when asserting libmpdec version
Without $LD_LIBRARY_PATH, the test uses installed libpython,
which might be older Python version when updating
or missing entirely when building --with bootstrap.
2021-05-19 14:58:45 +02:00
Charalampos Stratakis
d3f5befac1 Add virtual provides for the bundled libmpdec (rhbz#1943359) 2021-05-17 18:58:51 +00:00
Zbigniew Jędrzejewski-Szmek
cf6fda7857 Add Provides to match the Ubuntu convention
There are many Ubuntu users out there. Let's be nice and Provide the
same package name, so that a command typed from memory will also work
here.
2021-05-13 15:11:06 +02:00
Tomas Hrnciar
79e6e2b0ac Update to 3.9.5 2021-05-04 15:07:49 +02:00
Miro Hrončok
dfd0f2b7e8 Temporary workaround for missing %apply_patch in RPM 4.17 alpha
See https://bugzilla.redhat.com/show_bug.cgi?id=1954999
2021-04-30 12:34:18 +02:00
Tomas Hrnciar
1bbe5be624 Update to 3.9.4 2021-04-06 08:49:02 +02:00