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 -
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to