diff --git a/libreoffice-help-en-US.spec b/libreoffice-help-en-US.spec index f65f7bd..0716f7b 100644 --- a/libreoffice-help-en-US.spec +++ b/libreoffice-help-en-US.spec @@ -214,6 +214,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus" diff --git a/libreoffice-help-en-US.spec.in b/libreoffice-help-en-US.spec.in index 49dd243..2a48af0 100644 --- a/libreoffice-help-en-US.spec.in +++ b/libreoffice-help-en-US.spec.in @@ -210,6 +210,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus" diff --git a/libreoffice-help-group1.spec b/libreoffice-help-group1.spec index 1a9e687..aa303e8 100644 --- a/libreoffice-help-group1.spec +++ b/libreoffice-help-group1.spec @@ -309,6 +309,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus" diff --git a/libreoffice-help-group2.spec b/libreoffice-help-group2.spec index 7e14455..89676ca 100644 --- a/libreoffice-help-group2.spec +++ b/libreoffice-help-group2.spec @@ -327,6 +327,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus" diff --git a/libreoffice-help-group3.spec b/libreoffice-help-group3.spec index c431240..e6db23c 100644 --- a/libreoffice-help-group3.spec +++ b/libreoffice-help-group3.spec @@ -366,6 +366,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus" diff --git a/libreoffice-help-group4.spec b/libreoffice-help-group4.spec index 1ed3b14..d748e04 100644 --- a/libreoffice-help-group4.spec +++ b/libreoffice-help-group4.spec @@ -300,6 +300,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus" diff --git a/libreoffice-help-group5.spec b/libreoffice-help-group5.spec index 2e87778..167b971 100644 --- a/libreoffice-help-group5.spec +++ b/libreoffice-help-group5.spec @@ -354,6 +354,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus" diff --git a/libreoffice-help-groupX.spec.in b/libreoffice-help-groupX.spec.in index d705428..b57f772 100644 --- a/libreoffice-help-groupX.spec.in +++ b/libreoffice-help-groupX.spec.in @@ -186,6 +186,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus" diff --git a/libreoffice.spec b/libreoffice.spec index 25d3427..a573a63 100644 --- a/libreoffice.spec +++ b/libreoffice.spec @@ -1412,6 +1412,8 @@ fi # parallel build of modules # it makes sense on machines with more CPUs num_cpus=`grep ^processor /proc/cpuinfo | wc -l` +# again reduce to 64 CPUs because of dmake +test "$num_cpus" -gt "64" && num_cpus="64" && echo "Warning: dmake does not support more than 64 processes => reducing number of used cpus" # allow only 2 modules if there more jobs allowed in one module test -n "$lo_jobs" -a "$lo_jobs" -gt 1 && num_cpus="2" PARALLEL_BUILD="$PARALLEL_BUILD --with-num-cpus=$num_cpus"