summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2018-01-06 16:21:59 +0100
committerFabian Groffen <grobian@gentoo.org>2018-01-06 16:21:59 +0100
commita3761848e8af2c52171b485383a6f8f1e0323b47 (patch)
tree3205d0bc19122cbd6de34007a53ca654014bd0fd
parentscripts/bootstrap-prefix: have bootstrap_make install gmake symlink (diff)
downloadprefix-a3761848e8af2c52171b485383a6f8f1e0323b47.zip
prefix-a3761848e8af2c52171b485383a6f8f1e0323b47.tar.gz
prefix-a3761848e8af2c52171b485383a6f8f1e0323b47.tar.bz2
scripts/bootstrap-prefix: run bash check under LANG=C, bug #642678
At least in German locales, words like version are capitalised. Closes: https://bugs.gentoo.org/642678
-rwxr-xr-xscripts/bootstrap-prefix.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index dbce4d4..88f7dbc 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1196,7 +1196,7 @@ bootstrap_stage1() {
[[ $(patch --version 2>&1) == *"patch 2."[6-9]*GNU* ]] || (bootstrap_patch) || return 1
[[ $(grep --version 2>&1) == *GNU* ]] || (bootstrap_grep) || return 1
[[ $(awk --version < /dev/null 2>&1) == *GNU* ]] || bootstrap_gawk || return 1
- [[ $(bash --version 2>&1) == "GNU bash, version 4."[23456789]* && ${CHOST} != *-aix* ]] \
+ [[ $(LANG=C bash --version 2>&1) == "GNU bash, version 4."[23456789]* && ${CHOST} != *-aix* ]] \
|| [[ -x ${ROOT}/tmp/usr/bin/bash ]] \
|| (bootstrap_bash) || return 1
type -P bzip2 > /dev/null || (bootstrap_bzip2) || return 1