[v1.9.x] Backport - License updates per ASF feedback (#20377) (#20386)

* [v1.x] License updates per ASF feedback (#20377)

* switch to DISCLAIMER (#20242)

Signed-off-by: Sheng Zha <zhasheng@amazon.com>

* Don't distribute 3rdparty/googletest/ci in source archive.

* Add reference in LICENSE to symlinks in include/mkldnn that point to 3rdparty/mkldnn.

* Do not distribute docs/ subdir in source archive.

* Remove references to docs from LICENSE (since they are no longer distributed in source archive,) and remove SIL open font license and reference in LICENSE.

Co-authored-by: Sheng Zha <szha@users.noreply.github.com>
Co-authored-by: Joe Evans <joeev@amazon.com>

* Merge in Zhaoqi's ONNX license changes.

Co-authored-by: Sheng Zha <szha@users.noreply.github.com>
Co-authored-by: Joe Evans <joeev@amazon.com>
diff --git a/DISCLAIMER b/DISCLAIMER
new file mode 100644
index 0000000..eacaa1b
--- /dev/null
+++ b/DISCLAIMER
@@ -0,0 +1,10 @@
+Apache MXNet is an effort undergoing incubation at
+The Apache Software Foundation (ASF), sponsored by the name of Apache Incubator PMC.
+
+Incubation is required of all newly accepted projects until a further review
+indicates that the infrastructure, communications, and decision making process
+have stabilized in a manner consistent with other successful ASF projects.
+
+While incubation status is not necessarily a reflection of the completeness
+or stability of the code, it does indicate that the project has yet to be fully
+endorsed by the ASF.
diff --git a/DISCLAIMER-WIP b/DISCLAIMER-WIP
deleted file mode 100644
index 2449179..0000000
--- a/DISCLAIMER-WIP
+++ /dev/null
@@ -1,25 +0,0 @@
-Apache MXNet is an effort undergoing incubation at
-The Apache Software Foundation (ASF), sponsored by the name of Apache Incubator PMC.
-
-Incubation is required of all newly accepted projects until a further review
-indicates that the infrastructure, communications, and decision making process
-have stabilized in a manner consistent with other successful ASF projects.
-
-While incubation status is not necessarily a reflection of the completeness
-or stability of the code, it does indicate that the project has yet to be fully endorsed by the ASF.
-
-Some of the incubating project’s releases may not be fully compliant with ASF policy.
-For example, releases may have incomplete or un-reviewed licensing conditions.
-What follows is a list of known issues the project is currently aware of
-(note that this list, by definition, is likely to be incomplete):
-
-1. The MXNet source code is distributed under the Apache License, Version 2.0. However
-building MXNet for GPUs requires compiling with Nvidia tools and libraries
-that are not compatible with Apache License, Version 2.0. This will affect the usage for
-any binary distributions of MXNet for GPU. 
-
-If you are planning to incorporate this work into your product/project,
-please be aware that you will need to conduct a thorough licensing review
-to determine the overall implications of including this work.
-For the current status of this project through the Apache Incubator visit:
-https://incubator.apache.org/projects/mxnet.html
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
index ff49864..12b11eb 100644
--- a/LICENSE
+++ b/LICENSE
@@ -227,13 +227,12 @@
     3rdparty/tvm/3rdparty/dlpack
     3rdparty/ps-lite
     3rdparty/mkldnn
+    include/mkldnn (header symlinks to 3rdparty/mkldnn)
     3rdparty/googletest/googlemock/scripts/generator
     3rdparty/onnx-tensorrt/third_party/onnx/third_party/benchmark
     3rdparty/mkldnn/tests/benchdnn (Copy of the License available at top of current file)
     src/operator/special_functions-inl.h Cephes Library Functions (Copy of the License available at top of current file)
     3rdparty/mkldnn/doc/assets/mathjax (Copy of the License available at top of current file)
-    docs/python_docs/themes/mx-theme/mxtheme/static/material-design-icons-3.0.1 (Copy of the License available at top of current file)
-    docs/python_docs/themes/mx-theme/mxtheme/static/font/Roboto (Copy of the License available at top of current file)
     3rdparty/tvm/3rdparty/bfloat16/bfloat16.cc (Copy of the License available at top of current file)
 
     =======================================================================================
@@ -244,8 +243,6 @@
     3rdparty/tvm/3rdparty/cma
     3rdparty/onnx-tensorrt
     3rdparty/onnx-tensorrt/third_party/onnx
-    docs/static_site/src/assets/js/clipboard.js
-    docs/python_docs/themes/mx-theme
     3rdparty/intgemm
     3rdparty/tvm/3rdparty/compiler-rt/builtin_fp16.h
     src/operator/nn/layer_norm.cc
@@ -310,8 +307,9 @@
     Apache-2.0 license + 3-clause BSD license
     =======================================================================================
 
-    python/mxnet/contrib/onnx/mx2onnx/_op_translations.py
-    python/mxnet/contrib/onnx/mx2onnx/export_onnx.py
+    python/mxnet/onnx/mx2onnx/_export_onnx.py
+    python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset12.py
+    python/mxnet/onnx/mx2onnx/_op_translations/_op_translations_opset13.py
 
     =======================================================================================
     Apache-2.0 license + MIT License
@@ -344,8 +342,3 @@
 
     3rdparty/tvm/3rdparty/rang
 
-    =======================================================================================
-    SIL Open Font License (OFL)
-    =======================================================================================
-
-    docs/python_docs/themes/mx-theme/mxtheme/static/webfonts/ (Copy of the License available at licenses/OFL1_1)
diff --git a/ci/docker/runtime_functions.sh b/ci/docker/runtime_functions.sh
index 17b6479..156264a 100755
--- a/ci/docker/runtime_functions.sh
+++ b/ci/docker/runtime_functions.sh
@@ -151,7 +151,7 @@
     cp tools/dependencies/LICENSE.binary.dependencies licenses/
     cp NOTICE licenses/
     cp LICENSE licenses/
-    cp DISCLAIMER-WIP licenses/
+    cp DISCLAIMER licenses/
 }
 
 build_ubuntu_cpu_release() {
diff --git a/licenses/OFL1_1 b/licenses/OFL1_1
deleted file mode 100644
index f1a20ac..0000000
--- a/licenses/OFL1_1
+++ /dev/null
@@ -1,97 +0,0 @@
-Copyright (c) <dates>, <Copyright Holder> (<URL|email>),

-with Reserved Font Name <Reserved Font Name>.

-Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>),

-with Reserved Font Name <additional Reserved Font Name>.

-Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>).

-

-This Font Software is licensed under the SIL Open Font License, Version 1.1.

-This license is copied below, and is also available with a FAQ at:

-http://scripts.sil.org/OFL

-

-

------------------------------------------------------------

-SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007

------------------------------------------------------------

-

-PREAMBLE

-The goals of the Open Font License (OFL) are to stimulate worldwide

-development of collaborative font projects, to support the font creation

-efforts of academic and linguistic communities, and to provide a free and

-open framework in which fonts may be shared and improved in partnership

-with others.

-

-The OFL allows the licensed fonts to be used, studied, modified and

-redistributed freely as long as they are not sold by themselves. The

-fonts, including any derivative works, can be bundled, embedded, 

-redistributed and/or sold with any software provided that any reserved

-names are not used by derivative works. The fonts and derivatives,

-however, cannot be released under any other type of license. The

-requirement for fonts to remain under this license does not apply

-to any document created using the fonts or their derivatives.

-

-DEFINITIONS

-"Font Software" refers to the set of files released by the Copyright

-Holder(s) under this license and clearly marked as such. This may

-include source files, build scripts and documentation.

-

-"Reserved Font Name" refers to any names specified as such after the

-copyright statement(s).

-

-"Original Version" refers to the collection of Font Software components as

-distributed by the Copyright Holder(s).

-

-"Modified Version" refers to any derivative made by adding to, deleting,

-or substituting -- in part or in whole -- any of the components of the

-Original Version, by changing formats or by porting the Font Software to a

-new environment.

-

-"Author" refers to any designer, engineer, programmer, technical

-writer or other person who contributed to the Font Software.

-

-PERMISSION & CONDITIONS

-Permission is hereby granted, free of charge, to any person obtaining

-a copy of the Font Software, to use, study, copy, merge, embed, modify,

-redistribute, and sell modified and unmodified copies of the Font

-Software, subject to the following conditions:

-

-1) Neither the Font Software nor any of its individual components,

