Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/distcc/
Date: Sun, 02 Dec 2018 08:38:31
Message-Id: 1543739896.7d93a848b19886dfc99caa2e6eaeb59143bf8062.mgorny@gentoo
1 commit: 7d93a848b19886dfc99caa2e6eaeb59143bf8062
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Dec 2 08:27:15 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Dec 2 08:38:16 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d93a848
7
8 sys-devel/distcc: Clean up old masq path on migration
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-devel/distcc/distcc-3.3.ebuild | 6 ++++++
13 1 file changed, 6 insertions(+)
14
15 diff --git a/sys-devel/distcc/distcc-3.3.ebuild b/sys-devel/distcc/distcc-3.3.ebuild
16 index f7c6c521c1b..a0caa0c8467 100644
17 --- a/sys-devel/distcc/distcc-3.3.ebuild
18 +++ b/sys-devel/distcc/distcc-3.3.ebuild
19 @@ -148,6 +148,12 @@ src_install() {
20 }
21
22 pkg_postinst() {
23 + # remove the old paths when switching from libXX to lib
24 + if [[ $(get_libdir) != lib && ${SYMLINK_LIB} != yes && \
25 + -d ${EROOT%/}/usr/$(get_libdir)/distcc ]]; then
26 + rm -r -f "${EROOT%/}/usr/$(get_libdir)/distcc" || die
27 + fi
28 +
29 if [[ ${ROOT} == / ]]; then
30 eselect compiler-shadow update distcc
31 eselect compiler-shadow update distccd