Re: Using git for patch management in Fedora

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2013-11-19 at 10:22 +0000, Richard W.M. Jones wrote:
> For (2) I would suggest a lightweight technique where git-managed
> patches are marked in the spec file using:
> 
>   ### GIT-MANAGED-PATCHES ###
>   ### END-GIT-MANGED-PATCHES ###
> 
> and a simple script that replaces everything between those marks with
> PatchXXXX lines.  The script could be adapted from copy-patches.sh
> (see above).
> 
> To apply the patches, a standard RPM macro could be created:
> 
>   %prep
>   %setup -q
>   %{git_apply_patches}
> 
> which would expand to something like:
> 
>   git init
>   git config user.email "%{name}-owner@xxxxxxxxxxxxxxxxx"
>   git config user.name "%{name}"
>   git add .
>   git commit -a -q -m "%{version} baseline"
>   git am %{patches}

Or maybe we could start using %autosetup ?

  http://www.rpm.org/wiki/PackagerDocs/Autosetup


-- 
Mathieu


-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux