!464 remove rpath and runpath of exec files and libraries
From: @wangjiang37 Reviewed-by: @lvying6 Signed-off-by: @lvying6
This commit is contained in:
commit
1398bbea4c
18
vim.spec
18
vim.spec
@ -12,7 +12,7 @@
|
|||||||
Name: vim
|
Name: vim
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
Version: 9.0
|
Version: 9.0
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Vim is a highly configurable text editor for efficiently creating and changing any kind of text.
|
Summary: Vim is a highly configurable text editor for efficiently creating and changing any kind of text.
|
||||||
License: Vim and MIT
|
License: Vim and MIT
|
||||||
URL: http://www.vim.org
|
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: autoconf python3-devel ncurses-devel gettext perl-devel perl-generators gcc
|
||||||
BuildRequires: perl(ExtUtils::Embed) perl(ExtUtils::ParseXS) libacl-devel gpm-devel file
|
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__}
|
%if %{_with_selinux__}
|
||||||
BuildRequires: libselinux-devel
|
BuildRequires: libselinux-devel
|
||||||
%endif
|
%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
|
echo ".so man1/vi.1" > %{buildroot}%{_mandir}/man5/virc.5
|
||||||
touch %{buildroot}%{_datadir}/%{name}/vimfiles/doc/tags
|
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
|
pushd runtime
|
||||||
ln -sf ../../%{name}/%{vimdir}/doc docs
|
ln -sf ../../%{name}/%{vimdir}/doc docs
|
||||||
popd
|
popd
|
||||||
@ -454,6 +460,7 @@ LC_ALL=en_US.UTF-8 make -j1 test
|
|||||||
%{_mandir}/man1/{gex.*,gview.*,gvim*,rvim.*,vim.*,vimdiff.*}
|
%{_mandir}/man1/{gex.*,gview.*,gvim*,rvim.*,vim.*,vimdiff.*}
|
||||||
%{_mandir}/man1/{vimtutor.*,vimx.*,xxd.*}
|
%{_mandir}/man1/{vimtutor.*,vimx.*,xxd.*}
|
||||||
%{_mandir}/man5/vimrc.*
|
%{_mandir}/man5/vimrc.*
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files minimal
|
%files minimal
|
||||||
%config(noreplace) %{_sysconfdir}/virc
|
%config(noreplace) %{_sysconfdir}/virc
|
||||||
@ -464,6 +471,7 @@ LC_ALL=en_US.UTF-8 make -j1 test
|
|||||||
|
|
||||||
%files enhanced
|
%files enhanced
|
||||||
%{_bindir}/{vim,rvim,vimdiff,vimtutor}
|
%{_bindir}/{vim,rvim,vimdiff,vimtutor}
|
||||||
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files filesystem
|
%files filesystem
|
||||||
%dir %{_datadir}/%{name}/vimfiles/after/*
|
%dir %{_datadir}/%{name}/vimfiles/after/*
|
||||||
@ -481,6 +489,12 @@ LC_ALL=en_US.UTF-8 make -j1 test
|
|||||||
%{_mandir}/man1/evim.*
|
%{_mandir}/man1/evim.*
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Dec 08 2022 wangjiang <wangjiang37@h-partners.com> - 2:9.0-5
|
||||||
- Type:CVE
|
- Type:CVE
|
||||||
- ID:CVE-2022-4292 CVE-2022-4293
|
- ID:CVE-2022-4292 CVE-2022-4293
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user