From 7d93a848b19886dfc99caa2e6eaeb59143bf8062 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sun, 2 Dec 2018 09:27:15 +0100 Subject: [PATCH] sys-devel/distcc: Clean up old masq path on migration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- sys-devel/distcc/distcc-3.3.ebuild | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.26.2