FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development

 
 
LinkBack Thread Tools
 
Old 09-06-2011, 02:16 PM
Richard Shaw
 
Default Best practices for patch management on RPM based packages?

Most of the packages I work with have very few patches so it's not all
that difficult, but there are a couple of packages I'm working with
that have a lot of patches and one of them has a very active upstream
(which is a good thing!) but that also means that the patches need
frequent adjustment.

I like the idea of quilt but I can't seem to find the magic recipe to
get it to integrate with rpmbuild.

Any ideas?

Thanks,
Richard
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-06-2011, 02:29 PM
Panu Matilainen
 
Default Best practices for patch management on RPM based packages?

On 09/06/2011 05:16 PM, Richard Shaw wrote:
> Most of the packages I work with have very few patches so it's not all
> that difficult, but there are a couple of packages I'm working with
> that have a lot of patches and one of them has a very active upstream
> (which is a good thing!) but that also means that the patches need
> frequent adjustment.
>
> I like the idea of quilt but I can't seem to find the magic recipe to
> get it to integrate with rpmbuild.

There's a long-standing RFE to integrate quilt/git/etc into rpmbuild to
ease the patch management, I just never seem to get around to it. There
are things that can make it easier already though, for example:

https://rwmj.wordpress.com/2011/08/09/nice-rpm-git-patch-management-trick/

Also if you're just tired and bored with having to refer to each patch
twice just to get it applied, the %{patches} macro can help there too as
long as all the patches can be applied with the same flags, you can do
something like this:

%setup
for p in %{patches}; do
patch -p1 < ${p} || exit 1
done

- Panu -
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 
Old 09-06-2011, 02:38 PM
Paul Wouters
 
Default Best practices for patch management on RPM based packages?

On Tue, 6 Sep 2011, Richard Shaw wrote:

> Most of the packages I work with have very few patches so it's not all
> that difficult, but there are a couple of packages I'm working with
> that have a lot of patches and one of them has a very active upstream
> (which is a good thing!) but that also means that the patches need
> frequent adjustment.
>
> I like the idea of quilt but I can't seem to find the magic recipe to
> get it to integrate with rpmbuild.

The best is always to convince upstream to take your patch. Did you talk
to them? Why are they not merging in the patches?

For some packages I maintain, most of the differences are packaging related,
and I try to convince upstream to use a packaging/fedora/ directory, so I
can give them the updates to sync. (and I do the same for those packages I
am actually upstream for, such as openswan and xl2tpd)

Paul
--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
 

Thread Tools




All times are GMT. The time now is 12:39 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org