I still use the old "make sources" way. Pretty much copied from the Fedora set up, with the "lookaside" repository for the files.<div><br></div><div>Here's how I understood it, please correct me if I'm wrong:</div>
<div>Koji checks out the package subdir and executes "make sources" there. The Makefile within the subdir of the package in svn references a "Makefile.common" that lives in "trunk/common". The Makefile retrieves the "Makefile.common" 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><packagename>/<source file name>/<md5sum of source file>/<source file name>. If the md5sum matches, "make sources" returns and koji proceeds with building.<br>
<br>As Jesse wrote back then, if you don't want to do it that way, you'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"><<a href="mailto:Moray.Henderson@ict-software.org">Moray.Henderson@ict-software.org</a>></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'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'll have to implement a<br>
"make sources". I was looking in the Fedora git repositories, but couldn'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't seem to<br>
be available any more.<br>
<br>
I'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's "allowed_scms" in kojid.conf, and I can't see<br>
anything in either package now which modifies that.<br>
<br>
So basically I'd really like to know the steps that Fedora'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>
"To err is human; to purr, feline."<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>