From: James Simmons Date: Sat, 9 Jan 2021 15:24:16 +0000 (-0500) Subject: LU-13903 build: make lustre-devel buildable for Linux client X-Git-Tag: 2.14.51~166 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=d498d1b9cc1bd199e97af3817396fdcada44d655;hp=7af92d8843f7e526e69c7e6ca66352be1ea94174 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 --- 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