<div dir="ltr"><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)">Hello,</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)">
<br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"><i><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">That being </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">said, I do not know why the antlr *.jar file includes </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">the Python code, as it does not need to. If the antlr </span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">upstream distributes the binary *.jar file with it, this</span><br style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">will not be a problem.</span></i><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)">
<i><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px"><br></span></i></div><div class="gmail_default"><font face="arial, sans-serif">This sentence is still confusing. It is a fact that antlr2-*.jar does not contain <u>any</u> Python code. However, it contains the Java part of the pyAntlr code generator plugin (path: antlr/actions/python/**). This code is written by me, however, nowhere are the words "copyright" or "license" mentioned. Therefore I conclude, that this code</font></div>
<div class="gmail_default"><font face="arial, sans-serif">is fully covered by LICENSE.txt listed in the root of antlr-*.tar.gz (or other distributions listed at <a href="http://www.antlr2.org/download.html">http://www.antlr2.org/download.html</a>).</font></div>
<div class="gmail_default"><font face="arial, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, sans-serif">Thus there is a remaining Python part in "lib/python", part of the source code distribution (<a href="http://www.antlr2.org/download/antlr-2.7.7.tar.gz">http://www.antlr2.org/download/antlr-2.7.7.tar.gz</a>). Indeed, the license details are there in a bad shape.</font></div>
<div class="gmail_default"><br></div><div class="gmail_default"><font face="arial, sans-serif">My proposal to get rid of the problem is:</font></div><div class="gmail_default"><font face="arial, sans-serif"><br></font></div>
<div class="gmail_default"><font face="arial, sans-serif">(a) pyANTLR-*.jar => The pyANTLR code generator plugin for Python written in Java, depending on antlr-*.jar. Technically, this would be the "</font><span style="font-family:arial,sans-serif">antlr/actions/python/**" part found in the antlr*.jar file</span></div>
<div class="gmail_default"><span style="font-family:arial,sans-serif">(b) pyANTLR.zip => The pyANTLR Python library. Technically, this would be the "</span><span style="font-family:arial,sans-serif">lib/python/**" part of antlr-*.tar.gz (or other source code distribution) modified to have a proper license while otherwise unchanged.</span></div>
<div class="gmail_default"><span style="font-family:arial,sans-serif"><br></span></div><div class="gmail_default"><font face="arial, sans-serif">You, Debian, you would then ignore (or wipe) the pyANTLR part of the original antlr-2.* distribution and instead add at least (b) to your system. </font></div>
<div class="gmail_default"><br></div><div class="gmail_default">Your comments please.</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)"><br></div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)">
Kind regards,</div><div class="gmail_default" style="font-family:'trebuchet ms',sans-serif;color:rgb(102,102,102)">Wolfgang Häfelinger</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 6, 2014 at 10:38 PM, Thorsten Glaser <span dir="ltr"><<a href="mailto:tg@mirbsd.de" target="_blank">tg@mirbsd.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">wolfgang haefelinger dixit:<br>
<div class=""><br>
>Allright, so what is the procedure now to use<br>
><a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">http://www.gnu.org/copyleft/gpl.html</a>?<br>
<br>
</div>⇒ generic part<br>
<br>
As copyright owner, all you have to do is to ensure that<br>
the people distributing antlr include a LICENSE.txt file<br>
in the Python subdirectory of their distribution which<br>
states this fact.<br>
<br>
You should also specify which version(s) of the licence.<br>
For example:<br>
• GPL version 1 only<br>
• GPL version 1 or later<br>
• GPL version 2 only<br>
• GPL version 2 or later<br>
• GPL version 3 only<br>
• GPL version 3 or later<br>
<br>
The “only” ones lead to interoperability problems, so<br>
I suggest an “or later” version, as your software is<br>
something usually combined with other code, i.e. a<br>
library of sorts.<br>
<br>
Using the GNU GPL will also make (the Python part of)<br>
antlr incompatible with licences such as the EPL, which<br>
are unfortunately common in the Java™ world. That being<br>
said, I do not know why the antlr *.jar file includes<br>
the Python code, as it does not need to. If the antlr<br>
upstream distributes the binary *.jar file with it, this<br>
will not be a problem.<br>
<br>
⇒ Debian part<br>
<br>
The Debian package maintainers can add the relevant<br>
information, and possibly separate the Python part from<br>
the Java™ part, by themselves, if you notify them of<br>
this decision of yours (i.e. to use the GPL and which<br>
versions). For this, replying to the Debian bug eMail<br>
address is enough.<br>
<br>
Of course, Debian would want to stay in sync with<br>
upstream on this.<br>
<br>
⇒ Upstream part<br>
<br>
Please contact the people who develop antlr 2.x and<br>
notify them of your decision, and ask them to release<br>
an updated antlr version including the licence file,<br>
and to prominently state this erratum on their website.<br>
<br>
⇒ Other antlr versions<br>
<br>
I’ve only looked at antlr 2.x (since coworkers at the<br>
dayjob wanted to use this in a project of theirs, and<br>
since it is in Debian). If antlr 3.x and/or 4.x also<br>
include your code, please notify the people developing<br>
those as well.<br>
<br>
<br>
Thanks,<br>
//mirabilos<br>
<span class="HOEnZb"><font color="#888888">--<br>
I believe no one can invent an algorithm. One just happens to hit upon it<br>
when God enlightens him. Or only God invents algorithms, we merely copy them.<br>
If you don't believe in God, just consider God as Nature if you won't deny<br>
existence. -- Coywolf Qi Hunt<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Wolfgang Häfelinger<br>häfelinger IT - Applied Software Architecture<br><a href="http://www.haefelinger.it" target="_blank">http://www.haefelinger.it</a><div>
+49 1520 32 52 981<br>(+31 648 27 61 59) <br></div></div>
</div>