From 443cdedb29bbd46512f42a63415ae06a60922d83 Mon Sep 17 00:00:00 2001 From: Julien Thierry Date: Tue, 2 Jun 2020 16:51:55 +0100 Subject: [PATCH] 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 --- test/integration/lib.sh | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/test/integration/lib.sh b/test/integration/lib.sh index 8cff525..2c61ce4 100644 --- a/test/integration/lib.sh +++ b/test/integration/lib.sh @@ -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