From aae9522124f6d6d06c8aee72db32fc799a46ccf0 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 29 Oct 2014 22:44:29 +0100 Subject: d-i-build: workaround: #767260 (console-setup doesnt support parallel build) --- bin/d-i_build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/d-i_build.sh b/bin/d-i_build.sh index 3b9b411a..19f8746d 100755 --- a/bin/d-i_build.sh +++ b/bin/d-i_build.sh @@ -55,10 +55,15 @@ pdebuild_package() { # # build (binary packages only, as sometimes we cannot get the upstream tarball...) # - NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l) + SOURCE=$(dpkg-parsechangelog |grep ^Source: | cut -d " " -f2) + # FIXME: workaround: #767260 (console-setup doesnt support parallel build) + if [ "$SOURCE" != "console-setup" ] ; then + NUM_CPU=$(cat /proc/cpuinfo |grep ^processor|wc -l) + else + NUM_CPU=1 + fi pdebuild --use-pdebuild-internal --debbuildopts "-j$NUM_CPU -b" # cleanup - SOURCE=$(grep "^Source: " debian/control |cut -d " " -f2) echo cat /var/cache/pbuilder/result/${SOURCE}_*changes echo -- cgit v1.2.3-54-g00ecf