commit:     42cc3c6a762fd3d5dcb15cab5f194b1ccdc0d709
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  6 14:35:11 2016 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Mon Jun  6 14:35:11 2016 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=42cc3c6a

scripts/bootstrap-prefix.sh: EPREFIX/bin/sh link to bash

  Otherwise EPREFIX/tmp/bin/sh somehow stops working
  sh: error while loading shared libraries: libncurses.so.6

  https://bugs.gentoo.org/show_bug.cgi?id=575480#c12

 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 8d295ed..47138a8 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -543,7 +543,7 @@ bootstrap_portage() {
        [[ -x ${ROOT}/tmp/bin/bash ]] || ln -s "${BASH}" "${ROOT}"/tmp/bin/bash 
|| return 1
        [[ -x ${ROOT}/tmp/bin/sh ]] || ln -s bash "${ROOT}"/tmp/bin/sh || 
return 1
        [[ -x ${ROOT}/bin/bash ]] || ln -s ../tmp/bin/bash "${ROOT}"/bin/bash 
|| return 1
-       [[ -x ${ROOT}/bin/sh ]] || ln -s ../tmp/bin/sh "${ROOT}"/bin/sh || 
return 1
+       [[ -x ${ROOT}/bin/sh ]] || ln -s bash "${ROOT}"/bin/sh || return 1
        export PORTAGE_BASH="${ROOT}"/tmp/bin/bash
 
        einfo "Compiling ${A%-*}"

Reply via email to