From d498d1b9cc1bd199e97af3817396fdcada44d655 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Sat, 9 Jan 2021 10:24:16 -0500 Subject: [PATCH] LU-13903 build: make lustre-devel buildable for Linux client Recently a new lustre-devel rpm was created which always has a dependency on the kernel detected by the kmod macros. This doesn't work in the case of running a custom Linux kernel. Addreess this by not making use of the kmod macros when only building the Lustre utilies i.e configure --disable-modules. Test-Parameters: trivial Fixes: 16af4e5ed634 ("LU-9215 build: Re-add the lustre-devel package") Signed-off-by: James Simmons Change-Id: I324fbaa0f5b03e2095b493f3d8e00b74ca64298a Reviewed-on: https://review.whamcloud.com/41188 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Neil Brown Reviewed-by: Oleg Drokin --- lustre.spec.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre.spec.in b/lustre.spec.in index ef29b67..45d598b 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -322,7 +322,9 @@ Summary: Lustre include headers Group: Development/Kernel Provides: lustre-devel = %{version} Requires: %{lustre_name} = %{version} +%if %{with lustre_modules} Requires: %{requires_kmod_name} = %{requires_kmod_version} +%endif %description devel This package contains the header files needed for building additional -- 1.8.3.1