summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-05-16 15:20:06 -0400
committerBrian Evans <grknight@gentoo.org>2018-05-16 15:23:49 -0400
commit6574efff52ced6f4139d31e5e3fa494e3a31e119 (patch)
treee43f02632c3e8e0f2fbf13a94b36ef28129fd3c5 /profiles/default/linux/amd64
parentgames-strategy/freeciv: Bump to version 2.6.0_beta3. Removed old. (diff)
downloadgentoo-6574efff52ced6f4139d31e5e3fa494e3a31e119.tar.gz
gentoo-6574efff52ced6f4139d31e5e3fa494e3a31e119.tar.bz2
gentoo-6574efff52ced6f4139d31e5e3fa494e3a31e119.zip
profiles: amd64/17.1/profile.bashrc - Dereference symlink to /lib and /usr/lib
Advanced users may want /lib and/or /usr/lib to point somewhere else This checks what should not be and warns but still lets those advanced people do what they like.
Diffstat (limited to 'profiles/default/linux/amd64')
-rw-r--r--profiles/default/linux/amd64/17.1/profile.bashrc12
1 files changed, 7 insertions, 5 deletions
diff --git a/profiles/default/linux/amd64/17.1/profile.bashrc b/profiles/default/linux/amd64/17.1/profile.bashrc
index 44dc51c55408..7019782fb8f9 100644
--- a/profiles/default/linux/amd64/17.1/profile.bashrc
+++ b/profiles/default/linux/amd64/17.1/profile.bashrc
@@ -1,7 +1,9 @@
-if [[ "${EBUILD_PHASE}" == "setup" ]] && [[ -L ${ROOT%/}/lib || -L ${ROOT%/}/usr/lib ]] ; then
- eerror "Please follow the instructions in the news item:"
- eerror "2017-12-26-experimental-amd64-17-1-profiles"
- eerror "or choose the 17.0 profile."
- die "ERROR: 17.1 migration has not been performed!!"
+if [[ "${EBUILD_PHASE}" == "setup" ]] ; then
+ if [[ "$(realpath ${ROOT%/}/lib)" == "${ROOT%/}/lib64" || "$(realpath ${ROOT%/}/usr/lib)" == "${ROOT%/}/usr/lib64" ]] ; then
+ eerror "Please follow the instructions in the news item:"
+ eerror "2017-12-26-experimental-amd64-17-1-profiles"
+ eerror "or choose the 17.0 profile."
+ die "ERROR: 17.1 migration has not been performed!!"
+ fi
fi