]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
redhat: RHEL8 add elfutils-devel as build dependency for kernel module
authorCheyenne Wills <cwills@sinenomine.net>
Thu, 18 Apr 2019 15:55:09 +0000 (09:55 -0600)
committerStephan Wiesand <stephan.wiesand@desy.de>
Mon, 10 Jun 2019 12:01:47 +0000 (08:01 -0400)
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 <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
(cherry picked from commit 13817774518ada28f5fe68e0d00ef5dd00b67b55)

Change-Id: If4f453e6c459a2865626d4fd71bb47030e3deb58
Reviewed-on: https://gerrit.openafs.org/13563
Reviewed-by: Mark Vitale <mvitale@sinenomine.net>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Reviewed-by: Cheyenne Wills <cwills@sinenomine.net>
Reviewed-by: Marcio Brito Barbosa <mbarbosa@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/packaging/RedHat/openafs-kmodtool
src/packaging/RedHat/openafs.spec.in

index f579fdb6d329bbee70c54ccabaef8ae797341e74..5ee68261cde213252bb5830ceea6a5be1d7b3a82 100644 (file)
@@ -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.
index d044b4cfaf2c9406fa3f12087036fd1185be1e39..5282c4a68443e1d34bfc45940d3703ef2a33fe9d 100644 (file)
@@ -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