Running rpmlint within mock

Jason L Tibbitts III tibbs at math.uh.edu
Fri Jul 14 22:48:03 UTC 2006


>>>>> "JK" == Jesse Keating <jkeating at j2solutions.net> writes:

JK> Why do you need to install the package?  rpmlint works on the
JK> binary and srpm.

Because I was told that is the only way rpmlint can run certain
checks.  The point is that in order to do a proper review, I should
install the package but I just cannot install everything I review on
my build host.

JK> I think we really need to separate the idea of Building and
JK> Testing.  Mock is a build tool, not a test tool.

The whole point is that mock already has everything necessary and
pregenerated.  It has the chroot just sitting there.  It has the
security infrastructure and the procedures for doing things within the
chroot already done.  It seems to me to be terribly foolish to
duplicate that.

How about this: does mock provide (or could it provide) a way for me
to install a couple of packages and run a command within the chroot?
Or is this relatively simple to do safely without using mock?  Forget
about rpmlint; maybe I need this for debugging or to figure out why
something isn't building.

 - J<




More information about the Fedora-buildsys-list mailing list