Add explicit RPM Provides for /usr/libexec/platform-python

Resolves: RHEL-48605
This commit is contained in:
Miro Hrončok 2024-07-18 13:55:35 +02:00
parent 8ddf38fba2
commit 8f802af859

View File

@ -14,7 +14,7 @@ URL: https://www.python.org/
# WARNING When rebasing to a new Python version,
# remember to update the python3-docs package as well
Version: %{pybasever}.8
Release: 63%{?dist}
Release: 64%{?dist}
License: Python
@ -905,6 +905,14 @@ Conflicts: python3 < 3.6.6-13
# depend on python(abi). Provide that here.
Provides: python(abi) = %{pybasever}
# With https://fedoraproject.org/wiki/Changes/DNFConditionalFilelists
# it is no longer possible to Require paths from %%_libexecdir
# However, python3-dnf requires this path
# and that breaks the mock bootstrap chroot for rhel-8 on on Fedora 40+.
# Fixes https://issues.redhat.com/browse/RHEL-48605
# Fixes https://pagure.io/releng/issue/12199
Provides: %{_libexecdir}/platform-python
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
%if %{with rpmwheels}
@ -2170,6 +2178,10 @@ fi
# ======================================================
%changelog
* Thu Jul 18 2024 Miro Hrončok <mhroncok@redhat.com> - 3.6.8-64
- Add explicit RPM Provides for /usr/libexec/platform-python
Resolves: RHEL-48605
* Thu Jul 04 2024 Lumír Balhar <lbalhar@redhat.com> - 3.6.8-63
- Security fix for CVE-2024-4032
Resolves: RHEL-44060