Do not link /bin/sh as slave alternative to /usr/bin/sh
OBS-URL: https://build.opensuse.org/package/show/Base:System/bash?expand=0&rev=279
This commit is contained in:
parent
30abf759e6
commit
244d5a7a9e
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 5 12:04:07 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Do not link /bin/sh as slave alternative to /usr/bin/sh
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 4 14:30:38 UTC 2019 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
|
11
bash.spec
11
bash.spec
@ -450,11 +450,10 @@ test ${rl1[2]} = ${rl2[2]} || exit 1
|
||||
# The same had happen for the system POSIX shell /bin/sh
|
||||
#
|
||||
ln -sf %{_bindir}/bash %{buildroot}%{_sysconfdir}/alternatives/sh
|
||||
ln -sf %{_bindir}/sh %{buildroot}%{_sysconfdir}/alternatives/_bin_sh
|
||||
ln -sf %{_bindir}/bash %{buildroot}/bin/bash
|
||||
ln -sf %{_bindir}/sh %{buildroot}/bin/sh
|
||||
ln -sf bash %{buildroot}%{_bindir}/rbash
|
||||
ln -sf bash %{buildroot}%{_bindir}/sh
|
||||
ln -sf %{_bindir}/sh %{buildroot}/bin/sh
|
||||
install -m 644 COMPAT NEWS %{buildroot}%{_docdir}/%{name}
|
||||
install -m 644 COPYING %{buildroot}%{_docdir}/%{name}
|
||||
install -m 644 doc/FAQ %{buildroot}%{_docdir}/%{name}
|
||||
@ -493,8 +492,7 @@ EOF
|
||||
|
||||
%post -p /bin/bash
|
||||
%{_sbindir}/update-alternatives --quiet --force \
|
||||
--install %{_bindir}/sh sh %{_bindir}/bash 10100 \
|
||||
--slave /bin/sh _bin_sh %{_bindir}/sh
|
||||
--install %{_bindir}/sh sh %{_bindir}/bash 10100
|
||||
|
||||
%preun -p /bin/bash
|
||||
if test "$1" = 0; then
|
||||
@ -519,10 +517,9 @@ ldd -u -r %{buildroot}/bin/bash || true
|
||||
%config %attr(644,root,root) %{_sysconfdir}/skel/.bashrc
|
||||
%config %attr(644,root,root) %{_sysconfdir}/skel/.profile
|
||||
%ghost %config %{_sysconfdir}/alternatives/sh
|
||||
%ghost %config %{_sysconfdir}/alternatives/_bin_sh
|
||||
/bin/bash
|
||||
%verify(not link mtime) /bin/sh
|
||||
%dir %{_sysconfdir}/bash_completion.d
|
||||
/bin/bash
|
||||
/bin/sh
|
||||
%{_bindir}/bash
|
||||
%{_bindir}/bashbug
|
||||
%{_bindir}/rbash
|
||||
|
Loading…
Reference in New Issue
Block a user