From 66e81b8b08b1a48a48c16b5b89450aeced9de5f9 Mon Sep 17 00:00:00 2001 From: Deepika Upadhyay Date: Tue, 23 Jun 2020 16:21:57 +0530 Subject: [PATCH] install-deps.sh: drop devtoolset(DTS) check for centos we needed DTS for ensuring centos 7 had decent GCC version, since we won't be supporting el7 anymore this check becomes outdated. Signed-off-by: Deepika Upadhyay --- install-deps.sh | 31 ------------------------------- 1 file changed, 31 deletions(-) diff --git a/install-deps.sh b/install-deps.sh index 74ce49069b9..7b19732cf4c 100755 --- a/install-deps.sh +++ b/install-deps.sh @@ -188,31 +188,6 @@ function version_lt { test $1 != $(echo -e "$1\n$2" | sort -rV | head -n 1) } -function ensure_decent_gcc_on_rh { - local old=$(gcc -dumpversion) - local expected=5.1 - local dts_ver=$1 - if version_lt $old $expected; then - if test -t 1; then - # interactive shell - cat <&1 | tee $DIR/yum-builddep.out [ ${PIPESTATUS[0]} -ne 0 ] && exit 1 - if [ -n "$dts_ver" ]; then - ensure_decent_gcc_on_rh $dts_ver - fi IGNORE_YUM_BUILDEP_ERRORS="ValueError: SELinux policy is not managed or store cannot be accessed." sed "/$IGNORE_YUM_BUILDEP_ERRORS/d" $DIR/yum-builddep.out | grep -qi "error:" && exit 1 ;; -- 2.39.5