From 72d0e5a7c92fe7f68857af5828ed7d717b2d694d Mon Sep 17 00:00:00 2001 From: Cheyenne Wills Date: Thu, 18 Apr 2019 09:55:09 -0600 Subject: [PATCH] redhat: RHEL8 add elfutils-devel as build dependency for kernel module Building the kernel modules under RHEL8 produces the following error message: Makefile:952: *** "Cannot generate ORC metadata for CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel". Stop. Add elfutils-devel to the BuildRequires in the rpm spec when building rhel >= 8 Add elfutils-devel to the BuildRequires in the rpm spec that openafs-kmodtool produces FIXES 134900 Reviewed-on: https://gerrit.openafs.org/13560 Tested-by: BuildBot Reviewed-by: Stephan Wiesand Reviewed-by: Michael Meffie Reviewed-by: Benjamin Kaduk (cherry picked from commit 13817774518ada28f5fe68e0d00ef5dd00b67b55) Change-Id: If4f453e6c459a2865626d4fd71bb47030e3deb58 Reviewed-on: https://gerrit.openafs.org/13563 Reviewed-by: Mark Vitale Reviewed-by: Andrew Deason Reviewed-by: Michael Meffie Reviewed-by: Cheyenne Wills Reviewed-by: Marcio Brito Barbosa Tested-by: BuildBot Reviewed-by: Stephan Wiesand --- src/packaging/RedHat/openafs-kmodtool | 3 +++ src/packaging/RedHat/openafs.spec.in | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/packaging/RedHat/openafs-kmodtool b/src/packaging/RedHat/openafs-kmodtool index f579fdb6d..5ee68261c 100644 --- a/src/packaging/RedHat/openafs-kmodtool +++ b/src/packaging/RedHat/openafs-kmodtool @@ -107,6 +107,9 @@ Requires(post): ${depmod} Requires(postun): ${depmod} Release: %{pkgrel}.%(echo ${verrel} | tr - _) BuildRequires: kernel${dashvariant}-devel-%{_target_cpu} = ${verrel} +%if 0%{?rhel} >= 8 +BuildRequires: elfutils-devel +%endif %description -n kmod-${kmod_name}${dashvariant} This package provides the ${kmod_name} kernel modules built for the Linux kernel ${kname} for the %{_target_cpu} family of processors. diff --git a/src/packaging/RedHat/openafs.spec.in b/src/packaging/RedHat/openafs.spec.in index d044b4cfa..5282c4a68 100644 --- a/src/packaging/RedHat/openafs.spec.in +++ b/src/packaging/RedHat/openafs.spec.in @@ -100,6 +100,9 @@ BuildRequires: krb5-devel %endif %if %{build_modules} BuildRequires: kernel-devel +%if 0%{?rhel} >= 8 +BuildRequires: elfutils-devel +%endif %endif ExclusiveArch: %{ix86} x86_64 ia64 s390 s390x sparc64 ppc ppc64 aarch64 -- 2.39.5