git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Contribution licensing question(s)
@ 2017-11-01 15:50 Elijah Newren
  2017-11-01 18:32 ` Stefan Beller
  2017-11-01 18:38 ` Jeff King
  0 siblings, 2 replies; 4+ messages in thread
From: Elijah Newren @ 2017-11-01 15:50 UTC (permalink / raw)
  To: Git Mailing List

Hi,

My employer has a new-ish open-source-contribution process, and is
curious about some licensing question(s) before I submit a few patch
series.

Background: git's README.md file points out that some parts of git are
under a license other than GPLv2 (while still GPLv2-compatible),
though it doesn't state which one(s) or what a contributor might want
to do if they want to grant permission under one of those more
permissive license(s). Also, I seem to recall that years ago there
were requests to make code available under a slightly more permissive
license to allow re-usage in jgit and perhaps other projects, though I
can't find any trace of this in the codebase.  git's COPYING file has
wording suggesting how to make a license transition (to GPLv3) easier,
but only considers completely new files as opposed to (significant)
modifications to existing files.

I'm not sure whether my specific git contributions would matter to
jgit (which we also use internally, both directly and indirectly), but
generally, is contributing under a more permissive GPLv2-compatible
license to permit re-usage in other projects like jgit (or for easing
future license switches) still relevant?  If so, which license(s) have
folks gravitated towards for these contributions, and how would one
mark their submitted patches?

Thanks,
Elijah

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

* Re: Contribution licensing question(s)
  2017-11-01 15:50 Contribution licensing question(s) Elijah Newren
@ 2017-11-01 18:32 ` Stefan Beller
  2017-11-01 18:38 ` Jeff King
  1 sibling, 0 replies; 4+ messages in thread
From: Stefan Beller @ 2017-11-01 18:32 UTC (permalink / raw)
  To: Elijah Newren; +Cc: Git Mailing List

On Wed, Nov 1, 2017 at 8:50 AM, Elijah Newren <newren@gmail.com> wrote:
> Hi,
>
> My employer has a new-ish open-source-contribution process, and is
> curious about some licensing question(s) before I submit a few patch
> series.

cool. :)

> Background: git's README.md file points out that some parts of git are
> under a license other than GPLv2 (while still GPLv2-compatible),

e.g. xdiff/* seems to have headers indicating it is LGPL.
otherwise I suspect contrib/ to be a fun place to look for different licenses.
IIUC, the files in builtin/ as well as the root of the git repo are all GPLv2,
though I am not your lawyer.

> though it doesn't state which one(s) or what a contributor might want
> to do if they want to grant permission under one of those more

I'd be surprised if we had anything more permissive than GPL,
e.g. BSD, APACHE in the tree outside of contrib/.

> permissive license(s). Also, I seem to recall that years ago there
> were requests to make code available under a slightly more permissive
> license to allow re-usage in jgit

JGit is in Java, so you have to rewrite the code anyway?

> and perhaps other projects, though I
> can't find any trace of this in the codebase.  git's COPYING file has
> wording suggesting how to make a license transition (to GPLv3) easier,
> but only considers completely new files as opposed to (significant)
> modifications to existing files.

I think going to GPLv3 is a pipe dream by now:

  git shortlog -sne | wc -l
  1589

It will be hard to identify all the contributors that had meaningful
contributions (more than a typofix?) and ask them if they agree
on a re-licensing of the code they submitted at the time.

These potential contributors may have changed their email address
(e.g. by switching jobs, whereas the copyright is with the employer
anyways, usually. :/)

> I'm not sure whether my specific git contributions would matter to
> jgit (which we also use internally, both directly and indirectly), but
> generally, is contributing under a more permissive GPLv2-compatible
> license to permit re-usage in other projects like jgit (or for easing
> future license switches) still relevant?

Contributions to git ask for your 'sign off', which ensures that
the conditions in https://developercertificate.org/ are met.
The first point points out "open source license indicated in the file".
However most files (e.g. git.c) have no license header and just
assume the license as in COPYING.

>  If so, which license(s) have
> folks gravitated towards for these contributions, and how would one
> mark their submitted patches?

That is an interesting question. When adding new files, maybe
by a file header? Existing files are more interesting though.

Stefan

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

* Re: Contribution licensing question(s)
  2017-11-01 15:50 Contribution licensing question(s) Elijah Newren
  2017-11-01 18:32 ` Stefan Beller
@ 2017-11-01 18:38 ` Jeff King
  2017-11-01 18:59   ` Elijah Newren
  1 sibling, 1 reply; 4+ messages in thread
From: Jeff King @ 2017-11-01 18:38 UTC (permalink / raw)
  To: Elijah Newren; +Cc: Git Mailing List

On Wed, Nov 01, 2017 at 08:50:00AM -0700, Elijah Newren wrote:

> Background: git's README.md file points out that some parts of git are
> under a license other than GPLv2 (while still GPLv2-compatible),
> though it doesn't state which one(s)

I think this note is mostly about code we've imported from elsewhere.
For example, libxdiff seems to be under LGPL.

> or what a contributor might want
> to do if they want to grant permission under one of those more
> permissive license(s).

If it's a whole file or subsystem that can be used standalone, I think
it would make sense to mark the copyright at the top of the file (like
xdiff does).

For smaller bits or changes to GPL'd code, it's not clear to me if you
can meaningfully dual-license them. I.e., I think you hit a question of
whether small changes are copyrightable in themselves or if they're
simply a derived work of Git. I'll leave that one to people more clueful
about legal issues.

> Also, I seem to recall that years ago there
> were requests to make code available under a slightly more permissive
> license to allow re-usage in jgit and perhaps other projects, though I
> can't find any trace of this in the codebase.

This was mostly done for the libgit2 project, which uses GPL with a
linking exception:

  https://github.com/libgit2/libgit2/blob/master/COPYING

When that project started, they asked for dual-license permission from
various git.git contributors, which is documented in that repo:

  https://github.com/libgit2/libgit2/blob/master/git.git-authors

> I'm not sure whether my specific git contributions would matter to
> jgit (which we also use internally, both directly and indirectly), but
> generally, is contributing under a more permissive GPLv2-compatible
> license to permit re-usage in other projects like jgit (or for easing
> future license switches) still relevant?  If so, which license(s) have
> folks gravitated towards for these contributions, and how would one
> mark their submitted patches?

Hopefully the above answers most of these questions. But I think in
general the approach is not "license it differently in git.git", but
"grant those other projects a different license to use your code, too".

-Peff

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

* Re: Contribution licensing question(s)
  2017-11-01 18:38 ` Jeff King
@ 2017-11-01 18:59   ` Elijah Newren
  0 siblings, 0 replies; 4+ messages in thread
From: Elijah Newren @ 2017-11-01 18:59 UTC (permalink / raw)
  To: Jeff King; +Cc: Git Mailing List

Hi Peff,

On Wed, Nov 1, 2017 at 11:38 AM, Jeff King <peff@peff.net> wrote:

> This was mostly done for the libgit2 project, which uses GPL with a
> linking exception:
>
>   https://github.com/libgit2/libgit2/blob/master/COPYING
>
> When that project started, they asked for dual-license permission from
> various git.git contributors, which is documented in that repo:
>
>   https://github.com/libgit2/libgit2/blob/master/git.git-authors

Ah, thanks, not sure why I had mis-remembered that as being a jgit
thing.  Thanks for jogging my memory.  I think that (and your comment
to just grant other projects a different license) answers the main
question; I'll take it back and see what they say.

Thanks,
Elijah

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

end of thread, other threads:[~2017-11-01 18:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-01 15:50 Contribution licensing question(s) Elijah Newren
2017-11-01 18:32 ` Stefan Beller
2017-11-01 18:38 ` Jeff King
2017-11-01 18:59   ` Elijah Newren

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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).