[RFC PATCH] Mock multi-config build patch -- prepare

Michael_E_Brown at Dell.com Michael_E_Brown at Dell.com
Wed May 10 21:21:08 UTC 2006


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://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060510/acc0dc28/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mock-multicfg.patch
Type: application/octet-stream
Size: 7600 bytes
Desc: mock-multicfg.patch
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060510/acc0dc28/attachment.obj>


More information about the Fedora-buildsys-list mailing list