Using git for patch management in Fedora

Richard W.M. Jones rjones at redhat.com
Tue Nov 19 12:14:42 UTC 2013


On Tue, Nov 19, 2013 at 12:51:29PM +0100, Karel Zak wrote:
> On Tue, Nov 19, 2013 at 10:51:01AM +0000, Daniel P. Berrange wrote:
> > Yep, I've done the same thing for all the packages I maintain in Fedora
> > and RHEL too. It makes maintaining RPMs soo much easier, particularly
> > when you have lots of patches to manage. The script I use is 
> > 
> >   http://pkgs.fedoraproject.org/cgit/libvirt-sandbox.git/tree/update-patches.pl
>  
> Cool. 
> 
> It would be nice to improve the script to read "References:" or
> "Addresses:" lines from the git commit messages and use the lines as
> comments for Patch%d: in the SPEC file. Something like:
> 
> # https://bugzilla.redhat.com/show_bug.cgi?id=850355
> Patch123: 0001-foo-bar.patch
> 
> Maybe it would be also possible to use the URL to ask bugzilla for 
> bug Id and Subject and then generate SPEC %changelog :-)

The erlang patches script also reads various information from the
commit comments too.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming blog: http://rwmj.wordpress.com
Fedora now supports 80 OCaml packages (the OPEN alternative to F#)


More information about the devel mailing list