public inbox for cocci@systeme.lip6.fr
 help / color / mirror / Atom feed
* [Cocci] licensing concerns with cocci patches
@ 2012-10-23 21:35 Angelos Oikonomopoulos
  2012-10-23 21:42 ` Julia Lawall
  0 siblings, 1 reply; 10+ messages in thread
From: Angelos Oikonomopoulos @ 2012-10-23 21:35 UTC (permalink / raw)
  To: cocci

> On Tue, Oct 23, 2012 at 8:04 AM, Eitan Adler <lists@eitanadler.com> wrote:
>> On 22 October 2012 13:05, Julia Lawall <julia.lawall@lip6.fr> wrote:
>>> My understanding is that the output of a semantic patch should not be GPL.
>>> But I am not an expert.  In any case, that is the intent.  We would
>>> certainly be happy that the scripts be part of BSD.
>>
>> Awesome. Hopefully I will be able to start gathering a set of useful
>> scripts soon.
>
> So... We should talk a bit more :) Also I'd love to help iron out any
> FUD over licensing issues given that it seems the intent expressed is
> not to enforce requirement of output being GPL derivative.

Hello,

I apologize for not replying in-thread, but I'm only an occasional user 
of coccinelle, so I wasn't subscribed to the list.

The concept that the GPL would apply to the output of spatch, just 
because spatch itself is under the GPL is well beyond far-fetched. By 
the same logic, it could as well apply to the results of a 
search-and-replace in emacs :)

The FSF claims that this is not even legally possible, let alone a 
requirement of the GPL. That goes for any version of the GPL, but I'll 
just link to the GPLv2 FAQ, as that's what coccinelle uses:

https://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.html#GPLOutput

Coccinelle itself does not produce any code, it transforms code 
according to supplied rules. If the rules are under the GPL, again there 
is no requirement about the result of the transformation whatsoever. 
There are numerous clauses in the GPLv2 to support this statement, but 
I'll just quote the 0th one:

"The act of running the Program is not restricted, and the output from 
the Program is covered only if its contents constitute a work based on 
the Program (independent of having been made by running the Program)"

As a general rule of thumb, one should keep in mind that the the GPL is 
concerned with preventing the GPL code itself from becoming proprietary 
and does NOT try to force people to open up their code.

I'm happy that coccinelle is around, I like having it in my toolbox and 
I would like it if even more projects used it (and more semantic patches 
became available). I would not want to see its adoption hindered based 
on some unfounded misconception, nor would I want to see this 
misconception spread to the coccinelle community :)

FWIW, the DragonFlyBSD project (to which I occasionally contribute) has 
been happily using coccinelle semantic patches with good results for a 
while now and I'm glad to hear FreeBSD is going to embrace it further.

Hope this helps,
Aggelos

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [Cocci] licensing concerns with cocci patches
@ 2012-10-22 16:58 Eitan Adler
  2012-10-22 17:05 ` Julia Lawall
  0 siblings, 1 reply; 10+ messages in thread
From: Eitan Adler @ 2012-10-22 16:58 UTC (permalink / raw)
  To: cocci

Hi,

I am interested in adding cocci scripts to the FreeBSD tree as a suite
of scripts that can be used to help find bugs.  I have some concerns
about the license of the "semantic patches" I found.  In particular
quite a few of them are GPLv2 (andand.cocci, ifaddr.cocci,
isnull.cocci, etc). Ordinarily the product of GPL software isn't GPLed
but these seem different as the result is merely a transformation of
patch template.

Is the output of spatch + a GPL semantic patch GPL or can we license
it under a free software license?

-- 
Eitan Adler

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

end of thread, other threads:[~2012-10-23 22:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-23 21:35 [Cocci] licensing concerns with cocci patches Angelos Oikonomopoulos
2012-10-23 21:42 ` Julia Lawall
2012-10-23 22:18   ` Angelos Oikonomopoulos
  -- strict thread matches above, loose matches on Subject: below --
2012-10-22 16:58 Eitan Adler
2012-10-22 17:05 ` Julia Lawall
2012-10-23 15:04   ` Eitan Adler
2012-10-23 15:18     ` Luis R. Rodriguez
2012-10-23 19:18     ` Julia Lawall
2012-10-23 19:32       ` Eitan Adler
2012-10-23 20:39     ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox