Re: Easy way to temporarily change smp_mflags in mock or fedpkg mockbuild?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux