diff options
author | Mauro Sardara <msardara@cisco.com> | 2021-02-11 11:18:58 +0100 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2021-02-11 10:35:11 +0000 |
commit | 5c98619ef3e6107bb9dafddb055dd35a374931f3 (patch) | |
tree | 1d93dc2028133df47891077300103ef8eed0e67a /scripts | |
parent | b3b64c5a0529bbbbdcaf14f72fb47667bb457e9d (diff) |
HICN-685 Fix package script for centos8
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I84c0461d5a7869b38a676f3a02a53080e32d271c
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/functions.sh | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/scripts/functions.sh b/scripts/functions.sh index 19b69e302..1e00d9edc 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -71,12 +71,10 @@ DEPS_CENTOS=("vpp-devel-${VPP_VERSION_RPM}" "libcurl-devel" "asio-devel" "libconfig-devel" - "centos-release-scl" + "dnf-plugins-core" "bzip2" - "devtoolset-7" "rpm-build") -LATEST_EPEL_REPO="http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm" COLLECTD_SOURCE="https://github.com/collectd/collectd/releases/download/collectd-5.12.0/collectd-5.12.0.tar.bz2" function install_collectd_headers() { @@ -109,8 +107,6 @@ function setup_fdio_repo() { elif [ "${DISTRIB_ID}" == "centos" ]; then curl -s ${PACKAGECLOUD_RELEASE_REPO_RPM} | sudo bash curl -s ${PACKAGECLOUD_HICN_REPO_RPM} | sudo bash - curl -L ${LATEST_EPEL_REPO} > /tmp/epel-release-latest-7.noarch.rpm - rpm -ivh /tmp/epel-release-latest-7.noarch.rpm || true else echo "Distribution ${DISTRIB_ID} is not supported" exit 1 @@ -124,9 +120,8 @@ function install_deps() { if [ ${DISTRIB_ID} == "ubuntu" ]; then echo ${DEPS_UBUNTU[@]} | xargs sudo ${apt_get} install -y --allow-unauthenticated --no-install-recommends elif [ ${DISTRIB_ID} == "centos" ]; then + yum config-manager --set-enabled powertools echo ${DEPS_CENTOS[@]} | xargs sudo yum install -y --nogpgcheck - ${CXX_COMPILER} --version - ${CC_COMPILER} --version fi } @@ -146,13 +141,6 @@ function setup() { echo DISTRIBUTION: ${PRETTY_NAME} # export variables depending on the platform we are running - if [ ${ID} == "centos" ]; then - # Compilers location - CXX_COMPILER="/opt/rh/devtoolset-7/root/usr/bin/c++" - CC_COMPILER="/opt/rh/devtoolset-7/root/usr/bin/cc" - export CC=${CC_COMPILER} CXX=${CXX_COMPILER} - fi - call_once setup_fdio_repo call_once install_deps call_once install_cmake |