From Fedora Project Wiki

Revision as of 17:10, 28 July 2009 by Toshio (talk | contribs) (An implementation of dealing with hotfixes)

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Warning.png
Draft Documents
This document is in a draft state. Infrastructure is still deciding whether we can use the AGPLv3+ for web applications or will stick with the GPLv2.

All software used in Fedora Infrastructure is Free Software. When we develop applications for Fedora Infrastructure, we have to license them under a free software license to continue to meet this goal. However, with each application, we have to choose one particular license and that means we need to think about how our choices will influence our ability to share code with each other. This page gives guidance on making licensing choices that will expand the amount of free software while causing us the least pain when we want to share code with each other.

Goals

  • Be able to share code among the various pieces we write.
  • Not have our libraries force a specific license on the apps that we write.
  • Not have conflicting licenses between our apps and our libraries
  • Have a clear understanding of the steps we must take whenever we want to move code from an application under one license to a library under a different one.
  • Protect the code we write from being taken proprietary (note, this is not the same for every author. Mirrormanager, for instance, is under the MIT/X11 License).

Preferred Licenses

In general, Fedora Infrastructure has chosen to use the family of GNU Public Licenses in order to keep the software free. The particular licenses chosen aim to make the software compatible with as much software as possible while still keeping this goal.

The preferred license for web applications written for Fedora Infrastructure is AGPLv3+. This license protects the web application from being taken proprietary as it covers the use of the application as a service provider, not just redistribution of the modified software.

The preferred license for python modules and other libraries is LGPLv2+. This lets us use the library with applications with different licenses like MIT and not force the application as a whole to fall under the GPL.

The preferred license for scripts and non-web applications that we write is GPLv2+. This lets our code be used in both GPLv2 and GPLv3 code bases.

Note that working with upstreams that have their own licenses or needs of the community that will be using the software can lead to different licensing choices on a case-by-case basis. This guidance is meant to make life easier for us as we develop code while supporting the expansion of free software. We must be flexible when a different license is better for growth of free software.

Implementation

  • All web apps written for Fedora Infrastructure should be AGPLv3+ unless there's a compelling reason not to.
  • All python modules written for fedora Infrastructure should be LGPLv2+ unless there's a compelling reason not to.
  • Web apps written for Infrastructure but not falling under the AGPLv3+ must be code-sharable with this but do not need to be the same license (ie: MIT, BSD, Public Domain, are okay for either libraries or apps. GPLv2 and GPLv3 web apps are okay. LGPLv2 or LGPLv2+ libraries are okay).
  • Authors of applications can be asked to shift code into modules which requires relicensing to LGPLv2+. In general we want to do this even though it might take code to a more permissive license as having it in a library is being done to promote sharing of code.
  • Except in exceptional cases, we will not relicense if the author disagrees with the change in license.
  • All hotfixes to web apps running on the server needs to be made available under the AGPLv3+ so that users can get the code that we're actually running.
    • All hotfixes need to be added to trac as a patch against our current deployment with the keyword "hotfix". These will be closed when we no longer apply the hotfix. (Minor modification to existing policy).
    • We need to have the footer of each application be configurable so that consumers (like us) can point it at the corresponding source. We can link to two places that give the user a base of what we're running plus hotfixes:
    • Notes.
      • We still need legal to tell us what our responsibilities are WRT the staging and publictest environment.
      • We want our solutions to be usable for programs that we are upstream for and projects that we are not upstream for. This is both so *we* can work without commit access to all the projects and so third parties can use us as an example of how to comply with our license.
      • nirik: Just as a datapoint... http://gnuherds.org is a AGPL site... they have a link like: http://gnuherds.org/gnuherds-online.tar.gz on their pages. (So they're going the whole tree route)

FAQ

  • Can the authors of a work relicense their code at will?
    • For Red Hat employees, the answer is "Within reason." For instance, moving code you've written from an application under the AGPLv3 to a library under the LGPLv2 is allowed as it keeps similar protections for the code itself and is necessary for the adoption of the library. For others, your terms of employment may differ. However, do note that as a Fedora contributor you've signed the CLA which says that when making contributions you have the right to grant a very broad license to your work so if your employer doesn't let you change the license on your work, be sure they allow you to sign the CLA!
  • Can Fedora relicense code under the CLA?
    • Yes, if you did not explicitly put your submission under a license when you contributed it to us, the present version of the CLA allows the Fedora Project to release the code under a different license at a later date. This allows for things such as relicensing code from GPLv2 to AGPLv3+ for web applications or GPLv2 to LGPVv2+ for libraries if the original contributor disappears. It can allow us to relicense the code without your consent but please note the following:
      • The Fedora Project does not own the copyright to your code, only a license to it. If you wish to take your code and do things with that copy that is not a contribution to Fedora, you are free to do so as the Copyright remains yours.
      • Per this policy, Fedora Infrastructure is not going to relicense your code against your wishes unless there's a compelling reason. At the least, this means the reasons for and against would be discussed publically in Fedora Infrastructure meetings and/or mailing lists.
      • Per Infrastructure Policy, all of Fedora Infrastructure is built on Free Software. Fedora Infrastructure will not ask to relicense your code to a proprietary license.
  • GPLv2 and AGPLv3/GPLv3 are incompatible for combining and linking in compiled languages. How does that work in dynamic languages?
    • The answer to this is a bit complex. If you're comfortable, the simple guidance is "It shouldn't be a problem unless you're copying code." If you need more information, please talk to spot with a specific example.
  • With code licensed under the AGPLv3, do we need to link/be able to distribute to people the exact code that is part of the applications? ie: if we hotfix something on the server, do we need to distribute the hotfix as well?
    • Yes. This means that we need to work out a policy for distributing the code that we are running on Fedora Infrastructure even when we want to hotfix something.
  • Does distributing hotfixes to AGPL apps extend to libraries that the app depends on?
    • No.