Whamcloud - gitweb
LU-363 don't cache BUILD for reuse
authorBrian J. Murrell <brian@whamcloud.com>
Wed, 11 May 2011 13:19:56 +0000 (09:19 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 26 May 2011 21:10:29 +0000 (14:10 -0700)
Since future builds don't actually need the %_topdir/BUILD subdir,
and it's huge, don't bother caching it.

Increment the toplevel BUILD_GEN to force a rebuild of all of the
kernels.

Signed-off-by: Brian J. Murrell <brian@whamcloud.com>
Change-Id: Ibd3e10c4052ca8012c8fd507be99a3b24e68d71e
Reviewed-on: http://review.whamcloud.com/533
Reviewed-by: Chris Gearing <chris@whamcloud.com>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Tested-by: Hudson
Reviewed-by: Oleg Drokin <green@whamcloud.com>
build/lbuild
build/lbuild-fc
build/lbuild-fc11
build/lbuild-fc12
build/lbuild-rhel
build/lbuild-rhel6
build/lbuild-sles

index 987aa79..0c05cfd 100755 (executable)
@@ -27,7 +27,8 @@ push_exit_trap "kill -INT -$$ || true" kill_children
 #BUILD_GEN=1
 #BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
 #BUILD_GEN=3   # bz19975: enable the building of src.rpms by default
 #BUILD_GEN=1
 #BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
 #BUILD_GEN=3   # bz19975: enable the building of src.rpms by default
-BUILD_GEN=4    # bz22281: use the git hash in the kernel extra version
+#BUILD_GEN=4   # bz22281: use the git hash in the kernel extra version
+BUILD_GEN=5    # TT-107: don't cache the BUILD dir
 
 TOPDIR=$PWD
 
 
 TOPDIR=$PWD
 
@@ -1259,7 +1260,7 @@ build_kernel_with_srpm() {
         else
             # store the resulting kernel RPM build tree for future use
             echo "Storing the built kernel for future reuse" >&${outfd}
         else
             # store the resulting kernel RPM build tree for future use
             echo "Storing the built kernel for future reuse" >&${outfd}
-            if ! store_for_reuse "$TOPDIR/{SPECS,SOURCES,BUILD,SRPMS,RPMS}" \
+            if ! store_for_reuse "$TOPDIR/{SPECS,SOURCES,SRPMS,RPMS}" \
                                  "kernel" "$REUSEBUILD" "$REUSE_SIGNATURE" \
                                  "$CAN_LINK_FOR_REUSE"; then
                 error "Failed to store kernel RPMS for reuse"
                                  "kernel" "$REUSEBUILD" "$REUSE_SIGNATURE" \
                                  "$CAN_LINK_FOR_REUSE"; then
                 error "Failed to store kernel RPMS for reuse"
index 6e4607b..f3f8615 100644 (file)
@@ -8,5 +8,6 @@ source ${0%/*}/lbuild-rhel5
 # to build built
 #BUILD_GEN=1
 #BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
 # to build built
 #BUILD_GEN=1
 #BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
-BUILD_GEN=3    # bz19975 enable the building of src.rpms by default
+#BUILD_GEN=3   # bz19975 enable the building of src.rpms by default
+BUILD_GEN+=".0"        # TT-107: don't cache the BUILD dir (reset major to 5)
 
 
index 5ec08c2..7f2c6bf 100644 (file)
@@ -11,6 +11,7 @@ source ${0%/*}/lbuild-fc
 # to build built
 #BUILD_GEN=1
 #BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
 # to build built
 #BUILD_GEN=1
 #BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
-BUILD_GEN=3    # bz19975 enable the building of src.rpms by default
+#BUILD_GEN=3   # bz19975 enable the building of src.rpms by default
+BUILD_GEN+=".0"        # TT-107: don't cache the BUILD dir (reset major to 5)
 
 
 
 
index db0c9ef..a4f7b2b 100644 (file)
@@ -6,6 +6,5 @@ source ${0%/*}/lbuild-fc
 # to build built
 #BUILD_GEN=1
 #BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
 # to build built
 #BUILD_GEN=1
 #BUILD_GEN=2   # bz19952: remove -lustre tag from kernel RPM names
-BUILD_GEN=3    # bz19975 enable the building of src.rpms by default
-
-
+#BUILD_GEN=3   # bz19975 enable the building of src.rpms by default
+BUILD_GEN+=".0"        # TT-107: don't cache the BUILD dir (reset major to 5)
index 082476b..235debd 100644 (file)
@@ -5,7 +5,8 @@
 # to force a kernel build on all distributions, update the BUILD_GEN variable
 # in build/lbuild)
 #BUILD_GEN+=".0"
 # to force a kernel build on all distributions, update the BUILD_GEN variable
 # in build/lbuild)
 #BUILD_GEN+=".0"
-BUILD_GEN+=".1"        # refactor both rhel5 and rhel6
+#BUILD_GEN+=".1"       # refactor both rhel5 and rhel6
+BUILD_GEN+=".0"        # TT-107: don't cache the BUILD dir (reset major to 5)
 
 DEVEL_KERNEL_TYPE="devel"
 RPM_HELPERS_DIR="/usr/lib/rpm/redhat"
 
 DEVEL_KERNEL_TYPE="devel"
 RPM_HELPERS_DIR="/usr/lib/rpm/redhat"
index 53bcee7..07cc7ea 100644 (file)
@@ -6,7 +6,8 @@
 # variable in build/lbuild-rhel and if you want to force kernel bulid for all
 # distributions, update the BUILD_GEN variable in build/lbuild)
 #BUILD_GEN+=".0"
 # variable in build/lbuild-rhel and if you want to force kernel bulid for all
 # distributions, update the BUILD_GEN variable in build/lbuild)
 #BUILD_GEN+=".0"
-BUILD_GEN+=".1"                # added --with firmware to rpmbuild for rhel6
+#BUILD_GEN+=".1"               # added --with firmware to rpmbuild for rhel6
+BUILD_GEN+=".0"        # TT-107: don't cache the BUILD dir (reset major to 5)
 
 source ${0%/*}/lbuild-rhel
 
 
 source ${0%/*}/lbuild-rhel
 
index 8037bca..e61b27f 100644 (file)
@@ -1,5 +1,9 @@
 # vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
 
 # vim:expandtab:shiftwidth=4:softtabstop=4:tabstop=4:
 
+# increment this if you have made a change that should force a new kernel
+# to build built
+BUILD_GEN+=".0"        # TT-107: don't cache the BUILD dir (reset major to 5)
+
 DEVEL_KERNEL_TYPE="source"
 RPM_HELPERS_DIR="/usr/lib/rpm"
 
 DEVEL_KERNEL_TYPE="source"
 RPM_HELPERS_DIR="/usr/lib/rpm"