[Reproducible-commits] [misc] 01/01: prebuilder: build in parallel on all cores
Reiner Herrmann
reiner at reiner-h.de
Fri Nov 27 17:51:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
deki-guest pushed a commit to branch master
in repository misc.
commit 872cc2a8fba9f1e97b8ab881240224579176671b
Author: Reiner Herrmann <reiner at reiner-h.de>
Date: Fri Nov 27 18:48:40 2015 +0100
prebuilder: build in parallel on all cores
---
prebuilder/rebuild.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/prebuilder/rebuild.sh b/prebuilder/rebuild.sh
index 355ab6e..0acde5d 100755
--- a/prebuilder/rebuild.sh
+++ b/prebuilder/rebuild.sh
@@ -4,6 +4,7 @@ BASEPATH="/var/cache/pbuilder/base-reproducible.tgz"
USE_COWBUILDER=
SCRIPT_PATH="$(realpath $(which "$0"))"
SCRIPT_DIR="$(dirname $SCRIPT_PATH)"
+NUM_CPU="$(grep -c '^processor' /proc/cpuinfo)"
while getopts b:c o; do
case $o in
@@ -34,7 +35,7 @@ rm -r b1 b2
mkdir -p b1 b2 logs
sudo \
- DEB_BUILD_OPTIONS="nocheck" \
+ DEB_BUILD_OPTIONS="parallel=$((NUM_CPU+1)) nocheck" \
TZ="/usr/share/zoneinfo/Etc/GMT+12" \
unshare --uts -- $BUILDER --build $BUILDER_OPTS \
--debbuildopts '-b' \
@@ -56,7 +57,7 @@ TMPTAR="$TMPDIR/initial_build.tar"
(cd b1 && tar -cf "$TMPTAR" $(dcmd ${PACKAGE}_*.changes))
sudo \
- DEB_BUILD_OPTIONS="nocheck" \
+ DEB_BUILD_OPTIONS="parallel=$NUM_CPU nocheck" \
linux64 --uname-2.6 unshare --uts -- $BUILDER --build $BUILDER_OPTS \
--configfile "$SCRIPT_DIR/pbuilderrc.rebuild" \
--debbuildopts '-b' \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git
More information about the Reproducible-commits
mailing list