Dne 16. 06. 25 v 11:41 dop. lejeczek via buildsys napsal(a):
Hi guys.

How can number of jobs(make) be controlled - or any other place which 'mock' 
goes multitasking?
I did a bit of tweaking in:  ~/.rpmmacros of the user who runs mocks, but that 
does not seem to have desired effect.
many thanks, L.

Mock ignores rpmmacros on host.

Instead go to config (or to ~/.config/mock.cfg )

and put there

config_opts['macros']['%Add_your_macro_name_here'] = "add macro value here"

in your specific case:

config_opts['macros']['%_smp_mflags'] = "-j16"

For more example what you can put in config see

  /usr/share/doc/mock/site-defaults.cfg


Tip: better than -j is -l as it can utilize computer better. See `man make`.


--
Miroslav Suchy, RHCA
Red Hat, Manager, Packit and CPT, #brno, #fedora-buildsys
-- 
_______________________________________________
buildsys mailing list -- buildsys@lists.fedoraproject.org
To unsubscribe send an email to buildsys-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/buildsys@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to