test/integration: Explicitly add some missing dependencies for RHEL-8

On RHEL-8, yum builddep misses some necessary dependencies to build the
kernel.

Signed-off-by: Julien Thierry <jthierry@redhat.com>
This commit is contained in:
Julien Thierry 2020-06-02 16:51:55 +01:00
parent 4df66fa15f
commit 443cdedb29
1 changed files with 14 additions and 2 deletions

View File

@ -72,8 +72,20 @@ kpatch_rhel_dependencies()
sudo yum-builddep -y "kernel-${kernel_version%.*}"
sudo debuginfo-install -y "kernel-${kernel_version%.*}"
[ "${arch}" == "x86_64" ] && sudo yum install -y pesign
[ "${arch}" == "ppc64le" ] && sudo yum install -y gcc-plugin-devel
case "${arch}" in
"x86_64")
sudo yum install -y pesign
;;
"ppc64le")
sudo yum install -y gcc-plugin-devel
if [ "${rhel_major}" -ge 8 ]; then
# yum-builddep doesn't provide everything we need :(
sudo yum install -y flex openssl-devel
fi
;;
*)
;;
esac
sudo yum install -y "https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm"
sudo yum install -y ccache