On 8/4/21 4:11 PM, Benjamin Beasley wrote:
These should work:
fedpkg mockbuild -- --define='_smp_mflags -j1'
fedpkg mockbuild -- -D '_smp_mflags -j1'
mock -r foo --rebuild bar.src..rpm --define='_smp_mflags -j1'
mock -r foo --rebuild bar.src..rpm -D '_smp_mflags -j1'
As the case is OOM rather then a buggy makefile, it's better to limit
the overall CPU's rather than just mflags, as there are other places (eg
payload compression) that can fail due to OOM too if memory-cpu ratio is
low: set _smp_ncpus_max to a lower value than your number of CPUs, but
not necessarily 1 as that means serial execution of everything.
- Panu -