!252 Delete RPATH

From: @eastb233 
Reviewed-by: @li-yancheng 
Signed-off-by: @li-yancheng
This commit is contained in:
openeuler-ci-bot 2023-11-18 09:04:29 +00:00 committed by Gitee
commit 5a9a77ad72
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
Summary: Binary utilities
Name: binutils
Version: 2.34
Release: 30
Release: 31
License: GPLv3+
URL: https://sourceware.org/binutils
@ -74,7 +74,7 @@ Provides: bundled(libiberty)
Buildroot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: gcc, perl, sed, coreutils, dejagnu, zlib-devel, glibc-static, sharutils, bc, libstdc++-static
BuildRequires: bison, m4, gcc-c++, gettext, flex, zlib-devel, texinfo >= 4.0, perl-podlators
BuildRequires: bison, m4, gcc-c++, gettext, flex, zlib-devel, texinfo >= 4.0, perl-podlators, chrpath
Requires(post): info coreutils chkconfig
Requires(preun):info chkconfig
@ -203,6 +203,9 @@ done
install -m 644 include/libiberty.h %{buildroot}%{_prefix}/include
chmod +x %{buildroot}%{_libdir}/lib*.so*
# Delete RPATH
chrpath -d %{buildroot}%{_bindir}/*
rm -f %{buildroot}%{_libdir}/lib{bfd,opcodes}.{so,la}
%ifarch %{ix86} x86_64 arm
@ -319,6 +322,9 @@ fi
%{_infodir}/bfd*info*
%changelog
* Sat Nov 18 2023 eastb233 <xiezhiheng@huawei.com> - 2.34-31
- Delete rpath
* Wed Oct 11 2023 eastb233 <xiezhiheng@huawei.com> - 2.34-30
- Backport a fix about use-after-free issue