Red Hat Bugzilla – Bug 966985
RFE: mock: please support stopping after the %prep stage
Last modified: 2014-11-18 11:24:24 EST
Created attachment 752588 [details]
Unpacking source RPMs requires a build root with the build requires installed, so it makes sense to use mock for that. But there is no direct support for copying the results of the %prep stage out of the build root, so I wrote the attached helper script. It would be nice to have similar functionality directly in mock.
Created attachment 752628 [details]
Fix target directory handling.
--copyout does not help you here?
(In reply to Miroslav Suchý from comment #2)
> --copyout does not help you here?
I'm already using that, but I don't see an option to stop the build after the %prep stage.
Well, there is --short-circuit option:
Use rpmbuild's short-circuit mechanism to skip already executed stages of build. It doesn't produce
RPMs, it's useful only for debugging packaging. Implies --no-clean. STAGE specifies which stage will
be executed as the first. Available values: build, install, binary
I just extended it to allow 'prep' which translate to -bp.
Commit in msuchy-work branch as bd15c59
Fixed in mock-1.2.0, which just landed in rawhide.
Unfortunately, this doesn't work in mock-1.2.0-1, because the prep choice is missing in option parser, so although the code for it is OK, there's no way to invoke it with the commandline option. I sent patch upstream
Commited as 9d7ad7b.
mock-1.2.2 has been release