summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2023-03-23 14:42:09 +0100
committerVolker Hilsheimer <volker.hilsheimer@qt.io>2023-03-27 10:55:28 +0000
commit5a182d35e2e10076fabaebc128f5d270d4fac788 (patch)
tree49515da1ba62c425819e7db92451e6f26c0f43a7
parentce58c66ae81c92f4c3a538ecdd9ec1108b19352f (diff)
Update license specification for PCRE2
PCRE2 is available under BSD-3-Clause, but with a relevant exception that arguably applies to the way Qt uses it, too. So let's mention this exception in the listed license. Unfortunately, the exception is not part of the SPDX database, and combining a standard license with a custom exception is not supported yet. See [1] for a related discussion. Meanwhile, just defining a whole license is a common workaround. [1] https://github.com/spdx/spdx-spec/issues/153 [ChangeLog][Third-Party Code] Clarifying license of PCRE2 to be BSD-3-Clause with advertisement exception for binary-like packages. Pick-to: 6.5 Change-Id: Ib6d46806dc5a00ff2f795054ad9bf0ae62920501 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
-rw-r--r--LICENSES/LicenseRef-BSD-3-Clause-with-PCRE2-Binary-Like-Packages-Exception.txt12
-rw-r--r--src/3rdparty/pcre2/qt_attribution.json4
2 files changed, 14 insertions, 2 deletions
diff --git a/LICENSES/LicenseRef-BSD-3-Clause-with-PCRE2-Binary-Like-Packages-Exception.txt b/LICENSES/LicenseRef-BSD-3-Clause-with-PCRE2-Binary-Like-Packages-Exception.txt
new file mode 100644
index 0000000000..9f4ae05fa5
--- /dev/null
+++ b/LICENSES/LicenseRef-BSD-3-Clause-with-PCRE2-Binary-Like-Packages-Exception.txt
@@ -0,0 +1,12 @@
+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.
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "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 COPYRIGHT HOLDER OR CONTRIBUTORS 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.
+
+EXEMPTION FOR BINARY LIBRARY-LIKE PACKAGES
+------------------------------------------
+
+The second condition in the BSD licence (covering binary redistributions) does not apply all the way down a chain of software. If binary package A includes PCRE2, it must respect the condition, but if package B is software that includes package A, the condition is not imposed on package B unless it uses PCRE2 independently.
diff --git a/src/3rdparty/pcre2/qt_attribution.json b/src/3rdparty/pcre2/qt_attribution.json
index 2d8c658657..fce44138cb 100644
--- a/src/3rdparty/pcre2/qt_attribution.json
+++ b/src/3rdparty/pcre2/qt_attribution.json
@@ -9,8 +9,8 @@
"Homepage": "http://www.pcre.org/",
"Version": "10.42",
"DownloadLocation": "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.42/pcre2-10.42.tar.bz2",
- "License": "BSD 3-clause \"New\" or \"Revised\" License",
- "LicenseId": "BSD-3-Clause",
+ "License": "BSD 3-clause \"New\" or \"Revised\" License with PCRE2 binary-like Packages Exception",
+ "LicenseId": "LicenseRef-BSD-3-Clause-with-PCRE2-Binary-Like-Packages-Exception",
"LicenseFile": "LICENCE",
"Copyright": "Copyright (c) 1997-2022 University of Cambridge
Copyright (c) 2010-2022 Zoltan Herczeg"