Whamcloud - gitweb
LU-7968 lbuild: Fix reuse signature calculation 62/19262/3
authorDmitry Eremin <dmitry.eremin@intel.com>
Thu, 31 Mar 2016 12:37:30 +0000 (15:37 +0300)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 31 Mar 2016 19:44:23 +0000 (19:44 +0000)
Don't use an information about Lustre commits from target file content
that is not directly related to kernel build which should be cached.
In other words make signature independent from git commits hash.

Change-Id: I3dbeb5f3a94cb947221aaa92659f14d4ea65e30a
Signed-off-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-on: http://review.whamcloud.com/19262
Reviewed-by: Doug Oucharek <doug.s.oucharek@intel.com>
Reviewed-by: Minh Diep <minh.diep@intel.com>
Tested-by: Jenkins
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
contrib/lbuild/lbuild

index bd374fa..85d3878 100755 (executable)
@@ -1333,7 +1333,8 @@ build_kernel_with_srpm() {
         local REUSE_SIGNATURE=$({ echo -en $release_str;
                                   echo $BUILD_GEN;
                                   cat "$CONFIG_FILE";
-                                  cat "$TARGET_FILE";
+                                  cat "$TARGET_FILE" |
+                                  sed -e '/_VERSION=/s/_[0-9]*_g.*$//g';
                                   cat "$FULL_PATCH";
                                   cat "$LBUILD_DIR/lbuild";
                                   cat "$LBUILD_DIR/lbuild-$DISTROMAJ"; } |