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

2021-08-04 Thread Panu Matilainen

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


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

2021-08-04 Thread Richard Shaw
On Wed, Aug 4, 2021 at 8:11 AM 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'
>

Great, thanks!

Richard
___
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


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

2021-08-04 Thread Benjamin Beasley
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'
___
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