From d3df9909675be6f5782c8b14fd5e614d6129e033 Mon Sep 17 00:00:00 2001 From: Shaun Tancheff Date: Fri, 28 Jun 2019 00:13:19 -0500 Subject: [PATCH 1/1] LU-12478 build: rhel8 missing module packaing tools On RHEL8 kmodtool and kernel_module_package_buildreqs are not installed with kernel-devel This helps to bootstrap the developer into a working configuration. Test-Parameters: trivial Cray-bug-id: LUS-7385 Signed-off-by: Shaun Tancheff Change-Id: I30cf5c11174b2aa94c663c72e34f8f88c5c90ed8 Reviewed-on: https://review.whamcloud.com/35356 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Li Dongyang Reviewed-by: Jian Yu Reviewed-by: Petros Koutoupis Reviewed-by: Oleg Drokin --- lustre.spec.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lustre.spec.in b/lustre.spec.in index 240bf82..db3c0d40 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -159,6 +159,13 @@ BuildRequires: libselinux-devel Requires: libselinux %endif %if %{with lustre_modules} + +%if 0%{?rhel} >= 8 +%if %{undefined kernel_module_package_buildreqs} +BuildRequires: redhat-rpm-config kernel-rpm-macros elfutils-libelf-devel kmod +%endif +%endif + BuildRequires: %kernel_module_package_buildreqs %if %{_vendor}=="redhat" BuildRequires: redhat-rpm-config -- 1.8.3.1