Disable parallel building that seems to make some build crash for some reason

This commit is contained in:
Alexandre Aubin 2020-02-12 17:57:41 +00:00
parent 3aa414836b
commit 3b1f9ddb4c

View file

@ -22,19 +22,20 @@ elif [[ $arch == all ]]; then
DEBBUILDOPTS="-b"
fi
# Retrieve the number of processors
if [ -x /usr/bin/getconf ]; then
JOBS=`getconf _NPROCESSORS_CONF`
else
JOBS=1
fi
## Retrieve the number of processors for parallel building
## N.B. : disabled by Alex on Feb 12 2020 because this makes some build fail on buster for some reason...
#if [ -x /usr/bin/getconf ]; then
# JOBS=`getconf _NPROCESSORS_CONF`
#else
# JOBS=1
#fi
#DEBBUILDOPTS="$DEBBUILDOPTS -j$JOBS"
echo "######################"
echo " Starting build ... "
echo "######################"
# Format needed pbuilder arguments
DEBBUILDOPTS="$DEBBUILDOPTS -j$JOBS"
DSC_FILE="${package}_${version}.dsc"
BASE_TGZ="${PBUILDER_IMAGES}/${codename}-${arch}.tgz"
EXTRA_OPTS=()
@ -61,6 +62,8 @@ then
CONFIGFILE="--configfile $PBUILDER_CONF/arm64.conf"
fi
echo "Running 'pbuilder build --basetgz "${BASE_TGZ}" --debbuildopts "${DEBBUILDOPTS}" ${CONFIGFILE} "${EXTRA_OPTS[@]}" $DSC_FILE"
pbuilder build \
--basetgz "${BASE_TGZ}" \
--debbuildopts "${DEBBUILDOPTS}" \