Bug 190913

Summary: ktorrent tar missing Messages.sh
Product: [Applications] ktorrent Reporter: Jonathan Riddell <jr>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: normal CC: modax, rdieter
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonathan Riddell 2009-04-28 14:18:31 UTC
Version:            (using KDE 4.2.2)
Installed from:    Ubuntu Packages

The ktorrent-3.2.1.tar.bz2 release tar does not contain Messages.sh.  Possibly it is removed in the release scripts.  This is part of the build system and as such is  required to be released along with the rest of the sources to be compliant with the GPL as well as normal open source development practice.
Comment 1 Joris Guisson 2009-04-28 14:43:14 UTC
Messages.sh is stripped out by the release scripts. Lets take a look at the GPL :

"The source code for a work means the preferred form of the work for
making modifications to it.  For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable.  However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable."

So what needs to be included is:

"the scripts used to control compilation and installation of the executable"

Messages.sh is not needed compile or install ktorrent, so is not necessary to include this.
Comment 2 Joris Guisson 2009-04-28 14:44:01 UTC
See http://www.fsf.org/licensing/licenses/info/GPLv2.html section 3 for the text quoted above.
Comment 3 Jonathan Riddell 2009-04-28 14:47:57 UTC
The tar includes translations, it should include the scripts used to bulid those translations.

What's the rationale for removing the Messages.sh file?
Comment 4 Joris Guisson 2009-04-28 18:12:11 UTC
Messages.sh only generates pot files, it does not build translations, that is done by gettext.

The rationale is that you do not need it to compile or use ktorrent.
Comment 5 Jonathan Riddell 2009-04-29 01:50:20 UTC
GPL 3 says '  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.'

The .po files are included in the tar, they are from a .pot file generated by the Messages.sh file.

KDE licence policy requires code be distributed under GPL 2 and 3.

Regardless of quoting legal texts though free software means giving your downstreams the ability to do what they want with the code, in our case we don't change any strings but we do expect that freedom.
Comment 6 Jonathan Riddell 2009-04-29 02:22:26 UTC
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526067
Comment 7 Modestas Vainius 2009-04-29 09:33:57 UTC
How can you prove that this particular script is used to generate those files? Typically When I create a tarball for a snapshot of dev release, I run a few simple commands to fetch translations from svn and add a few pregenerated CMakeLists.txt files. So am I required to share my .bash_history/.bashrc by GPL?
Comment 8 Jonathan Riddell 2009-04-29 12:29:15 UTC
Huh?  Because that's what scripty runs to generate the translation template file.

You don't need to release your download scripts, that's not the same as generating files from another input.  I'll say again though, I'm less interested in the nuances of GPL than of just having complete source code.
Comment 9 Joris Guisson 2009-04-29 12:34:42 UTC
KTorrent is GPLv2, so I don't care what v3 says :

"For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable."

Is Messages.sh source code ? No
Is Messages.sh an associated interface definition ? No
Is Messages.sh a script to control compilation ? No
Is Messages.sh a script to install ktorrent ? No

So it doesn't need to be included.
Comment 10 Rex Dieter 2009-04-29 13:47:55 UTC
Would it be hard or kill you to be flexible here to satisfy the (valid) concerns of fellow KDE contributors?  No
Comment 11 Joris Guisson 2009-04-29 15:30:01 UTC
> Would it be hard or kill you to be flexible here to satisfy the (valid)
> concerns of fellow KDE contributors?  No

It's not hard at all. It's just that it isn't needed according to my understanding of the GPLv2. Further more if somebody is really interested in it, he or she can just download it using the publicly available svn server of KDE. 

And if you actually read the GPL (both v2 and v3) it only says you need to include source code and build scripts when distributing in non source form. So it doesn't matter what you consider to be part of the "Corresponding Source", we are not distributing it in non source form.
Comment 12 Rex Dieter 2009-04-29 16:11:30 UTC
I've read the GPL yes, and I share Jonathan's opinion that the Messages.sh file in question falls under the scope of "scripts used..." to build starting from the "preferred form" of the work.
Comment 13 Rex Dieter 2009-04-29 16:22:17 UTC
"it only says you need to
include source code and build scripts when distributing in non source form" 

even worse, you're imposing an extra burden on those that *do* distribute binaries, based on your incomplete source.
Comment 14 Joris Guisson 2009-04-30 09:50:09 UTC
In my opinion Messages.sh is not part of the source code, so anybody distributing ktorrent in compiled form doesn't need to include it.

However, seeing that I'm no expert on the matter, if you can find an expert on the GPL who says it should be included, then I will include it in the next release.
Comment 15 Rex Dieter 2009-04-30 13:52:00 UTC
Re; experts
Jonathan is an active contributor to kde licensing policy, so from my own (biased) POV, his opinion is worth considering as expert in this matter.

If you want, we can also raise the issue on the kde-licensing list, 
https://mail.kde.org/mailman/listinfo/kde-licensing
but I'd think you'd get answers similar to what you have here.
Comment 16 Joris Guisson 2009-05-01 10:35:13 UTC
I'm tired of this discussion, it will be included in the next release.
Comment 17 Rex Dieter 2009-05-01 13:42:53 UTC
Thank you, much appreciated.