summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-07-11 12:21:33 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-07-11 12:21:33 +0900
commit8a26a5e770a1070cb4a877b121787fc8d2036fae (patch)
tree9805de524885be755dd7471b3a789c7dc89c3ae5
parent8fa083ac8de98a8dc56a76c85418be5e9fa28f4d (diff)
downloadtde-packaging-8a26a5e770a1070cb4a877b121787fc8d2036fae.tar.gz
tde-packaging-8a26a5e770a1070cb4a877b121787fc8d2036fae.zip
DEB build scripts: added support to disable parallel build if needed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rwxr-xr-xdebian/_buildscripts/local/internals/_pbuilder.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/_buildscripts/local/internals/_pbuilder.sh b/debian/_buildscripts/local/internals/_pbuilder.sh
index 9c36ac219..51ba48dc6 100755
--- a/debian/_buildscripts/local/internals/_pbuilder.sh
+++ b/debian/_buildscripts/local/internals/_pbuilder.sh
@@ -64,10 +64,14 @@ apt-get update
END_D05_03
chmod a+x "$PBUILDER_DEPS_HOOK"
# Build
+ OPT_BUILD_PARALLEL=""
+ if [ ${DEB_BUILD_PARALLEL+x} ]; then
+ OPT_BUILD_PARALLEL="DEB_BUILD_PARALLEL=$DEB_BUILD_PARALLEL"
+ fi
eval pdebuild $OPT_INTERNAL_PBUILDER $OPT_SIGN_PKG_PBUILDER \
--architecture $ARCHITECTURE \
--buildresult \"$MOD_DEB_PATH\" \
- --pbuilderroot \"sudo DISTRO_NAME=$DISTRO_NAME ARCHITECTURE=$ARCHITECTURE\" \
+ --pbuilderroot \"sudo $OPT_BUILD_PARALLEL DISTRO_NAME=$DISTRO_NAME ARCHITECTURE=$ARCHITECTURE\" \
--logfile \"$BUILDING_LOG_FILE\" \
-- \
--bindmounts \"$TDE_DEBS_DIR\" \