summaryrefslogtreecommitdiffstats
path: root/scripts/functions.sh
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2021-02-11 12:04:44 +0100
committerMauro Sardara <msardara@cisco.com>2021-02-11 11:06:27 +0000
commitc7a3e7b95b426836b72f59e1530dda80d8a0eac5 (patch)
treee5f212f81398e9dc640d688494b7974d146e9810 /scripts/functions.sh
parent5c98619ef3e6107bb9dafddb055dd35a374931f3 (diff)
HICN-685 Fix package script for centos8
Signed-off-by: Mauro Sardara <msardara@cisco.com> Change-Id: I9973034088879b23cc0de6116d65c3a70272a706
Diffstat (limited to 'scripts/functions.sh')
-rw-r--r--scripts/functions.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/functions.sh b/scripts/functions.sh
index 1e00d9edc..8453bc191 100644
--- a/scripts/functions.sh
+++ b/scripts/functions.sh
@@ -121,6 +121,9 @@ function install_deps() {
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
+ # Temporary workaround until centos fixes the asio-devel package (https://forums.centos.org/viewtopic.php?t=73034)
+ curl -OL http://mirror.centos.org/centos/8/PowerTools/x86_64/os/Packages/asio-devel-1.10.8-7.module_el8.1.0+217+4d875839.x86_64.rpm
+ yum localinstall ./asio-devel-1.10.8-7.module_el8.1.0+217+4d875839.x86_64.rpm
echo ${DEPS_CENTOS[@]} | xargs sudo yum install -y --nogpgcheck
fi
}