From: Jian Yu Date: Wed, 13 Sep 2023 18:00:53 +0000 (-0700) Subject: LU-17095 build: avoid modules.order nonexistence failure X-Git-Tag: 2.15.59~112 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=dbe4f860977455a9abe50165645a025bb6c46350;p=fs%2Flustre-release.git LU-17095 build: avoid modules.order nonexistence failure The modules.order is a temporary output file generated by kbuild while running "make" command. Sometimes, there is a race condition that causes the file not created and makes make command fail as follows: cat: ...//modules.order: No such file or directory This patch creates an empty modules.order file to avoid the error. Test-Parameters: trivial Change-Id: If779a727731f18e9409c35c0cd0deddd79559d3a Signed-off-by: Jian Yu Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52323 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Patrick Farrell Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/autoMakefile.am b/autoMakefile.am index ceabe62..7d92949 100644 --- a/autoMakefile.am +++ b/autoMakefile.am @@ -148,6 +148,7 @@ EXTRA_DIST = @PACKAGE_TARNAME@.spec \ LUSTRE-VERSION-FILE \ undef.h \ autogen.sh \ + modules.order \ config/lustre-version.m4 # contrib is a directory. Putting a directory in EXTRA_DIST diff --git a/autogen.sh b/autogen.sh index e33c225..210381f 100755 --- a/autogen.sh +++ b/autogen.sh @@ -16,6 +16,9 @@ for dir in libcfs lnet lustre snmp ; do ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $pw/$dir/autoconf" done +# avoid the "modules.order: No such file or directory" failure +touch modules.order + libtoolize -q aclocal -I $pw/config $ACLOCAL_FLAGS autoheader