From f08965208f1f251fb1350eb30110bd8c45aeda1e Mon Sep 17 00:00:00 2001 From: "Christopher J. Morrone" Date: Tue, 8 Dec 2015 16:55:52 -0500 Subject: [PATCH] LU-3953 build: Only chmod dkms.mkconf once With AC_CONFIG_FILES, the "commands" parameter (the second one) is applied for _each_ command, not just once. That means the existing chmod command was run many times, and several of the times it runs it complains because the dkms.mkconf file does not yet exist. This patch fixes that by giving the dkms.mkconf file its own AC_CONFIG_FILES macro. Change-Id: Ic71cc5d8c3555d28ff16efa23d564dce28662443 Signed-off-by: Christopher J. Morrone Reviewed-on: http://review.whamcloud.com/17516 Tested-by: Jenkins Reviewed-by: Faccini Bruno Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- config/lustre-build.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config/lustre-build.m4 b/config/lustre-build.m4 index 21976fc69..7e2e239 100644 --- a/config/lustre-build.m4 +++ b/config/lustre-build.m4 @@ -449,7 +449,6 @@ AC_DEFUN([LB_CONFIG_FILES], [ [Rules:build/Rules.in] AC_PACKAGE_TARNAME[.spec] AC_PACKAGE_TARNAME[-dkms.spec] - lustre/scripts/dkms.mkconf contrib/Makefile contrib/lbuild/Makefile contrib/scripts/Makefile @@ -461,9 +460,10 @@ AC_DEFUN([LB_CONFIG_FILES], [ lustre-iokit/sgpdd-survey/Makefile lustre-iokit/mds-survey/Makefile lustre-iokit/ior-survey/Makefile - lustre-iokit/stats-collect/Makefile, - [chmod +x lustre/scripts/dkms.mkconf] + lustre-iokit/stats-collect/Makefile ) + AC_CONFIG_FILES([lustre/scripts/dkms.mkconf], + [chmod +x lustre/scripts/dkms.mkconf]) ]) # -- 1.8.3.1