-
Notifications
You must be signed in to change notification settings - Fork 288
License Cleanup Rationale and Implementation
- Validate and verify what the definitive license is for Pootle.
- So that we can ensure consistency in the license claims throught the code.
- So that we know if we are able to update the licenses if required. E.g. are we using GPL2 or GPL2 and later.
- Reduce or eliminate the maintainenance of headers in files.
- Header noise is confusing and detracts from code.
- Header copyright claims are sometimes used to claim credit, we think there is a better and fairer way to claim and show credit.
- Headers should be simple and easy and require no maintenance or thought.
- Document more fully the copyright history, the funders and major
contributors.
- We don't just have code contributors we have contributors that have worked on Pootle for years. They deserver special mention.
- Funder have not added one line of code, but there would also be no code without them. We want to acknowledge them.
- Document clearly Pootles copyright policy and views. E.g. why there is no
copyright assignement and why it will, in fact has to remain as free
software.
- We don't require or want copyright assignment. Contributors need to know that.
- Pootle's license terms and copyright holders are limited in their ability to make the product proprietary. That's a feature and we'd like to tell people about it.
- Relicense Pootle code.
- If the validation shows that we are allowed to relicense then we can proceed.
- As we use code with other license e.g. Apache we are technical not allowed to distribute them with our GPL2 licensed code.
Pootle was first release under the GPL v2 or later license. This is from the __init__.py file for the very first Pootle commit.
Some of these early commits are only in Subversion as they were not ported to Git. The Subversion commits themselves are conversion of the origianl CVS repository.
- The first Pootle commit on Fri Oct 22 08:51:35 2004 UTC claim GPL2 and later
- The oldest tagged release is Pootle 0.6.1 and it claims GPL2 or later.
- The tarball for Pootle 0.8 says GPL2 or later (See Pootle-0.8.2005.0217/translate/pootle/__init__.py). This is the oldest release that we have available.
All of the license headers across Pootle code have been verified to be the standard GPL2 boiler plate for GPL2 or later.
We want a new simple header that:
- Points out the license terms simply and clearly
- Has no variable information as anything that varies needs maintenance and
thought, we don't want to think about headers or have to maintain them:
- No dates - these change and often people forget to change them
- No credits - there are better places to put this like an AUTHORS file
Decisions:
- No dates - if you need dates these can be found in the git log or the COPYING file.
- No specific contributors - these are credited in the AUTHORS file and in git log.
Do we have to use the full GPL2 header?
In the GPL2 license, well actually in the section "How to Apply These Terms to Your New Programs" which appears after the "Terms and Conditions", the GPL2 advises the following:
"[A]ttach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found."
GPL2, "How to Apply These Terms to Your New Programs", 2nd paragraph
By default that has been interpreted as attaching that full notice to every single source files. The advice is actually that this is safest because of the warranty exclusion. But this ignores the "at least" part of this advice, which is what we will be following.
Thus our header should contain:
- The copyright line
- Pointer to the full notice
A similar, or best example, is the LibreOffice project.
LibreOffice has a detailed license breakdown for the product and for all included software. At the top level they have the licenses applicable to the product.
The LibreOffice MPL copyright header looks like this.
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
LibreOffice also includes a template of license header snippets
Decision
# Copyright (C) Pootle contributors.
#
# This file is a part of the Pootle project. It is distributed under the GPL2
# license. See the LICENSE file for a copy of the license and the AUTHORS
# file for copyright and authorship information.
This has the following features:
- Simple and small
- Copyright header
- Statement of the license being used
- Pointer to the full license
- Pointer the the copyright holders
Pootle has been good at adding copyrights to code files but license headers are missing from other files that really should be licensed:
- JavaScript
- CSS
- Gettext PO
However, for some file types we've chosen to not add these headers:
- Django templates
For the following reasons:
- They are problematic the implement and obtrusive when implemented in the files.
- The files are not useful on their own outside of the body of work of Pootle. They are already covered by the LICENSE files and are unlikely to have any use outside of Pootle. And if they where they would need the associated CSS and JavaScript files which are explicitely licensed.
Pootle combines a number of source with other license which are incompatible with the GPL3. We wanted to ensure that we are compliant with out own and other upstream license.
Moving to GPL3 is possible as we're licensed under GPL2 or later. Moving to any other license, including AGPL, would have required agrement from all code contributors and certain funders. Staying with GPL achieve our aim of the software being open source and the agreements reached with contributors and funders.
We are technically already operating as GPL3 software because we combine licensed code that is only possible in GPL3. So this exercise is in some ways a GPL license cleanup.