From 020f4dc9ceb13fe03a52d2725c84d8e6ac06960f Mon Sep 17 00:00:00 2001 From: Manuel Canales Esparcia Date: Sat, 24 Mar 2007 15:01:59 +0000 Subject: [PATCH] Added Bison to host requisites and fixed minimun GCC version. --- common/libs/func_check_version.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/libs/func_check_version.sh b/common/libs/func_check_version.sh index d5038e0..0013287 100644 --- a/common/libs/func_check_version.sh +++ b/common/libs/func_check_version.sh @@ -40,7 +40,7 @@ inline_doc echo -ne "${TXT}${dotSTR:${#TXT}} ${L_arrow}${BOLD}${tst_version}${OFF}${R_arrow}" # echo -ne "$TXT:\t${L_arrow}${BOLD}${tst_version}${OFF}${R_arrow}" - IFS=".-(p" # Split up w.x.y.z as well as w.x.y-rc (catch release candidates) + IFS=".-(pa" # Split up w.x.y.z as well as w.x.y-rc (catch release candidates) set -- $ref_version # set postional parameters to minimum ver values ref_major=$1; ref_minor=$2; ref_revision=$3 # @@ -69,7 +69,7 @@ check_prerequisites() { # if [ ! "${PROGNAME}" = "hlfs" ]; then check_version "2.6.2" "`uname -r`" "KERNEL" check_version "2.0.5" "$BASH_VERSION" "BASH" - check_version "3.0.0" "`gcc -dumpversion`" "GCC" + check_version "3.0.1" "`gcc -dumpversion`" "GCC" libcVer="`/lib/libc.so.6 | head -n1`" libcVer="${libcVer##*version }" check_version "2.2.5" ${libcVer%%,*} "GLIBC" @@ -77,6 +77,7 @@ check_prerequisites() { # check_version "1.14" "$(tar --version | head -n1 | cut -d" " -f4)" "TAR" bzip2Ver="$(bzip2 --version 2>&1 < /dev/null | head -n1 | cut -d" " -f8)" check_version "1.0.2" "${bzip2Ver%%,*}" "BZIP2" + check_version "1.26a" "$(bison --version | head -n1 | cut -d" " -f4)" "BISON" check_version "5.0" "$(chown --version | head -n1 | cut -d")" -f2)" "COREUTILS" check_version "2.8" "$(diff --version | head -n1 | cut -d" " -f4)" "DIFF" check_version "4.1.20" "$(find --version | head -n1 | cut -d" " -f4)" "FIND"