Merge pull request #1018 from sm00th/co7_ccache

tests/integration: fix dependency ccache on centos 7
This commit is contained in:
Artem Savkov 2019-08-09 17:47:41 +02:00 committed by GitHub
commit 1fe8fe66c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,9 @@ kpatch_rhel_dependencies()
kpatch_centos_dependencies()
{
local kernel_version
local arch
kernel_version=$(uname -r)
arch=$(uname -m)
sudo yum install -y gcc gcc-c++ "kernel-devel-${kernel_version%.*}" elfutils elfutils-devel
sudo yum install -y yum-utils zlib-devel binutils-devel newt-devel \
@ -82,7 +84,7 @@ kpatch_centos_dependencies()
sudo yum-builddep -y "kernel-${kernel_version%.*}"
sudo debuginfo-install -y "kernel-${kernel_version%.*}"
sudo yum install -y ccache
sudo yum install -y "https://dl.fedoraproject.org/pub/epel/7/${arch}/Packages/c/ccache-3.3.4-1.el7.${arch}.rpm"
}
kpatch_dependencies()