X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=build%2Flbuild;h=7e9c63072ccb2efc2bd52e7aebc27f4924d27ad5;hb=9b73c02192b3e16c322402e8c080e660ba2c457c;hp=09266e2c3039693f43607f85a0d4632e87589f73;hpb=d0a54de6fc931066fd5cf18c78d2eba597e09942;p=fs%2Flustre-release.git diff --git a/build/lbuild b/build/lbuild index 09266e2..7e9c630 100755 --- a/build/lbuild +++ b/build/lbuild @@ -18,6 +18,7 @@ CONFIGURE_FLAGS= EXTERNAL_PATCHES= EXTRA_VERSION= STAGEDIR= +TMPDIR=${TMPDIR:-"/var/tmp"} # from target file KERNEL= @@ -208,6 +209,9 @@ check_options() 2.6-suse) CANONICAL_TARGET="sles-2.6" ;; + 2.6-sles10) + CANONICAL_TARGET="sles10-2.6" + ;; hp_pnnl-2.4) CANONICAL_TARGET="hp-pnnl-2.4" ;; @@ -545,11 +549,13 @@ build_kernel() done $RPMBUILD $targets -bb lustre-kernel-2.4.spec \ + --define "_tmppath $TMPDIR" \ --define "_topdir $TOPDIR" || \ fatal 1 "Error building rpms for $BUILD_ARCHS." if (( $DO_SRC )) ; then $RPMBUILD -bs lustre-kernel-2.4.spec \ + --define "_tmppath $TMPDIR" \ --define "_topdir $TOPDIR" || \ fatal 1 "Error building .src.rpm." fi @@ -574,7 +580,8 @@ build_lustre() ./configure "--with-linux=${LINUX}" ${CONFIGURE_FLAGS} - $RPMBUILD $targets -bb build/lustre.spec \ + $RPMBUILD $targets -bb lustre.spec \ + --define "_tmppath $TMPDIR" \ --define "_topdir $TOPDIR" || \ fatal 1 "Error building rpms for $BUILD_ARCHS." @@ -600,7 +607,7 @@ stage() [ -r ~/.lbuildrc ] && . ~/.lbuildrc -options=$(getopt -o d:D:h -l disable-datestamp,external-patches:,extraversion:,kerneldir:,linux:,lustre:,nodownload,nosrc,publish,release,stage:,tag:,target:,target-archs:,with-linux: -- "$@") +options=$(getopt -o d:D:h -l disable-datestamp,external-patches:,extraversion:,kerneldir:,linux:,lustre:,nodownload,nosrc,publish,release,src,stage:,tag:,target:,target-archs:,with-linux: -- "$@") if [ $? != 0 ] ; then usage 1