Strip the LTO bytecode from python.o
Resolves: rhbz#2213527
This commit is contained in:
parent
78e19d594e
commit
0deebbc3c5
@ -17,7 +17,7 @@ URL: https://www.python.org/
|
||||
#global prerel ...
|
||||
%global upstream_version %{general_version}%{?prerel}
|
||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
||||
Release: 2%{?dist}
|
||||
Release: 3%{?dist}
|
||||
License: Python
|
||||
|
||||
# Exclude i686 arch. Due to a modularity issue it's being added to the
|
||||
@ -1272,6 +1272,11 @@ touch %{buildroot}%{_bindir}/python3-config
|
||||
touch %{buildroot}%{_bindir}/python3-debug
|
||||
touch %{buildroot}%{_bindir}/python3-debug-config
|
||||
|
||||
# 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
|
||||
@ -2001,6 +2006,10 @@ fi
|
||||
# ======================================================
|
||||
|
||||
%changelog
|
||||
* Wed Jul 12 2023 Charalampos Stratakis <cstratak@redhat.com> - 3.9.16-3
|
||||
- Strip the LTO bytecode from python.o
|
||||
Resolves: rhbz#2213527
|
||||
|
||||
* Mon Jun 19 2023 Petr Viktorin <pviktori@redhat.com> - 3.9.16-2
|
||||
- Add filters for tarfile extraction (CVE-2007-4559, PEP-706)
|
||||
Resolves: rhbz#263261
|
||||
|
Loading…
Reference in New Issue
Block a user