commit:     e0395c9f90b70fedbc4e832e999405d54a24e314
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 24 15:40:48 2016 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jan 24 15:40:48 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e0395c9f

scripts/bootstrap-prefix: be more careful about creatng python symlink

 scripts/bootstrap-prefix.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index 117ff79..de47ee2 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1214,7 +1214,7 @@ bootstrap_stage3() {
        # Clang unconditionally requires python, the eclasses are really not
        # setup for a scenario where python doesn't live in the target
        # prefix and no helpers are available
-       ( cd "${ROOT}"/usr/bin && test ! -e python2.7 && ln -s 
"${ROOT}"/tmp/usr/bin/python2.7 )
+       ( cd "${ROOT}"/usr/bin && test ! -e python2.7 && test ! -e python && ln 
-s "${ROOT}"/tmp/usr/bin/python2.7 )
        # in addition, avoid collisions
        rm -Rf "${ROOT}"/tmp/usr/lib/python2.7/site-packages/clang
        emerge_pkgs --nodeps ${compiler} || return 1

Reply via email to