I'm thinking the "yum install --source packagename" would do the following:<br>
<br>
1. Download src rpms and dependent libraries required for successfully rebuilding the requested source download(s)<br>
2. Extract the the source tarball to some standard location so the
developer can cd to that dir and be able to immediately do a
./configure && make without errors<br>
<br>
I agree that having this functionality in yum may not be the best
place. But, since yum already handles dependency resolution, how hard
would this functionality really be to add? I just tried
yumdownloader  --source and all it did was download the src rpm to
the current dir and nothing more. This is one step removed from going
to the FTP and downloading the file. I tried yumdownloader --source
yum-utils and it didn't even work. So it's clear yumdownloader does not
have the functionality I desire, nor the functionality that it probably
should have at a bare minimum (that is finding src equivalents of
binary packages).<br>
<br>
As for one tool doing one job well (a dogmatic mantra to begin with)...
yum-utils is a 19K RPM. Is this so much code that it couldn't be
integrated into yum? is someone saying the 19K of code is going to
destroy yum's pristine architecture? So beyond actually adding code to
yum to download the src rpm, would adding step 2. be such a conceptual
leap for a tool that probably should have factored in this
functionality from its inception?<br><br><div><span class="gmail_quote">On 11/27/05, <b class="gmail_sendername">Matthew Miller</b> <<a href="mailto:mattdm@mattdm.org">mattdm@mattdm.org</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, Nov 27, 2005 at 08:17:06PM -0500, Sadda Teh wrote:<br>> Now consider the scenario where the developer can yum install --source<br>> some-package, and have it install the source along with all the dependent<br>
> source packages. Then he would be able to cd to some dir where he can type<br>[...]<br><br>That's a very long, tragic tale. But what in this story suggests that "yum<br>install --source" is so much better than "yumdownloader --source"? Or even
<br>slightly better?<br><br>--<br>Matthew
Miller          
<a href="mailto:mattdm@mattdm.org">mattdm@mattdm.org</a>          <<a href="http://mattdm.org/">http://mattdm.org/</a>><br>Boston
University
Linux      ------>              <<a href="http://linux.bu.edu/">http://linux.bu.edu/</a>><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></blockquote></div><br>