commit:     e5c8da07a43b0a3af9994ceda31113ccb842db8e
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Fri Jan  5 11:23:53 2018 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Fri Jan  5 11:23:53 2018 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=e5c8da07

scripts/bootstrap-prefix: don't rely on bash-4.2 features

 scripts/bootstrap-prefix.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/bootstrap-prefix.sh b/scripts/bootstrap-prefix.sh
index e262ffba3d..78c62ea314 100755
--- a/scripts/bootstrap-prefix.sh
+++ b/scripts/bootstrap-prefix.sh
@@ -1181,8 +1181,9 @@ bootstrap_stage1() {
        [[ ${OFFLINE_MODE} ]] || type -P wget > /dev/null || (bootstrap_wget) 
|| return 1
        [[ $(sed --version 2>&1) == *GNU* ]] || (bootstrap_sed) || return 1
        [[ $(m4 --version 2>&1) == *GNU*1.4.1?* ]] || (bootstrap_m4) || return 1
-       [[ $(bison --version 2>&1) =~ GNU" "Bison") "(2.[3-7]|[3-9]) ]] \
-               || [[ -x ${ROOT}/tmp/usr/bin/bison ]] \
+       [[ -x ${ROOT}/tmp/usr/bin/bison ]] \
+               || [[ $(bison --version 2>&1) == *GNU" "Bison") "2.[3-7]* ]] \
+               || [[ $(bison --version 2>&1) == *GNU" "Bison") "[3-9]* ]] \
                || (bootstrap_bison) || return 1
        [[ $(uniq --version 2>&1) == *"(GNU coreutils) "[6789]* ]] \
                || (bootstrap_coreutils) || return 1

Reply via email to