Three licenses, one family
The GNU General Public License (GPL) is the copyleft license of the Free Software Foundation (FSF). It gives everyone the freedom to run, study, change and share a program, and copyleft keeps it that way: whoever passes the program on, changed or not, passes on the same freedoms and the source code with it. Three versions are in use today:
- GNU GPL version 2 (GPLv2), June 1991. The license whose full text is in the LICENSE file of Exponential.
- GNU GPL version 3 (GPLv3), June 29, 2007. The current GPL: the same freedoms and the same copyleft, with rules on patents, consumer devices and license compatibility that GPLv2 does not have.
- GNU Affero GPL version 3 (AGPLv3), November 19, 2007. GPLv3 with one more condition, for programs that people use over a network: a modified version must offer its source code to the users who interact with it remotely.
What GPLv3 adds to GPLv2
- Patents (sections 10 and 11). Every contributor who conveys the program under GPLv3 grants its users a license to the contributor's patents that the contribution needs. Whoever conveys it may not start a patent lawsuit claiming that the program infringes, and may not convey it under a patent deal that protects only some of its recipients.
- Installation Information (section 6), the rule against "tivoization". When you convey the program in a User Product, a consumer device such as a router, a phone or a set-top box, you also provide the information needed to install and run a modified version on that device. The rule does not apply when nobody, you included, can install modified software on it, for example when the program is in ROM.
- Technological measures (section 3). The program is not part of an "effective technological measure" under laws such as the DMCA, and whoever conveys it gives up any legal power to forbid circumventing such measures, as far as the circumvention is done by exercising rights under the license.
- Compatibility (section 7). A defined set of additional permissions and additional terms. Because of it, code under the Apache License 2.0 can be combined with GPLv3 code; the FSF's license list counts Apache 2.0 as compatible with GPLv3 but not with GPLv2.
- A cure period (section 8). Under GPLv2 (section 4), any violation ends your rights under the license automatically, and the license has no way back. Under GPLv3, once you stop the violation your license is reinstated provisionally, and permanently if the copyright holder does not notify you within 60 days; and if the holder's notice is the first you have received from that holder, curing the violation within 30 days reinstates it permanently.
- Clearer terms worldwide. "Propagate" and "convey" replace "distribute", and there are more ways to provide the source code, among them from a network server and by peer-to-peer transmission (section 6).
- A bridge to the AGPL (section 13). Permission to combine GPLv3 code with AGPLv3 code into one work.
The license of Exponential: version 2 or later
Exponential is licensed under the GNU General Public License, version 2 or any later version. Its COPYRIGHT.md states:
"Exponential is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version."
The LICENSE file holds the full text of GPLv2, the source files say @license GNU General Public License v2.0 (or any later version) or point to that LICENSE file, and the Composer package declares GPL-2.0-or-later. The copyright is held by the Exponential Foundation and 7x; the notice of eZ Systems AS, which developed the software originally, is kept where the license requires it. The source is on GitHub.
Section 9 of GPLv2 explains the clause: "If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation."
Third-party code keeps its own notice. A few extensions shipped with Exponential that other authors wrote, swark for example, say "version 2.0 of the GNU General Public License" without "or later": those files are under GPLv2 only. Check the notice of a component before you choose a license version for a distribution that includes it.
What "or (at your option) any later version" means in practice
You choose which version's terms you follow when you use, change and pass on Exponential:
- Under GPLv2, with the rights and the duties of GPLv2.
- Under GPLv3, with the rights of GPLv3, among them its explicit patent license, which covers the contributions of those who convey the program under GPLv3, the cure period, and compatibility with GPLv3 and Apache 2.0 code. You also take on the responsibilities of GPLv3.
- Under a later version of the GPL, if the FSF publishes one.
The FSF's FAQ puts it this way: "if code is released under GPL "version 2 or later," that is compatible with GPLv3 because GPLv3 is one of the options it permits."
Your responsibilities when you convey Exponential under GPLv3
- Provide the Corresponding Source of what you convey, under GPLv3, in one of the ways section 6 lists: with the object code, with a written offer valid for at least three years, from a network server, or by peer-to-peer transmission.
- Keep the copyright notices, the license notices and the notices of no warranty intact, and give every recipient a copy of the license (section 4).
- Mark a modified version with prominent notices that you modified it, with a relevant date, and license it as a whole under GPLv3 to anyone who receives a copy (section 5).
- Provide the Installation Information when you ship it in a User Product (section 6).
- Impose no further restrictions on the recipients' rights (section 10), and respect the patent terms (section 11).
Combining Exponential with other code
- With GPLv3 or Apache 2.0 code: possible, under GPLv3. In the words of the FAQ: "If you have the ability to release the project under GPLv2 or any later version, you can choose to release it under GPLv3 or any later version—and once you do that, you'll be able to incorporate the code released under GPLv3."
- GPLv2-only code with GPLv3 code: not possible. The FAQ says that combining them "would violate section 6 of GPLv2". A work that depends on GPLv2-only code, such as the extensions named above, "can only be conveyed under the terms of GPLv2".
- With AGPLv3 code: possible through section 13 of GPLv3, once you use Exponential under GPLv3. The Exponential part stays under GPLv3, the AGPLv3 part under AGPLv3, and the network requirement of AGPLv3 section 13 applies to the combination as such.
Running a site is not distributing
Neither GPLv2 nor GPLv3 asks anything of you when you only run the software. The FAQ: "The GPL permits anyone to make a modified version and use it without ever distributing it to others." Running your own website on Exponential, changed or not, does not oblige you to publish your changes. Passing a copy to a customer, or installing it on a customer's server, is conveying, and then the license's conditions apply.
The AGPL is different. When you modify an AGPLv3 program and users interact with it over a network, your version must offer them its Corresponding Source (AGPLv3 section 13). A site that includes AGPLv3 components carries that duty for them, even when no copy is ever passed on.
Extensions and themes
The FAQ on plug-ins: "If the main program dynamically links plug-ins, and they make function calls to each other and share data structures, we believe they form a single combined program, which must be treated as an extension of both the main program and the plug-ins." Exponential extensions run in the same PHP process, call the classes of the kernel and share its data, and templates are run by its template engine. In the FSF's view, an extension or a theme you distribute for Exponential is therefore licensed under the GPL or a compatible license. Extensions you only use on your own site are not distributed, and your content, such as articles, images and data, is not a derivative of the software.
Which one, when
- GPLv2 when your distribution includes GPLv2-only code, or when a customer's or partner's policy asks for it. Passing your changes on as "version 2 or later", the way you received Exponential, keeps every option open for those who come after you.
- GPLv3 when you combine Exponential with GPLv3 or Apache 2.0 code, when you want the explicit patent license and the cure period, and when you ship Exponential in a device and its users should be able to install their own changed version.
- AGPLv3 for your own code that you offer as a hosted service, when the users of the service, not only those who receive copies, should be able to get the source of a modified version. The FSF recommends considering the AGPL for software that will commonly be run over a network.
Read more
- GNU GPLv2 on this site.
- GNU GPLv3 on this site, with the full license text.
- GNU AGPLv3 on this site, with the full license text.
- The official texts at gnu.org: GNU GPL version 2, GNU GPL version 3 and GNU Affero GPL version 3.
- The FSF's Frequently Asked Questions about the GNU Licenses and its Quick Guide to GPLv3.
- Back to the licensing overview.
Not legal advice
This page explains the licenses in plain words. It is not legal advice: the license texts are what count, and how they apply to a particular case is for a lawyer to judge. Contact 7x if you have questions about licensing Exponential for your project.