[RFC PATCH] Mock multi-config build patch -- implement multi-config
Michael_E_Brown at Dell.com
Michael_E_Brown at Dell.com
Wed May 10 22:04:28 UTC 2006
And here is the multi-srpm, multi-config patch, built on top of the
previous two. The changes are relatively minor, just re-indenting the
last part of main(), no significant code changes except changing
options.chroot to an array and adding a loop.
Please let me know what you think.
--
Michael
________________________________
From: fedora-buildsys-list-bounces at redhat.com
[mailto:fedora-buildsys-list-bounces at redhat.com] On Behalf Of
Michael_E_Brown at Dell.com
Sent: Wednesday, May 10, 2006 4:21 PM
To: fedora-buildsys-list at redhat.com
Subject: [RFC PATCH] Mock multi-config build patch -- prepare
All,
Here is stage one of a patch series to implement
multi-config builds with mock. I believe this patch stands on its own,
so I am sending it separately. It is applied on top of the earlier patch
today to do multi-srpm builds.
The patch simply re-arranges main() by taking and
putting several sections into their own function. For example, the clean
and prep sections were very similar and have been factored into their
own function. The setting of defaults for config_opts is moved into its
own function.
The result is no functional change to the operation of
mock, but it makes the next patch in my series much easier, which is the
addition of multiple config builds, like this:
$ mock -r CFG1 -r CFG2 -r CFG3 -r CFG4 ... srpm1 srpm2
srpm3 ...
The next patch in the series will be a straightforward
patch to implement the above on top of this patch. The last patch I
would like to send would be to be able to run the prep() sections for
the different configs in parallel (simple, via fork()) to reduce setup
time.
Comments welcome.
--
Michael
<<mock-multicfg.patch>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/buildsys/attachments/20060510/58758770/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mock-multicfg2.patch
Type: application/octet-stream
Size: 3905 bytes
Desc: mock-multicfg2.patch
Url : http://lists.fedoraproject.org/pipermail/buildsys/attachments/20060510/58758770/attachment.obj
More information about the buildsys
mailing list