how to speed up mock?

Ville Skyttä ville.skytta at iki.fi
Mon Jan 18 16:34:44 UTC 2010


On Monday 18 January 2010, Clark Williams wrote:

> If package build times are your problem, you may want to modify the
> make command used by the specfiles. Mock just does what the specfile
> says to do (i.e. it just does an rpmbuild), so you might want to add a
> '-j16' to the make command line to tell make to manage 16 parallel
> builds.

Many packages already pass %{?_smp_mflags} to make (and pretty much all Fedora 
packages should, unless there's a problem with it documented in the specfile).  
So instead of modifying specfiles, one can do something like this in 
/etc/mock/site-defaults.cfg:

config_opts['macros']['%_smp_mflags'] = '-j3'


More information about the devel mailing list