-in Original or Modified Versions, may be sold by itself.

-

-2) Original or Modified Versions of the Font Software may be bundled,

-redistributed and/or sold with any software, provided that each copy

-contains the above copyright notice and this license. These can be

-included either as stand-alone text files, human-readable headers or

-in the appropriate machine-readable metadata fields within text or

-binary files as long as those fields can be easily viewed by the user.

-

-3) No Modified Version of the Font Software may use the Reserved Font

-Name(s) unless explicit written permission is granted by the corresponding

-Copyright Holder. This restriction only applies to the primary font name as

-presented to the users.

-

-4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font

-Software shall not be used to promote, endorse or advertise any

-Modified Version, except to acknowledge the contribution(s) of the

-Copyright Holder(s) and the Author(s) or with their explicit written

-permission.

-

-5) The Font Software, modified or unmodified, in part or in whole,

-must be distributed entirely under this license, and must not be

-distributed under any other license. The requirement for fonts to

-remain under this license does not apply to any document created

-using the Font Software.

-

-TERMINATION

-This license becomes null and void if any of the above conditions are

-not met.

-

-DISCLAIMER

-THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,

-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF

-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT

-OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE

-COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,

-INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL

-DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

-FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM

-OTHER DEALINGS IN THE FONT SOFTWARE.

