summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-12-02 09:27:15 +0100
committerMichał Górny <mgorny@gentoo.org>2018-12-02 09:38:16 +0100
commit7d93a848b19886dfc99caa2e6eaeb59143bf8062 (patch)
treeb7b2d55ab827175796034221a3654858fc70ee01 /sys-devel
parentsys-devel/distcc: Use 'newenvd -' (diff)
downloadgentoo-7d93a848b19886dfc99caa2e6eaeb59143bf8062.tar.gz
gentoo-7d93a848b19886dfc99caa2e6eaeb59143bf8062.tar.bz2
gentoo-7d93a848b19886dfc99caa2e6eaeb59143bf8062.zip
sys-devel/distcc: Clean up old masq path on migration
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/distcc/distcc-3.3.ebuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys-devel/distcc/distcc-3.3.ebuild b/sys-devel/distcc/distcc-3.3.ebuild
index f7c6c521c1ba..a0caa0c8467c 100644
--- a/sys-devel/distcc/distcc-3.3.ebuild
+++ b/sys-devel/distcc/distcc-3.3.ebuild
@@ -148,6 +148,12 @@ src_install() {
}
pkg_postinst() {
+ # remove the old paths when switching from libXX to lib
+ if [[ $(get_libdir) != lib && ${SYMLINK_LIB} != yes && \
+ -d ${EROOT%/}/usr/$(get_libdir)/distcc ]]; then
+ rm -r -f "${EROOT%/}/usr/$(get_libdir)/distcc" || die
+ fi
+
if [[ ${ROOT} == / ]]; then
eselect compiler-shadow update distcc
eselect compiler-shadow update distccd