With Ruby 3, something uses the MAKE var without the expected
shell-eval, so the number-of-processors trick stopped working.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
make --jobs \$\(grep -c processor /proc/cpuinfo\) DESTDIR\=
sitearchdir\=./.gem.
20231120-15-fa6sx6 sitelibdir\=./.gem.
20231120-15-fa6sx6
clean
make: invalid option -- 'c'
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
[...]
RUN /usr/local/rvm/bin/rvm-exec default bundle config --global jobs $(let a=$(grep -c processor /proc/cpuinfo )-1; echo $a)
# Cf. https://build.betterup.com/one-weird-trick-that-will-speed-up-your-bundle-install/
-ENV MAKE "make --jobs $(grep -c processor /proc/cpuinfo)"
+ENV MAKE "make --jobs 8"
# Preseed the go module cache and the ruby gems, using the currently checked
# out branch of the source tree. This avoids potential compatibility issues