xbps-src: default XBPS_MAKEJOBS to nproc

previously this defaulted to 1. In some rare cases, nproc is not
desirable, but that can be easily overriden in the standard ways,
etc/conf or -jN.

For compatibility with other distros, it defaults to 1 when nproc
is not available.
This commit is contained in:
classabbyamp 2022-11-05 02:27:50 -04:00 committed by classabbyamp
parent d82bc83d97
commit a13c842291
2 changed files with 7 additions and 1 deletions

View file

@ -482,7 +482,6 @@ setup_pkg() {
DESTDIR=$XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/${sourcepkg}-${version}
PKGDESTDIR=$XBPS_DESTDIR/$XBPS_CROSS_TRIPLET/${pkg}-${version}
: ${XBPS_MAKEJOBS:=1}
export XBPS_ORIG_MAKEJOBS=${XBPS_ORIG_MAKEJOBS:=$XBPS_MAKEJOBS}
if [ -n "$disable_parallel_build" ]; then
XBPS_MAKEJOBS=1