public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* Procedure for Patches Merging FreeBSD Code
@ 2017-07-26 14:59 Joel Sherrill
  2017-07-26 19:43 ` Corinna Vinschen
  0 siblings, 1 reply; 3+ messages in thread
From: Joel Sherrill @ 2017-07-26 14:59 UTC (permalink / raw)
  To: newlib, aditya upadhyay

Hi

Gedare, Aditya, and I were discussing that it is useful
during development to have a git branch with a patch
series that adds the unmodified FreeBSD files followed
by a patch series that adds them to the build system
and makes them work. Then you can easily review the
differences against the original source.

Would it be desirable for patches submitted to newlib
to follow this pattern? Or should Aditya submit a
single patch series including the addition and
any modifications?

For sure, the addition change can only add the source
files and not touch the build system. Otherwise
git bisect will break. That can't be allowed if
avoidable.

Thanks.

--joel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Procedure for Patches Merging FreeBSD Code
  2017-07-26 14:59 Procedure for Patches Merging FreeBSD Code Joel Sherrill
@ 2017-07-26 19:43 ` Corinna Vinschen
  2017-07-26 20:29   ` Joel Sherrill
  0 siblings, 1 reply; 3+ messages in thread
From: Corinna Vinschen @ 2017-07-26 19:43 UTC (permalink / raw)
  To: newlib

[-- Attachment #1: Type: text/plain, Size: 1404 bytes --]

On Jul 26 09:59, Joel Sherrill wrote:
> Hi
> 
> Gedare, Aditya, and I were discussing that it is useful
> during development to have a git branch with a patch
> series that adds the unmodified FreeBSD files followed
> by a patch series that adds them to the build system
> and makes them work. Then you can easily review the
> differences against the original source.
> 
> Would it be desirable for patches submitted to newlib
> to follow this pattern? Or should Aditya submit a
> single patch series including the addition and
> any modifications?
> 
> For sure, the addition change can only add the source
> files and not touch the build system. Otherwise
> git bisect will break. That can't be allowed if
> avoidable.

We don't support merges in the newlib-cygwin repo, just the same as in
the binutils-gdb repo.  All changes must be part of a linear history.
The post-receive hook will refuse merges.

You can create branches, but they have a disjunct history and you'd
have to cherry-pick from there for master, so it's not much of an
advantage for the person applying the patches.

Nothing speaks against providing a two step patchset, first including
the original file into newlib, then a second patch adding the newlib
required changes on top.  We can do this as part of the normal review
process.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Procedure for Patches Merging FreeBSD Code
  2017-07-26 19:43 ` Corinna Vinschen
@ 2017-07-26 20:29   ` Joel Sherrill
  0 siblings, 0 replies; 3+ messages in thread
From: Joel Sherrill @ 2017-07-26 20:29 UTC (permalink / raw)
  To: newlib



On 7/26/2017 2:43 PM, Corinna Vinschen wrote:
> On Jul 26 09:59, Joel Sherrill wrote:
>> Hi
>>
>> Gedare, Aditya, and I were discussing that it is useful
>> during development to have a git branch with a patch
>> series that adds the unmodified FreeBSD files followed
>> by a patch series that adds them to the build system
>> and makes them work. Then you can easily review the
>> differences against the original source.
>>
>> Would it be desirable for patches submitted to newlib
>> to follow this pattern? Or should Aditya submit a
>> single patch series including the addition and
>> any modifications?
>>
>> For sure, the addition change can only add the source
>> files and not touch the build system. Otherwise
>> git bisect will break. That can't be allowed if
>> avoidable.
> 
> We don't support merges in the newlib-cygwin repo, just the same as in
> the binutils-gdb repo.  All changes must be part of a linear history.
> The post-receive hook will refuse merges.
> 
> You can create branches, but they have a disjunct history and you'd
> have to cherry-pick from there for master, so it's not much of an
> advantage for the person applying the patches.

I wasn't concerned about this. Managing the work is a local
user issue. It has to be patches sent to the mailing list. :)
> 
> Nothing speaks against providing a two step patchset, first including
> the original file into newlib, then a second patch adding the newlib
> required changes on top.  We can do this as part of the normal review
> process.

If you are OK with it, I personally like doing this because it
encourages and aids in tracking differences from the upstream.

Awesome!

--joel

> Corinna
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-07-26 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-26 14:59 Procedure for Patches Merging FreeBSD Code Joel Sherrill
2017-07-26 19:43 ` Corinna Vinschen
2017-07-26 20:29   ` Joel Sherrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).