<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2015-07-14 10:24 GMT+02:00 Mikolaj Izdebski <span dir="ltr">&lt;<a href="mailto:mizdebsk@redhat.com" target="_blank">mizdebsk@redhat.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/13/2015 02:39 PM, Marcin Juszkiewicz wrote:<br>
&gt; When I moved to Fedora after years of doing Debian packages I noticed<br>
&gt; that there is no such thing as patch management when it comes to Fedora<br>
&gt; packages. Everyone is using %patch macro with files of random patchlevel<br>
&gt; (some even use reverse patches).<br>
&gt;<br>
&gt; %autosetup was created to handle that but probably less than 5% of<br>
&gt; packages use it. Why?<br>
&gt;<br>
&gt; Is it because no one told that it exists? Or maybe because<br>
&gt; implementation has some issues which no one wants to fix? Or other (I<br>
&gt; exclude laziness of package maintainers)?<br>
<br>
</span>I also like how Debian patches their packages (stardardization: quilt,<br>
DEP-3, patch tracker web app, ...) and I was initially quite eager about<br>
%autosetup/%autopatch, but it turned out to be unusable for me.<br>
<br>
I maintain most of patches as commits in private branches of upstream<br>
git repos and generate them with &quot;git format-patch<br>
&lt;latest-release-tag&gt;&quot;. %autosetup and %autopatch don&#39;t work with patches<br>
generated this way, while %patch does.<br>
<br></blockquote><div><br></div><div>Works for me, you need to tell %autosetup that you&#39;re using git with the option -S git<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another (lesser) reason is increased difficulty of backporting spec<br>
files to work with older rpm-build, such as when creating software<br>
collections for older OS.<br>
<br>
I use %autopatch in one of my packages (eclipse-m2e-core) so that I<br>
don&#39;t forget how it works (or doesn&#39;t work :)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mikolaj Izdebski<br>
Software Engineer, Red Hat<br>
IRC: mizdebsk<br>
</font></span><div class="HOEnZb"><div class="h5">--<br>
devel mailing list<br>
<a href="mailto:devel@lists.fedoraproject.org">devel@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/devel</a><br>
Fedora Code of Conduct: <a href="http://fedoraproject.org/code-of-conduct" rel="noreferrer" target="_blank">http://fedoraproject.org/code-of-conduct</a></div></div></blockquote></div><br></div></div>