Difference between revisions of "Policies/Licensing Policy/Draft"

Jump to: navigation, search
m (20 revisions imported: Move Policies from techbase)
(change MIT to Modern Style with sublicense)
(11 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
#* '''X11 license''' as listed below.
 
#* '''X11 license''' as listed below.
 
#:'''Note:''' each bulletpoint above is a single option, it can not be licenced under just part of one bulletpoint option
 
#:'''Note:''' each bulletpoint above is a single option, it can not be licenced under just part of one bulletpoint option
#:'''Note:''' when copying code from Qt into KDE Platform file you must include the full Qt licence header in the header of these files and you must name each of these files in COPYING-QT along with the relevant LGPL licences in the root of the source tree.  Note that most Qt modules are LGPL 2.1/ 3 but newer ones may be LGPL 3 + GPL 2 and this will affect the overall licensing of the module.  This can only be done with Qt 5.4 or later as ealier versions had more restrictive licences.
+
#:'''Note:''' code may not be copied from Qt into KDE Platform as Qt is LGPL 3 only which would prevent it being used under LGPL 2.1
 
#:'''Note:''' the LGPL 2.1, 3 or approved by e.V. option is preferred and should be used unless there are special needs to improve code shareability
 
#:'''Note:''' the LGPL 2.1, 3 or approved by e.V. option is preferred and should be used unless there are special needs to improve code shareability
 
# Any other source files must be licensed under one of the terms listed under 4) or one of the following terms:
 
# Any other source files must be licensed under one of the terms listed under 4) or one of the following terms:
 
#* '''GPL''' version 2 or version 3 or later versions approved by the membership of KDE e.V. [preferred]
 
#* '''GPL''' version 2 or version 3 or later versions approved by the membership of KDE e.V. [preferred]
 
#* '''GPL''' version 2 or later
 
#* '''GPL''' version 2 or later
#* Code copied from Qt may be licenced under '''GPL''' version 2 or later versions
 
 
#* '''GPL''' version 3 or later
 
#* '''GPL''' version 3 or later
 
#* '''GPL''' version 3 or later versions approved by the membership of KDE e.V.
 
#* '''GPL''' version 3 or later versions approved by the membership of KDE e.V.
#* Code copied from Qt may be licenced under '''GPL''' version 2 or later versions  
+
#* Code copied from Qt may be licenced under '''GPL''' version 2 or later versions or under '''GPL''' version 3 or later versions depending on the licence of the relevant Qt code
 
#:'''Note:''' each bulletpoint above is a single option, it can not be licenced under just part of one bulletpoint option
 
#:'''Note:''' each bulletpoint above is a single option, it can not be licenced under just part of one bulletpoint option
 
#:'''Note:''' where a KDE repository contains files which are GPL 3+ it must be clearly marked by adding the full licence in a file called COPYING.GPL3 in the top directory of the repository
 
#:'''Note:''' where a KDE repository contains files which are GPL 3+ it must be clearly marked by adding the full licence in a file called COPYING.GPL3 in the top directory of the repository
 
#:'''Note:''' the GPL 2, 3 or approved by e.V. option is preferred and should be used unless there are special needs to improve code shareability
 
#:'''Note:''' the GPL 2, 3 or approved by e.V. option is preferred and should be used unless there are special needs to improve code shareability
 +
#:'''Note:''' Qt modules are either GPL2+ or GPL 3+, ensure the licence is compatible with your code before copying code from Qt
 +
# ''Applications which are intended to be run on a web server'' may be licenced under the GNU AGPL 3.0 or later
 +
#:'''Note:''' the GNU AGPL is the recommended licence for web server software in KDE
 
# ''Translations'' of text from the files described in section 4 must be licenced under one of the terms in sections 4.  Translations of text from other files must be licenced under one of the terms in sections 4 or 5.
 
# ''Translations'' of text from the files described in section 4 must be licenced under one of the terms in sections 4.  Translations of text from other files must be licenced under one of the terms in sections 4 or 5.
# ''Icons'' in oxygen-icons must be licenced under the '''LGPL''' 3 or later versions approved by KDE e.V.  Icons elsewhere can be licenced under any of the terms in section 4 or 5.
+
# ''Media files'' such as images may be licensed under the Creative Commons Attribution-ShareAlike 4.0 International licence at http://creativecommons.org/licenses/by-sa/4.0/ or compatible licence
# ''Documentation'' must be licensed under one of the following terms:
+
#:'''Note:''' CC-BY-SA 4.0 can be converted to LGPL 3.
 +
# ''Icons'' in oxygen-icons and breeze must be licenced under the '''LGPL''' 3 or later versions approved by KDE e.V.  Icons elsewhere can be licenced under any of the terms in section 4 or 5 or 8.  Using CC-BY-SA 4.0 as listed in section 8 is preferred.
 +
# Content on collaborative edited websites such as wikis must be licensed under the '''Creative Commons Attribution-Sharealike 4.0 International'''  or compatible licence.
 +
# ''Documentation'' must be licensed under the '''Creative Commons Attribution-Sharealike 4.0''' International or compatible licence
 +
#:'''Note:''' CC-BY-SA 4.0 can be converted to LGPL 3.
 +
# Documentation started before 2016 can be licensed under one of the following terms:
 
#* '''FDL''' versions 1.2 as listed in {{path|kdelibs/COPYING.DOC}} or later versions with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 
#* '''FDL''' versions 1.2 as listed in {{path|kdelibs/COPYING.DOC}} or later versions with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
 
#* '''FDL''' versions 1.2 as listed in {{path|kdelibs/COPYING.DOC}} or later versions approved by KDE e.V. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.   
 
#* '''FDL''' versions 1.2 as listed in {{path|kdelibs/COPYING.DOC}} or later versions approved by KDE e.V. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.   
Line 33: Line 40:
 
# ''CMake modules'' must be licenced under the BSD licence listed below
 
# ''CMake modules'' must be licenced under the BSD licence listed below
 
# ''Windows installer files'' using the WiX Toolset may be licenced under the Common Public Licence 1.0
 
# ''Windows installer files'' using the WiX Toolset may be licenced under the Common Public Licence 1.0
# ''Standalone media files'' such as images may be licensed under the Creative Commons Attribution-Share Alike 3.0 Unported licence at http://creativecommons.org/licenses/by-sa/3.0/ .  This does not apply to icons or anything which is likely to be mixed with content under our normal (GPL etc) licences.
 
 
# Other data included in KDE's codebase must be licenced under one of the terms in sections 4 or 5.
 
# Other data included in KDE's codebase must be licenced under one of the terms in sections 4 or 5.
 
# Contributors who have signed the Fiduciary License Agreement with KDE e.V. may licence files described in section 3 under LGPL 2.1 & 3 only and may licence other source files under GPL 2 & 3 only.
 
# Contributors who have signed the Fiduciary License Agreement with KDE e.V. may licence files described in section 3 under LGPL 2.1 & 3 only and may licence other source files under GPL 2 & 3 only.
Line 221: Line 227:
 
Copyright <year>  <name of author> <e-mail>
 
Copyright <year>  <name of author> <e-mail>
  
Permission to use, copy, modify, and distribute this software
+
Permission is hereby granted, free of charge, to any person obtaining
and its documentation for any purpose and without fee is hereby
+
a copy of this software and associated documentation files (the
granted, provided that the above copyright notice appear in all
+
"Software"), to deal in the Software without restriction, including
copies and that both that the copyright notice and this
+
without limitation the rights to use, copy, modify, merge, publish,
permission notice and warranty disclaimer appear in supporting
+
distribute, sublicense, and/or sell copies of the Software, and to
documentation, and that the name of the author not be used in
+
permit persons to whom the Software is furnished to do so, subject to
advertising or publicity pertaining to distribution of the
+
the following conditions:
software without specific, written prior permission.
+
  
The author disclaim all warranties with regard to this
+
The above copyright notice and this permission notice shall be included
software, including all implied warranties of merchantability
+
in all copies or substantial portions of the Software.
and fitness. In no event shall the author be liable for any
+
 
special, indirect or consequential damages or any damages
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
whatsoever resulting from loss of use, data or profits, whether
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
in an action of contract, negligence or other tortious action,
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
arising out of or in connection with the use or performance of
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
this software.
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 +
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 +
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 
</pre>
 
</pre>
  
 
[[Category:Policies]]
 
[[Category:Policies]]

Revision as of 15:29, 29 September 2016

This licence policy is designed to allow maximum code reuse with the community of KDE and beyond while making exceptions for the few cases which need it.

All new source code and related data files in KDE repositories (SVN, GIT) must meet the following requirements:

  1. All files must be in their preferred modifiable form, or alongside the file which is the preferred modifiable form. In the 'alongside' case, there must be clear instructions for how to build using the preferred modifiable form.
  2. All source files must contain a copyright header which identifies the copyright holder(s) together with an e-mail address that can be used to reach the copyright holder.
  3. Each source file must contain one of the licence headers listed below to state under which terms the software may be used, modified and redistributed.
  4. Source files that are part of a library with a public API which is part of the KDE Platform (kdelibs, kdepimlibs, kde-runtime and KDE Frameworks) must be licensed under one of the following terms:
    • LGPL version 2.1, or version 3 or later versions approved by the membership of KDE e.V. [preferred]
    • LGPL version 2.1 as listed in kdelibs/COPYING.LIB or later
    • BSD license as listed below.
      Ensure that the BSD license does not contain the so called 'advertisement clause'.
    • MIT license as listed below.
    • X11 license as listed below.
    Note: each bulletpoint above is a single option, it can not be licenced under just part of one bulletpoint option
    Note: code may not be copied from Qt into KDE Platform as Qt is LGPL 3 only which would prevent it being used under LGPL 2.1
    Note: the LGPL 2.1, 3 or approved by e.V. option is preferred and should be used unless there are special needs to improve code shareability
  5. Any other source files must be licensed under one of the terms listed under 4) or one of the following terms:
    • GPL version 2 or version 3 or later versions approved by the membership of KDE e.V. [preferred]
    • GPL version 2 or later
    • GPL version 3 or later
    • GPL version 3 or later versions approved by the membership of KDE e.V.
    • Code copied from Qt may be licenced under GPL version 2 or later versions or under GPL version 3 or later versions depending on the licence of the relevant Qt code
    Note: each bulletpoint above is a single option, it can not be licenced under just part of one bulletpoint option
    Note: where a KDE repository contains files which are GPL 3+ it must be clearly marked by adding the full licence in a file called COPYING.GPL3 in the top directory of the repository
    Note: the GPL 2, 3 or approved by e.V. option is preferred and should be used unless there are special needs to improve code shareability
    Note: Qt modules are either GPL2+ or GPL 3+, ensure the licence is compatible with your code before copying code from Qt
  6. Applications which are intended to be run on a web server may be licenced under the GNU AGPL 3.0 or later
    Note: the GNU AGPL is the recommended licence for web server software in KDE
  7. Translations of text from the files described in section 4 must be licenced under one of the terms in sections 4. Translations of text from other files must be licenced under one of the terms in sections 4 or 5.
  8. Media files such as images may be licensed under the Creative Commons Attribution-ShareAlike 4.0 International licence at http://creativecommons.org/licenses/by-sa/4.0/ or compatible licence
    Note: CC-BY-SA 4.0 can be converted to LGPL 3.
  9. Icons in oxygen-icons and breeze must be licenced under the LGPL 3 or later versions approved by KDE e.V. Icons elsewhere can be licenced under any of the terms in section 4 or 5 or 8. Using CC-BY-SA 4.0 as listed in section 8 is preferred.
  10. Content on collaborative edited websites such as wikis must be licensed under the Creative Commons Attribution-Sharealike 4.0 International or compatible licence.
  11. Documentation must be licensed under the Creative Commons Attribution-Sharealike 4.0 International or compatible licence
    Note: CC-BY-SA 4.0 can be converted to LGPL 3.
  12. Documentation started before 2016 can be licensed under one of the following terms:
    • FDL versions 1.2 as listed in kdelibs/COPYING.DOC or later versions with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    • FDL versions 1.2 as listed in kdelibs/COPYING.DOC or later versions approved by KDE e.V. with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
    Note each bulletpoint above is a single option, it can not be licenced under just part of one bulletpoint option
    Documentation may additionally be licensed under any of the terms in section 4 or 5.
  13. CMake modules must be licenced under the BSD licence listed below
  14. Windows installer files using the WiX Toolset may be licenced under the Common Public Licence 1.0
  15. Other data included in KDE's codebase must be licenced under one of the terms in sections 4 or 5.
  16. Contributors who have signed the Fiduciary License Agreement with KDE e.V. may licence files described in section 3 under LGPL 2.1 & 3 only and may licence other source files under GPL 2 & 3 only.
  17. As new versions of GNU licenses are published they will be discussed by the membership of KDE e.V. and accepted via an announcement on http://ev.kde.org whether not adopting the licence would harm the future distribution of KDE, the licence preserves freedom for our developers & users and a vote by the membership agrees to the acceptance of the new licence version.

GPL Header

Copyright <year>  <name of author> <e-mail>

This program 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.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

or for later versions approved by KDE e.V.

Copyright <year>  <name of author> <e-mail>

This program 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) version 3 or any later version
accepted by the membership of KDE e.V. (or its successor approved
by the membership of KDE e.V.), which shall act as a proxy 
defined in Section 14 of version 3 of the license.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

GPL 3 or later

Any repository which has this must be clearly marked with a copy of the GPL 3 in a file called COPYING.GPL3 in the top directory

Copyright <year>  <name of author> <e-mail>

This program 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 3 of 
the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

or for later versions approved by KDE e.V.

Copyright <year>  <name of author> <e-mail>

This program 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 3 of
the License or any later version accepted by the membership of 
KDE e.V. (or its successor approved by the membership of KDE
e.V.), which shall act as a proxy defined in Section 14 of
version 3 of the license.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.

LGPL Header

Copyright <year>  <name of author> <e-mail>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either 
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with this library.  If not, see <http://www.gnu.org/licenses/>.

or for later versions approved by KDE e.V.

Copyright <year>  <name of author> <e-mail>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) version 3, or any
later version accepted by the membership of KDE e.V. (or its
successor approved by the membership of KDE e.V.), which shall
act as a proxy defined in Section 6 of version 3 of the license.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with this library.  If not, see <http://www.gnu.org/licenses/>.

BSD License

Copyright <year>  <name of author> <e-mail>

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:

1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

A third requirement is sometimes included: "3. The name of the author may not be used to endorse or promote products derived from this software without specific prior written permission."

The advertising clause requiring mention in adverts must never be included.

X11 License

Copyright <year>  <name of author> <e-mail>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of the X Consortium shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from the X Consortium.

MIT license

Copyright <year>  <name of author> <e-mail>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.