From 3af2ddb680c7f3c6f664b90bd51eb7eabc2b9d07 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Wed, 25 Jan 2023 08:09:38 +0000 Subject: [PATCH] import python3-3.6.8-51.el8 --- SPECS/python3.spec | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/SPECS/python3.spec b/SPECS/python3.spec index 8865ae2..5f7c0a2 100644 --- a/SPECS/python3.spec +++ b/SPECS/python3.spec @@ -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: 50%{?dist} +Release: 51%{?dist} License: Python @@ -1267,11 +1267,6 @@ mkdir -p %{buildroot}$DirHoldingGdbPy %global _pyconfig64_h pyconfig-64.h %global _pyconfig_h pyconfig-%{wordsize}.h -# Strip the LTO bytecode from python.o -# Based on the fedora brp-strip-lto scriptlet -# https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/9dd5528cf9805ebfe31cff04fe7828ad06a6023f/f/brp-strip-lto -find %{_builddir} -type f -name 'python.o' -print0 | xargs -0 \ -bash -c "strip -p -R .gnu.lto_* -R .gnu.debuglto_* -N __gnu_lto_v1 \"\$@\"" ARG0 # Use a common function to do an install for all our configurations: InstallPython() { @@ -1490,6 +1485,11 @@ touch %{buildroot}%{_bindir}/unversioned-python touch %{buildroot}%{_bindir}/idle3 touch %{buildroot}%{_mandir}/man1/python.1.gz +# Strip the LTO bytecode from python.o +# Based on the fedora brp-strip-lto scriptlet +# https://src.fedoraproject.org/rpms/redhat-rpm-config/blob/9dd5528cf9805ebfe31cff04fe7828ad06a6023f/f/brp-strip-lto +find %{buildroot} -type f -name 'python.o' -print0 | xargs -0 \ +bash -c "strip -p -R .gnu.lto_* -R .gnu.debuglto_* -N __gnu_lto_v1 \"\$@\"" ARG0 # ====================================================== # Checks for packaging issues @@ -2041,6 +2041,10 @@ fi # ====================================================== %changelog +* Tue Jan 24 2023 Charalampos Stratakis - 3.6.8-51 +- Properly strip the LTO bytecode from python.o +Resolves: rhbz#2137707 + * Wed Dec 21 2022 Charalampos Stratakis - 3.6.8-50 - Security fix for CVE-2022-45061 - Strip the LTO bytecode from python.o