Whamcloud - gitweb
LU-17709 build: Fix line breaks in CHECK_SYMBOLS 80/54680/2
authorAlexander Lezhoev <alexander.lezhoev@hpe.com>
Fri, 5 Apr 2024 09:43:47 +0000 (12:43 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:10:26 +0000 (06:10 +0000)
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 <alexander.lezhoev@hpe.com>
Change-Id: I980630dc646ec837e18b0e123999027a23aaa2d6
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54680
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/autoconf/lustre-lnet.m4

index 367006f..e0271e1 100644 (file)
@@ -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