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

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


The following commit(s) were added to refs/heads/master by this push:
     new 51ec0db  [CALCITE-3822] Source distribution must not contain fonts 
under SIL OFL 1.1 license (category B)
51ec0db is described below

commit 51ec0db4301098937d91f58f9a61121246dd8983
Author: Francis Chuang <[email protected]>
AuthorDate: Tue Mar 3 09:19:44 2020 +1100

    [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 afded3d..c2f4fb9 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()
         }
     }
 }

Reply via email to