summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2018-10-28 11:05:43 +0000
committerSergei Trofimovich <slyfox@gentoo.org>2018-10-28 11:19:42 +0000
commit720c875cfe1d2f3962a7b6e9834089763ada79a9 (patch)
tree425564a9fcc24fb9837334c8d18e5df235e85cf4 /dev-util/ccache
parentx11-drivers/xf86-input-libinput: stable 0.28.1 for hppa, bug #669588 (diff)
downloadgentoo-720c875cfe1d2f3962a7b6e9834089763ada79a9.tar.gz
gentoo-720c875cfe1d2f3962a7b6e9834089763ada79a9.tar.bz2
gentoo-720c875cfe1d2f3962a7b6e9834089763ada79a9.zip
dev-util/ccache: fix ROOT=/ detection
At least on portage EAPI=7 lacks trailing slashes in absolute paths. This makes ROOT="/" a ROOT="". It's arguably not an absolute path anymore but it's what we get. Make expansion work for both ROOT="/" and ROOT="", Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-util/ccache')
-rw-r--r--dev-util/ccache/ccache-3.5-r1.ebuild (renamed from dev-util/ccache/ccache-3.5.ebuild)4
1 files changed, 2 insertions, 2 deletions
diff --git a/dev-util/ccache/ccache-3.5.ebuild b/dev-util/ccache/ccache-3.5-r1.ebuild
index e2a525cad94a..d1a32f96e906 100644
--- a/dev-util/ccache/ccache-3.5.ebuild
+++ b/dev-util/ccache/ccache-3.5-r1.ebuild
@@ -66,13 +66,13 @@ ccache now supports sys-devel/clang and dev-lang/icc, too!"
}
pkg_prerm() {
- if [[ -z ${REPLACED_BY_VERSION} && ${ROOT} == / ]] ; then
+ if [[ -z ${REPLACED_BY_VERSION} && ${ROOT:-/} == / ]] ; then
eselect compiler-shadow remove ccache
fi
}
pkg_postinst() {
- if [[ ${ROOT} == / ]]; then
+ if [[ ${ROOT:-/} == / ]]; then
eselect compiler-shadow update ccache
fi