From: Jian Yu Date: Sat, 11 Jun 2022 04:26:18 +0000 (-0700) Subject: LU-13562 build: get correct kernel flavor for SLES X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=fc8c04c0f732f0adf2268ffc981dd0339f6ed5c3;p=fs%2Flustre-release.git LU-13562 build: get correct kernel flavor for SLES This patch fixes lustre.spec.in to get correct kernel flavor for SLES when kobjdir is detected as /lib/modules/%{_kver}/build. Test-Parameters: trivial clientdistro=sles15sp3 Change-Id: I350032af383ea8b7f48accd93e5cd11c571e6620 Fixes: d746e64fe1 ("LU-13562 build: SUSE build support for azure, cray_ari_s") Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/47596 Reviewed-by: Andreas Dilger Tested-by: Andreas Dilger --- diff --git a/lustre.spec.in b/lustre.spec.in index 862c29e..0131844 100644 --- a/lustre.spec.in +++ b/lustre.spec.in @@ -70,7 +70,7 @@ %{!?o2ibpath: %global o2ibpath no} %if 0%{?suse_version} >= 1310 && %{defined _take_kobj} - %global _flavor %(basename "%{kobjdir}") + %global _flavor %(echo %{_kver} | sed -e 's/^.*-//') %else %global _flavor default %endif