summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-23 23:12:49 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-23 23:12:49 +0200
commit4bdc95346259f5b88520f038669ddf398f5db46f (patch)
treec2e8707c0886766dce3223bb3ebd76274d3bae27 /bin/reproducible_build.sh
parent1787c5c3f4e84a620502a6c19b0d30a089bf7aee (diff)
downloadjenkins.debian.net-4bdc95346259f5b88520f038669ddf398f5db46f.tar.xz
reproducible: vary number of cores between 1st and 2nd build
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index ec169668..89872a0f 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -412,7 +412,7 @@ build_rebuild() {
set -x
printf "BUILDUSERID=2222\nBUILDUSERNAME=pbuilder2\n" > $TMPCFG
( timeout 12h nice ionice -c 3 sudo \
- DEB_BUILD_OPTIONS="parallel=$NUM_CPU" \
+ DEB_BUILD_OPTIONS="parallel=$(echo $NUM_CPU-1|bc)" \
TZ="/usr/share/zoneinfo/Etc/GMT-14" \
LANG="fr_CH.UTF-8" \
LC_ALL="fr_CH.UTF-8" \