diff --git a/build/lbuild b/build/lbuild index 09266e2c3039693f43607f85a0d4632e87589f73..cfdc8a0b8f83d6739307808a816144c058b1622f 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= @@ -545,11 +546,13 @@ build_kernel() done $RPMBUILD $targets -bb lustre-kernel-2.4.spec \ + --define "_tmpdir $TMPDIR" \ --define "_topdir $TOPDIR" || \ fatal 1 "Error building rpms for $BUILD_ARCHS." if (( $DO_SRC )) ; then $RPMBUILD -bs lustre-kernel-2.4.spec \ + --define "_tmpdir $TMPDIR" \ --define "_topdir $TOPDIR" || \ fatal 1 "Error building .src.rpm." fi @@ -575,6 +578,7 @@ build_lustre() ./configure "--with-linux=${LINUX}" ${CONFIGURE_FLAGS} $RPMBUILD $targets -bb build/lustre.spec \ + --define "_tmpdir $TMPDIR" \ --define "_topdir $TOPDIR" || \ fatal 1 "Error building rpms for $BUILD_ARCHS." diff --git a/build/lmake b/build/lmake index 0c195c0f105996d95fd8754ff844e3d4a7f20aa1..4aa15d220295a703b263012bc203375e4026f02e 100755 --- a/build/lmake +++ b/build/lmake @@ -10,6 +10,7 @@ TARGET_ARCH= TARGET_CONFIG= JOBS=1 CONFIGURE_FLAGS= +TMPDIR=${TMPDIR:-"/var/tmp"} # commands to run BUILD_LUSTRE=0 @@ -492,6 +493,7 @@ build_lustre() < build/lustre.spec.in \ > build/lustre.spec $RPMBUILD --target ${TARGET_ARCH} -bb build/lustre.spec \ + --define "_tmpdir $TMPDIR" \ --define "_topdir $(lbuild_topdir)" || \ fatal 1 "Error building Lustre rpms." # $MAKE_J "$MAKE_CC" || fatal 1 "Error building Lustre."