Re: Cherry Picking git Patches and ChangeLog

Joel Sherrill <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>

On 3/15/2015 6:03 PM, Andreas Schwab wrote:
> Joel Sherrill <[email protected]> writes:
>
>> On March 15, 2015 5:44:21 PM CDT, Andreas Schwab <[email protected]> wrote:
>>> Joel Sherrill <[email protected]> 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
[email protected]        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.