Make buildSRPMFromSCM faster?

Richard W.M. Jones rjones at redhat.com
Sun Jul 20 10:16:30 UTC 2014


On Sun, Jul 20, 2014 at 07:10:40AM +0200, Mattias Ellert wrote:
> lör 2014-07-19 klockan 12:30 +0100 skrev Richard W.M. Jones:
> > The first step of most Koji builds is buildSRPMFromSCM, where a
> > .src.rpm file is built from the git repo.
> > 
> > Currently this involves completely building a mock buildroot
> > containing all the BuildRequires, and running `rpmbuild -bs'.  This
> > takes many minutes (especially when arm is chosen as a builder).
> 
> The buildroot for the buildSRPMFromSCM step is not even the full default
> buildroot for the package build step and it doesn't install the BRs.
> 
> On my recent koji builds 'group install "srpm-build"' results in
> "Install 10 Packages (+226 Dependent packages)" and no additional
> packages are installed during the buildSRPMFromSCM step.
> 
> For the build step the 'group install "build"' results in "Install 24
> Packages (+141 Dependent packages)" after which the BRs and their
> dependencies are installed.
> 
> (These numbers are from rawhide.)

So indeed this is true.

However it still takes 6 minutes to perform this step on the ARM
builders, which for some reason are usually chosen for
buildSRPMFromSCM.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW


More information about the devel mailing list