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