Nimbin[12]?Mirrors & Forks / jhalfs / commits / 924076f

jhalfs git · trunk

jhalfs LFS build automation (mirror)

lfs mirror bash · first commit 2005-09-11 · last commit 2024-02-13 (2 years ago) · synced 3 days ago · upstream: git.linuxfromscratch.org/jhalfs

Python 78.4% Shell 19.8% Makefile 1.8%
git clone https://git.christianimmanuel.de/mirrors-forks/jhalfs.gitwget https://git.christianimmanuel.de/mirrors-forks/jhalfs/archive/jhalfs.tar.gz

blfs tools: fix JOBS

Pierre Labastie · 2023-11-17 15:10 · 924076f0b5003e5a73b711afafbbd88c83225d69

If all cores are used, it should be set to 0, which will use nproc
after the cpuset has been defined, and not nproc (which is the number
of cores/threads on the machine).
 common/libs/func_install_blfs | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/common/libs/func_install_blfs b/common/libs/func_install_blfs
index 32a7851..191878b 100644
--- a/common/libs/func_install_blfs
+++ b/common/libs/func_install_blfs
@@ -136,8 +136,9 @@ STATS=n
 SRC_ARCHIVE=/sources
 BUILD_ROOT=/sources
 BUILD_SUBDIRS=y
-JOBS=$(if [ "$ALL_CORES" = y ]; then nproc; else echo $N_PARALLEL; fi)
+JOBS=$(if [ "$ALL_CORES" = y ]; then echo 0; else echo $N_PARALLEL; fi)
 EOF
+# The 0 value above is for using all cores
 for OPT_VAR in CFLAGS CXXFLAGS LDFLAGS; do
   eval optVal=\$${OPT_VAR}_$DEF_OPT_MODE
   if [ -n "$optVal" ] && [ "$optVal" != unset ]; then