From: Alexander Lezhoev Date: Fri, 5 Apr 2024 09:43:47 +0000 (+0300) Subject: LU-17709 build: Fix line breaks in CHECK_SYMBOLS X-Git-Tag: 2.15.64~103 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8d7d1b8a07dc35e5671fbd65d927eaadec77f75d;p=fs%2Flustre-release.git LU-17709 build: Fix line breaks in CHECK_SYMBOLS CHECK_SYMBOLS=$(find ${INT_O2IBPATH}* -name Module.symvers) contains newlines if there is more than one Module.symvers and cause a build failure Test-Parameters: trivial Fixes: 8b1d2a72f1 ("LU-16967 build: Add in-kernel-ko2iblnd driver") HPE-bug-id: LUS-12229 Signed-off-by: Alexander Lezhoev Change-Id: I980630dc646ec837e18b0e123999027a23aaa2d6 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54680 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Jian Yu Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lnet/autoconf/lustre-lnet.m4 b/lnet/autoconf/lustre-lnet.m4 index 367006f..e0271e1 100644 --- a/lnet/autoconf/lustre-lnet.m4 +++ b/lnet/autoconf/lustre-lnet.m4 @@ -317,7 +317,7 @@ Auto detection of external O2IB failed. Build of external o2ib disabled.]) if test -f $INT_O2IBPATH/Module.symvers; then CHECK_SYMBOLS=$INT_O2IBPATH/Module.symvers elif test "x$SUSE_KERNEL" = "xyes"; then - CHECK_SYMBOLS=$(find ${INT_O2IBPATH}* -name Module.symvers) + CHECK_SYMBOLS=$(find ${INT_O2IBPATH}* -name Module.symvers -printf "%p ") # Select only the current 'flavor' if there is more than 1 NUM_AVAIL=$(find ${INT_O2IBPATH}* -name Module.symvers | wc -l) if test ${NUM_AVAIL} -gt 1; then