StarlingX Linux kernel
Go to file
Scott Little 494c52a7db Add missing BuildRequires to allow kmods to build reliably
The original update that broke layered build was
https://review.opendev.org/#/c/727908

all kmods failed to build due to a missing BuildRequires
on elfutils-libelf-devel.

The actual error message was:

Makefile:977: *** "Cannot generate ORC metadata for
CONFIG_UNWINDER_ORC=y, please install libelf-dev, libelf-devel or
elfutils-libelf-devel". Stop.
make: *** [default] Error 2
RPM build errors:

In the case of centos, it is elfutils-libelf-devel that we need.
The need for the kmod appears to relate to the new 4.18 kernel.
It might be that kernel-devel should now have a 'Require
elfutils-libelf-devel'

Reproducibility depends on one of a few factors.  If
elfutils-libelf-devel may already be present within the mock
environment due to build of a prior package, the build will pass.
The kernel build pulls in elfutils-libelf-devel, and produces
kernel-devel which is required for kmod builds.  So it's easy to
overlook this defect.

So we need a build where mock is clean yet the kernel is already
built.  Two possibilities.
1) clean mock after building the kernel, but before building the kmods.
2) build avoidance when the kernel has not changed, but the kmod has.

CENGN layered build hit the second scenario.

This fix tackles the problem from the kmod side by adding BuildRequires
elfutils-libelf-devel to each kmod.

An alternative approach might be to add a Requires elfutils-libelf-devel
to kernel-devel.  That option has not yet been explored.  So I'll call
that a partial fix only.

Partial-Bug: 1878072
Partial-Bug: 1880248
Change-Id: I472a5a285c2b47401fa6594358c0578d81e3f678
Signed-off-by: Scott Little <scott.little@windriver.com>
2020-05-25 15:34:03 +00:00
doc Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
kernel-modules Add missing BuildRequires to allow kmods to build reliably 2020-05-25 15:34:03 +00:00
kernel-rt Fix installation error on Intel (R) C600 platform 2020-05-14 10:45:36 +08:00
kernel-std Fix installation error on Intel (R) C600 platform 2020-05-14 10:45:36 +08:00
releasenotes Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
userspace/mellanox Uprev kmods to fix layered build 2020-05-21 16:46:52 -04:00
.gitignore Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
.gitreview Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
.zuul.yaml Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
LICENSE Config file changes to add 'kernel-std kernel-rt kernel-modules ' after relocation from 'stx/integ' 2020-04-09 10:50:11 -04:00
centos_build_layer.cfg Config file changes to add 'kernel-std kernel-rt kernel-modules ' after relocation from 'stx/integ' 2020-04-09 10:50:11 -04:00
centos_extra_downloads.lst Move tpmdd to built-in driver 2020-05-14 09:59:17 +08:00
centos_guest_image.inc Move tpmdd to built-in driver 2020-05-14 09:59:17 +08:00
centos_guest_image_rt.inc Move tpmdd to built-in driver 2020-05-14 09:59:17 +08:00
centos_iso_image.inc Move tpmdd to built-in driver 2020-05-14 09:59:17 +08:00
centos_pkg_dirs Move tpmdd to built-in driver 2020-05-14 09:59:17 +08:00
centos_pkg_dirs_rt Move tpmdd to built-in driver 2020-05-14 09:59:17 +08:00
centos_srpms_centos.lst Fix lst file entry for broken kmods 2020-05-04 15:33:31 -04:00
centos_srpms_centos3rdparties.lst [kernel-rt 4.18] Upgrade kernel-rt to version 4.18.0-147.3.1 based on SRPM 2020-04-30 11:25:20 +08:00
centos_tarball-dl.lst Move tpmdd to built-in driver 2020-05-14 09:59:17 +08:00
test-requirements.txt Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00
tox.ini Added .gitreview, .zuul.yaml & tox.ini 2020-04-21 16:01:28 -04:00