Using git for patch management in Fedora

Miroslav Suchý msuchy at redhat.com
Thu Nov 21 08:29:35 UTC 2013


On 11/19/2013 11:22 AM, Richard W.M. Jones wrote:
> Some of these packages have invented home-brewed methods to generate
> the Patch lines in the spec file, eg:

FYI: Several projects use Tito [1], which allows you to operate on (unpacked) git tree (usually clonned). Do changes 
directly in git.
And if you call simply `tito build --rpm` with builder configured as
`tito.distributionbuilder.DistributionBuilder`. It will create pristine tar ball from last upstream tag (and that tar 
have same timestamps as upstream and therefore md5 will match). And automatically modify spec (in temporary directory) with:
Patch0: foo-1.2-1-to-foo-1.2-2.patch
Patch1: foo-1.2-1-to-foo-1.2-3.patch
Where each patch is concated commits between tagged releases.

You can find more information in:
yum install tito
man tito.props
man tito

And BTW Tito have interface to Fedora dist-git (man releasers.conf).

[1] https://github.com/dgoodwin/tito
-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Software Engineer, #brno, #devexp, #fedora-buildsys


More information about the devel mailing list