Whamcloud - gitweb
LU-12018 quota: do not start a thread under memory pressure
[fs/lustre-release.git] / contrib / lbuild / lbuild-sles10
index a1a2964..003ec28 100644 (file)
@@ -172,15 +172,11 @@ EOF
         echo "%description -n %{-n*}%{!-n:%name}-kmp-_dummy_" \
         )}
 EOF
-        local targets
-        for arch in $BUILD_ARCHS; do
-            targets="--target $(resolve_arch $arch $PATCHLESS) $targets"
-        done
-        if ! $RPMBUILD --rebuild --nodeps $targets \
-                                 --define "symsetsdir ${TOPDIR}/reused/boot" \
-                                 --define "kobjdir ${LINUXOBJ%/*/*}" \
-                                 --define "_tmppath /var/tmp" \
-                                 --define "_topdir ${TOPDIR}" \
+        if ! rpmbuild --rebuild --nodeps --target ${TARGET_ARCH} \
+                                --define "symsetsdir ${TOPDIR}/reused/boot" \
+                                --define "kobjdir ${LINUXOBJ%/*/*}" \
+                                --define "_tmppath /var/tmp" \
+                                --define "_topdir ${TOPDIR}" \
                       ${SOURCE} 2>&1; then
             rm ~/.rpmmacros
             if [ -n "$tmpfile" ]; then