Is %autosetup another unwanted baby of Fedora?

Richard W.M. Jones rjones at
Mon Jul 13 14:01:07 UTC 2015

On Mon, Jul 13, 2015 at 02:39:57PM +0200, Marcin Juszkiewicz wrote:
> Hi
> When I moved to Fedora after years of doing Debian packages I
> noticed that there is no such thing as patch management when it
> comes to Fedora packages. Everyone is using %patch macro with files
> of random patchlevel (some even use reverse patches).

While not answering your question about %autosetup, I want to say this
bit isn't quite true.  Some packages use an external git repo for
patch management, and create the 'Patch...' lines semi-automatically.
(Similar to, but less weird than:

%autosetup only handles half of this use case.  TBH it handles the bit
that was already quite easy to do -- ie. invoking 'git am'.

Copying the patches from git and inserting the Patch lines is the hard
part, and it would be nice to have some standardized tooling for that,
instead of everyone's homebrew '' script.


Richard Jones, Virtualization Group, Red Hat
Read my programming and virtualization blog:
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.

More information about the devel mailing list