This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Cherry Picking git Patches and ChangeLog
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>, Chris Johns <chrisj at rtems dot org>
- Date: Sun, 15 Mar 2015 20:14:38 -0500
- Subject: Re: Cherry Picking git Patches and ChangeLog
- Authentication-results: sourceware.org; auth=none
- References: <550609D6 dot 2020003 at oarcorp dot com> <874mplvq2i dot fsf at igel dot home> <F9484EDF-26AF-478A-B61E-40FBC1A27CCC at oarcorp dot com> <87wq2huamh dot fsf at igel dot home>
On 3/15/2015 6:03 PM, Andreas Schwab wrote:
> Joel Sherrill <joel.sherrill@oarcorp.com> writes:
>
>> On March 15, 2015 5:44:21 PM CDT, Andreas Schwab <schwab@linux-m68k.org> wrote:
>>> Joel Sherrill <joel.sherrill@oarcorp.com> writes:
>>>
>>>> I know that this is really a git/ChangeLog/patch question but
>>>> since it comes up in context of gdb, I am asking here. How
>>>> does one deal with patches that would apply cleanly except
>>>> for ChangeLog?
>>> git-merge-changelog can help here.
>> That will help if we want to manually touch the patches and update them for the tarball.
> Please explain what you are trying to do. Cherry picking will use the
> configured merge driver.
RTEMS has a Python based tool building framework similar to BSD ports.
It has a "recipe" to build a package like gcc, binutils, or gdb. We usually
start with a release tarball and apply patches. The patches can be from
RTEMS which aren't ready to be upstreamed or not merged upstream.
These patches are hosted on rtems.org in a special git repo.
But once they are merged, we like to fetch them from the upstream repo
or patch review system.
In this case, the patch directly extracted from git on the head doesn't
apply with patch to the contents of the release tarball.
I didn't see an option to patch to exclude some files so it seems like
the only option is to use git to cherry-pick the patches manually
and create a patch set.
We were trying to go directly from git/patchworks -> patch onto
contents from tar file.
Does that make sense?
> Andreas.
>
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985