From da1677461abaa8b84b4d00e1663f8a2c04dd4301097eeb8a6720441429c29fb8 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 20 Nov 2025 08:36:06 +0100 Subject: [PATCH] Don't fail build on 1-core-VM When `expr` returns a result of '0', it sets the return code to 1. `eval` just passes that through and that fails the build there on 1-core-VMs. --- rocsolver.changes | 5 +++++ rocsolver.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rocsolver.changes b/rocsolver.changes index 7f296f0..e54bacb 100644 --- a/rocsolver.changes +++ b/rocsolver.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Nov 20 07:35:23 UTC 2025 - Bernhard Wiedemann + +- Don't fail build on 1-core-VM + ------------------------------------------------------------------- Tue Nov 11 14:48:08 UTC 2025 - Tom Rix diff --git a/rocsolver.spec b/rocsolver.spec index 0505c5a..772eb60 100644 --- a/rocsolver.spec +++ b/rocsolver.spec @@ -233,7 +233,9 @@ if [ ${HIP_JOBS} = 1 ]; then HIP_JOBS=4 fi fi -HIP_JOBS=`eval "expr ${HIP_JOBS} / 2"` +if [ ${HIP_JOBS} != 1 ] ; then + HIP_JOBS=`expr ${HIP_JOBS} / 2` +fi # Take into account memmory usage per core, do not thrash real memory BUILD_MEM=32 -- 2.51.1