summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-06-21 10:20:40 -0400
committerMike Gilbert <floppym@gentoo.org>2021-06-21 14:16:14 -0400
commit89b32081e7c8404b35f7d3cf82f105877331454b (patch)
tree0540137e5e4aff529c6dd719656d90554de001b4 /app-shells
parentdev-perl/IO-Tee: Version bump 0.66 (diff)
downloadgentoo-89b32081e7c8404b35f7d3cf82f105877331454b.tar.gz
gentoo-89b32081e7c8404b35f7d3cf82f105877331454b.tar.bz2
gentoo-89b32081e7c8404b35f7d3cf82f105877331454b.zip
app-shells/bash: remove /bin/sh logic from pkg_preinst
This was added back in 2008 to handle some migration in file ownership. I expect all users have upgraded many times since then. Closes: https://bugs.gentoo.org/778311 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'app-shells')
-rw-r--r--app-shells/bash/bash-5.0_p18.ebuild9
-rw-r--r--app-shells/bash/bash-5.1_p8.ebuild9
2 files changed, 0 insertions, 18 deletions
diff --git a/app-shells/bash/bash-5.0_p18.ebuild b/app-shells/bash/bash-5.0_p18.ebuild
index 3ea29fe66b10..ab801c88333f 100644
--- a/app-shells/bash/bash-5.0_p18.ebuild
+++ b/app-shells/bash/bash-5.0_p18.ebuild
@@ -255,15 +255,6 @@ pkg_preinst() {
mkdir -p "${EROOT}"/etc/bash
mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/
fi
-
- if [[ -L ${EROOT}/bin/sh ]] ; then
- # rewrite the symlink to ensure that its mtime changes. having /bin/sh
- # missing even temporarily causes a fatal error with paludis.
- local target=$(readlink "${EROOT}"/bin/sh)
- local tmp="${T}"/sh
- ln -sf "${target}" "${tmp}"
- mv -f "${tmp}" "${EROOT}"/bin/sh
- fi
}
pkg_postinst() {
diff --git a/app-shells/bash/bash-5.1_p8.ebuild b/app-shells/bash/bash-5.1_p8.ebuild
index a8f2880bece7..88199a177aa1 100644
--- a/app-shells/bash/bash-5.1_p8.ebuild
+++ b/app-shells/bash/bash-5.1_p8.ebuild
@@ -255,15 +255,6 @@ pkg_preinst() {
mkdir -p "${EROOT}"/etc/bash
mv -f "${EROOT}"/etc/bashrc "${EROOT}"/etc/bash/
fi
-
- if [[ -L ${EROOT}/bin/sh ]] ; then
- # Rewrite the symlink to ensure that its mtime changes. Having /bin/sh
- # missing even temporarily causes a fatal error with paludis.
- local target=$(readlink "${EROOT}"/bin/sh)
- local tmp="${T}"/sh
- ln -sf "${target}" "${tmp}"
- mv -f "${tmp}" "${EROOT}"/bin/sh
- fi
}
pkg_postinst() {