I still use the old &quot;make sources&quot; way. Pretty much copied from the Fedora set up, with the &quot;lookaside&quot; repository for the files.<div><br></div><div>Here&#39;s how I understood it, please correct me if I&#39;m wrong:</div>

<div>Koji checks out the package subdir and executes &quot;make sources&quot; there. The Makefile within the subdir of the package in svn references a &quot;Makefile.common&quot; that lives in &quot;trunk/common&quot;. The Makefile retrieves the &quot;Makefile.common&quot; from svn and loads it. Makefile.common then retrieves the sources file and the sources.</div>

<div><div>To download them it uses the REPOSITORY variable, i.e. the svn host. It fetches the sources like this:</div><div><a href="http://REPOSTITORY_HOST/repo/pkgs/">http://REPOSTITORY_HOST/repo/pkgs/</a>&lt;packagename&gt;/&lt;source file name&gt;/&lt;md5sum of source file&gt;/&lt;source file name&gt;. If the md5sum matches, &quot;make sources&quot; returns and koji proceeds with building.<br>

<br>As Jesse wrote back then, if you don&#39;t want to do it that way, you&#39;re free to specify any other command that will download the sources. For me it was a good start without getting too much into fedpkg stuff.</div>

<div><br></div><div>Andreas.<br><br><div class="gmail_quote">On Fri, Apr 20, 2012 at 18:34, Moray Henderson <span dir="ltr">&lt;<a href="mailto:Moray.Henderson@ict-software.org">Moray.Henderson@ict-software.org</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello again,<br>
<br>
I&#39;m trying to understand how Koji does things in order to migrate from our<br>
previous home-made build system with svn repositories to Koji.  Most of our<br>
stuff is in svn as source files, not tarballs, so I&#39;ll have to implement a<br>
&quot;make sources&quot;.  I was looking in the Fedora git repositories, but couldn&#39;t<br>
see how this is actually done.  I can see how it _used_ to be done: with a<br>
common package containing a Makefile.common.  However that doesn&#39;t seem to<br>
be available any more.<br>
<br>
I&#39;ve found fedora-packager and fedpkg; there was a thread here in 2010<br>
(<a href="http://www.mail-archive.com/buildsys@lists.fedoraproject.org/msg00619.html" target="_blank">http://www.mail-archive.com/buildsys@lists.fedoraproject.org/msg00619.html</a>)<br>
which suggested that they configured Koji to issue the command to get the<br>
sources.  However, that&#39;s &quot;allowed_scms&quot; in kojid.conf, and I can&#39;t see<br>
anything in either package now which modifies that.<br>
<br>
So basically I&#39;d really like to know the steps that Fedora&#39;s Koji goes<br>
through to build packages like anaconda - which has an old Makefile, and has<br>
no URL to say where to find the sources.<br>
<br>
<br>
Moray.<br>
&quot;To err is human; to purr, feline.&quot;<br>
<br>
<br>
<br>
<br>
<br>
<br>
--<br>
buildsys mailing list<br>
<a href="mailto:buildsys@lists.fedoraproject.org">buildsys@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/buildsys" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/buildsys</a></blockquote></div><br></div></div>