Whamcloud - gitweb
lustre-kernel-2.4.spec uses '_tmppath' instead of '_tmpdir' in its Builtroot variable.
authorwangyb <wangyb>
Wed, 30 Aug 2006 06:41:59 +0000 (06:41 +0000)
committerwangyb <wangyb>
Wed, 30 Aug 2006 06:41:59 +0000 (06:41 +0000)
so let's pass the right macro definition to it.

build/lbuild
build/lmake

index cfdc8a0..e643ee2 100755 (executable)
@@ -546,13 +546,13 @@ build_kernel()
     done
 
     $RPMBUILD $targets -bb lustre-kernel-2.4.spec \
-        --define "_tmpdir $TMPDIR" \
+        --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 "_tmpdir $TMPDIR" \
+            --define "_tmppath $TMPDIR" \
             --define "_topdir $TOPDIR" || \
             fatal 1 "Error building .src.rpm."
     fi
@@ -578,7 +578,7 @@ build_lustre()
     ./configure "--with-linux=${LINUX}" ${CONFIGURE_FLAGS}
 
     $RPMBUILD $targets -bb build/lustre.spec \
-        --define "_tmpdir $TMPDIR" \
+        --define "_tmppath $TMPDIR" \
         --define "_topdir $TOPDIR" || \
         fatal 1 "Error building rpms for $BUILD_ARCHS."
 
index 4aa15d2..1afbb1a 100755 (executable)
@@ -493,7 +493,7 @@ build_lustre()
        < build/lustre.spec.in \
        > build/lustre.spec
     $RPMBUILD --target ${TARGET_ARCH} -bb build/lustre.spec \
-        --define "_tmpdir $TMPDIR" \
+        --define "_tmppath $TMPDIR" \
        --define "_topdir $(lbuild_topdir)" || \
        fatal 1 "Error building Lustre rpms."
     # $MAKE_J "$MAKE_CC" || fatal 1 "Error building Lustre."