<br><br><div><span class="gmail_quote">2007/6/27, Todd Zullinger <<a href="mailto:tmz@pobox.com">tmz@pobox.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Richard W.M. Jones wrote:<br>> Basic question about mock:<br>><br>> I want to test build ocaml-findlib[1] using mock.  However this<br>> build-requires ocaml>= 3.10.0 which has been packaged[2] but isn't
<br>> in Fedora.  So (I'm guessing) I want to do the mock chroot thing,<br>> get the Fedora packages required, then install one or more of my own<br>> RPMs, then do the test build.<br>><br>> How can I do this?
</blockquote><div><br>I'll mock your srpm (by uploaded you package on my personnal repository), if you want, i can send you my .cfg modified (which point to my repository) to test it too.<br>As you want ;)<br>However set up a local repository is an excelent point too.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">One way to do this is to edit the mock config file for the target<br>dist.  In the 
yum.conf section, create a new repo (or override the<br>local one).  For example, I've added this in some of my configs:<br><br>[scratch]<br>name=scratch<br>baseurl=file:///path/to/repo<br><br>Then, put your ocaml packages in /path/to/repo and run createrepo on
<br>that dir to create the metadata that yum needs.  Now when you call<br>mock it will look in your scratch repo as well as the standard ones<br>and it should use your updated ocaml packages.<br><br>--<br>Todd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: 
<a href="http://www.pobox.com/~tmz/pgp">www.pobox.com/~tmz/pgp</a><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>I got stopped by a cop the other day.  He said, "Why'd you run that<br>
stop sign?"  I said, "Because I don't believe everything I read."<br>    -- Stephen Wright<br><br><br>--<br>fedora-devel-list mailing list<br><a href="mailto:fedora-devel-list@redhat.com">fedora-devel-list@redhat.com
</a><br><a href="https://www.redhat.com/mailman/listinfo/fedora-devel-list">https://www.redhat.com/mailman/listinfo/fedora-devel-list</a><br><br></blockquote></div><br><br clear="all"><br>-- <br>Xavier.t Lamien<br>--<br>French Fedora Ambassador
<br>Fedora/EPEL Contributor      | <a href="http://fedoraproject.org/wiki/XavierLamien">http://fedoraproject.org/wiki/XavierLamien</a><br>GPG-Key ID: F3903DEB<br>Fingerprint: 0F2A 7A17 0F1B 82EE FCBF 1F51 76B7 A28D F390 3DEB