- changed: to function also with emulators better use fakeroot-tcp for debian build
authorMartin Mohring <martin.mohring@5etech.eu>
Mon, 6 Oct 2008 13:50:17 +0000 (13:50 +0000)
committerMartin Mohring <martin.mohring@5etech.eu>
Mon, 6 Oct 2008 13:50:17 +0000 (13:50 +0000)
- fixed: changed basis for memory calculation to assume also a stack which can be swapped well. gcc often needs much memory here

build

diff --git a/build b/build
index a989841..4588cfd 100755 (executable)
--- a/build
+++ b/build
@@ -309,7 +309,7 @@ setmemorylimit()
        case "$mem" in
            MemTotal:*)
                set -- $mem
-               eval "mem=\$(($2/3*2))"
+                eval "mem=\$(($2/3*4))"
                ulimit -v $mem
                echo "Memory limit set to ${mem}KB"
                break;
@@ -1252,7 +1252,7 @@ for SPECFILE in "${SPECFILES[@]}" ; do
        chmod 755 $BUILD_ROOT/.build.command
        chroot $BUILD_ROOT su -c /.build.command - $BUILD_USER < /dev/null && BUILD_SUCCEDED=true
     else
-       chroot $BUILD_ROOT su -c "cd $TOPDIR/BUILD && dpkg-buildpackage -us -uc -rfakeroot" - $BUILD_USER < /dev/null && BUILD_SUCCEDED=true
+       chroot $BUILD_ROOT su -c "cd $TOPDIR/BUILD && dpkg-buildpackage -us -uc -rfakeroot-tcp" - $BUILD_USER < /dev/null && BUILD_SUCCEDED=true
        mkdir -p $BUILD_ROOT/$TOPDIR/DEBS
        for DEB in $BUILD_ROOT/$TOPDIR/*.deb ; do
            test -e "$DEB" && mv "$DEB" "$BUILD_ROOT/$TOPDIR/DEBS"