You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by da...@apache.org on 2020/02/27 02:34:22 UTC

[calcite] 02/02: [CALCITE-3822] Source distribution must not contain fonts under SIL OFL 1.1 license (category B)

This is an automated email from the ASF dual-hosted git repository.

danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git

commit 134430e481bb5495d0852434041428104e29874e
Author: yuzhao.cyz <yu...@gmail.com>
AuthorDate: Wed Feb 26 13:08:12 2020 +0800

    [CALCITE-3822] Source distribution must not contain fonts under SIL OFL 1.1 license (category B)
---
 release/build.gradle.kts | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/release/build.gradle.kts b/release/build.gradle.kts
index ef0d935..39a70f4 100644
--- a/release/build.gradle.kts
+++ b/release/build.gradle.kts
@@ -115,7 +115,6 @@ val getLicenses by tasks.registering(GatherLicenseTask::class) {
     // Parts of the web site generated by Jekyll (http://jekyllrb.com/)
     addDependency(":jekyll:", SpdxLicense.MIT)
     addDependency("font-awesome:font-awesome-code:4.2.0", SpdxLicense.MIT)
-    addDependency("font-awesome:font-awesome-font:4.2.0", SpdxLicense.OFL_1_1)
     // git.io/normalize
     addDependency(":normalize:3.0.2", SpdxLicense.MIT)
     // Gridism: A simple, responsive, and handy CSS grid by @cobyism
@@ -143,6 +142,20 @@ fun CopySpec.excludeLicenseFromSourceRelease() {
     exclude("LICENSE")
 }
 
+fun CopySpec.excludeCategoryBLicensedWorksFromSourceRelease() {
+    // The source distribution contains "font-awesome:fonts" which is licensed as
+    // http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License).
+    //
+    // OFL 1.1 is "category B" (see LEGAL-112).
+    //
+    // According to
+    // https://www.apache.org/legal/resolved.html#binary-only-inclusion-condition,
+    // the source code can not include Category B licensed works.
+
+    // We need to remove "web and desktop font files".
+    exclude("site/fonts/**")
+}
+
 fun CrLfSpec.sourceLayout() = copySpec {
     duplicatesStrategy = DuplicatesStrategy.EXCLUDE
     gitattributes(gitProps)
@@ -154,6 +167,7 @@ fun CrLfSpec.sourceLayout() = copySpec {
         from(rootDir) {
             gitignore(gitProps)
             excludeLicenseFromSourceRelease()
+            excludeCategoryBLicensedWorksFromSourceRelease()
         }
     }
 }