Red Hat Bugzilla – Bug 663203
[RFE] mock SRPM validation
Last modified: 2011-08-15 21:43:28 EDT
Description of problem:
Currently there is no validation of sources supplied in mock builds. Publican should detect mock and use rpmlint to validate the source RPM.
Version-Release number of selected component (if applicable):
Invalid SRPMs are use and generate invalid RPMs
Invalid SRPMS are detected and rejected.
Added call to rpmlint when mock is detected. Build will croak if rpmlint has errors.
Fixed in revision 1690
Back ported to branches/publican-2x
Committed revision 1800.
Verified on Publican 2.6-0.t2
What on earth for?
We use publican to build our in-tree docs, but its now barfing in fedora-15 because we have an unavoidable and completely unrelated rpmlint error.
This is in addition to being forced into having a versioned build dependancy on publican.
Adding some clarifications after an IRC chat with Ryan:
The upstream project is Pacemaker and the command we're running from the Makefile is:
$(PUBLICAN) build --publish --langs=all --formats=$(DOCBOOK_FORMATS)
The SRPM publican is checking in this case is the pacemaker one, since the docs are in the same SRPM as the code. So when rpmlint complains about something in the code, it causes publican abort.
Ryan explained to me why the checks were necessary, but perhaps they could be limited to the "package" command.