diff --git a/rat-excludes b/rat-excludes
index 39d0cfe..56d6162 100644
--- a/rat-excludes
+++ b/rat-excludes
@@ -107,7 +107,7 @@
 
 # Specific files
 # Files that don't support comment
-DISCLAIMER-WIP
+DISCLAIMER
 MANIFEST
 Changes
 .codecov.yml
diff --git a/tools/pip/MANIFEST.in b/tools/pip/MANIFEST.in
index 2718efd..7a36d32 100644
--- a/tools/pip/MANIFEST.in
+++ b/tools/pip/MANIFEST.in
@@ -17,7 +17,7 @@
 
 include README
 include LICENSE
-include DISCLAIMER-WIP
+include DISCLAIMER
 include NOTICE
 include mxnet/COMMIT_HASH
 recursive-include mxnet/tools *
diff --git a/tools/source-exclude-artifacts.txt b/tools/source-exclude-artifacts.txt
index 88f02b5..b83011e 100644
--- a/tools/source-exclude-artifacts.txt
+++ b/tools/source-exclude-artifacts.txt
@@ -22,3 +22,5 @@
 
 R-package
 3rdparty/mkldnn/doc
+3rdparty/googletest/ci
+docs
diff --git a/tools/staticbuild/build.sh b/tools/staticbuild/build.sh
index 1306dce..5a35bf5 100755
--- a/tools/staticbuild/build.sh
+++ b/tools/staticbuild/build.sh
@@ -79,7 +79,7 @@
 cp tools/dependencies/LICENSE.binary.dependencies licenses/
 cp NOTICE licenses/
 cp LICENSE licenses/
-cp DISCLAIMER-WIP licenses/
+cp DISCLAIMER licenses/
 
 
 # Build mxnet