!464 remove rpath and runpath of exec files and libraries

From: @wangjiang37 
Reviewed-by: @lvying6 
Signed-off-by: @lvying6
This commit is contained in:
openeuler-ci-bot 2022-12-29 01:08:01 +00:00 committed by Gitee
commit 1398bbea4c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -12,7 +12,7 @@
Name: vim
Epoch: 2
Version: 9.0
Release: 5
Release: 6
Summary: Vim is a highly configurable text editor for efficiently creating and changing any kind of text.
License: Vim and MIT
URL: http://www.vim.org
@ -87,7 +87,7 @@ Patch9001: vim-Add-sw64-architecture.patch
BuildRequires: autoconf python3-devel ncurses-devel gettext perl-devel perl-generators gcc
BuildRequires: perl(ExtUtils::Embed) perl(ExtUtils::ParseXS) libacl-devel gpm-devel file
BuildRequires: desktop-file-utils >= 0.2.93 libtool make
BuildRequires: desktop-file-utils >= 0.2.93 libtool make chrpath
%if %{_with_selinux__}
BuildRequires: libselinux-devel
%endif
@ -368,6 +368,12 @@ echo ".so man1/vimtutor.1" > %{buildroot}%{_mandir}/man1/gvimtutor.1
echo ".so man1/vi.1" > %{buildroot}%{_mandir}/man5/virc.5
touch %{buildroot}%{_datadir}/%{name}/vimfiles/doc/tags
chrpath -d %{buildroot}%{_bindir}/vim
chrpath -d %{buildroot}%{_bindir}/xxd
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/perl5/CORE" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
pushd runtime
ln -sf ../../%{name}/%{vimdir}/doc docs
popd
@ -454,6 +460,7 @@ LC_ALL=en_US.UTF-8 make -j1 test
%{_mandir}/man1/{gex.*,gview.*,gvim*,rvim.*,vim.*,vimdiff.*}
%{_mandir}/man1/{vimtutor.*,vimx.*,xxd.*}
%{_mandir}/man5/vimrc.*
%config(noreplace) /etc/ld.so.conf.d/*
%files minimal
%config(noreplace) %{_sysconfdir}/virc
@ -464,6 +471,7 @@ LC_ALL=en_US.UTF-8 make -j1 test
%files enhanced
%{_bindir}/{vim,rvim,vimdiff,vimtutor}
%config(noreplace) /etc/ld.so.conf.d/*
%files filesystem
%dir %{_datadir}/%{name}/vimfiles/after/*
@ -481,6 +489,12 @@ LC_ALL=en_US.UTF-8 make -j1 test
%{_mandir}/man1/evim.*
%changelog
* Mon Dec 12 2022 wangjiang <wangjiang37@h-partners.com> - 2:9.0-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:remove rpath and runpath of exec files and libraries
* Thu Dec 08 2022 wangjiang <wangjiang37@h-partners.com> - 2:9.0-5
- Type:CVE
- ID:CVE-2022-4292 CVE-2022-4293