proposed mock changes (diff)

Clark Williams williams at redhat.com
Mon Jul 17 20:57:46 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jason L Tibbitts III wrote:
>>>>>> "MEB" == Michael E Brown <Michael_E_Brown at Dell.com> writes:
>
> MEB> Can rpmlint just be done outside of mock (using mock chroot, for
> MEB> example)?
>
> Yes, as long as mock continues to give me a way to run a command in
> the chroot and some equivalent of "mock-helper yum".  I was just
> asking for a way to do it, not that it actually be added as base
> functionality.

Well, there I was about to tell you to do this:

$ mock --no-clean chroot yum install foo
$ mock --no-clean chroot rpmlint -vi foo

Then I thought, hey, I should try that first (what a concept, eh?). I
did and about that time I realized that we don't install yum into the
chroot (chroot manipulations occur outside the chroot).  So what I did
above won't work.

Now, I really don't like the idea of adding *anything* to the default
build chroot (other than what's required to build a package). It's
slow enough as it is and for the most common usage (plague/mock
builds) we don't want anything except what's absolutely needed. So,
how would we go about managing a chroot for tasks like testing? Do we
add an 'install' command to install stuff from the configured
repositories into the chroot, like this:

$ mock install rpmlint

Or do we do something else? Do we make tester's put together their own
cfg with a modified buildsys-build rpm that includes the packages they
need? Is there a simpler mechanism for someone that wants a chroot for
testing?

Clark





Clark

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEu/nKHyuj/+TTEp0RAtWJAJsEfykRVC3RX/DXKibbf1zsBinEbACfYYDX
Zd3ifqYv65iMf+zFvdDo1JM=
=Clon
-----END PGP SIGNATURE-----




More information about the Fedora-buildsys-list mailing list