how to speed up mock?
Ville Skyttä
ville.skytta at iki.fi
Mon Jan 18 21:30:51 UTC 2010
On Monday 18 January 2010, Tony Nelson wrote:
> On 10-01-18 11:34:44, Ville Skyttä wrote:
> ...
>
> > So instead of modifying specfiles, one can do something like this in
> > /etc/mock/site-defaults.cfg:
> >
> > config_opts['macros']['%_smp_mflags'] = '-j3'
>
> Unless `rpmbuild --showrc` shows a bad definition for _smp_mflags,
> you're probably better off letting the macro decide.
Possibly, but this was just to point out that there's no need to modify spec
files if you want to have a custom value for it.
Anyway, for single core machines, it's better to set %_smp_mflags manually to
-jX (X > 1) in any case, not only for build speed reasons, see
https://fedoraproject.org/wiki/Packaging/Guidelines#Parallel_make
More information about the devel
mailing list