aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-07-21 16:57:38 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-07-21 16:57:38 +0000
commitef061e001e094c5198c2bf0199b3de7401cecce6 (patch)
tree134faa56762a17c775fa18d4b4784aeea3e352ae
parentc6c36df1fce6e8d61865d934d405804b1e2893ed (diff)
parentb70917a06af5a5e0687049d49cb1238681d427f4 (diff)
downloadbzip2-android12-mainline-sdkext-release.tar.gz
Change-Id: I5b356e0769b18028cd809d66cb813d40995fa095
-rw-r--r--Android.bp35
-rw-r--r--METADATA11
-rw-r--r--NOTICE42
3 files changed, 46 insertions, 42 deletions
diff --git a/Android.bp b/Android.bp
index 21d7bfa..a4fc80f 100644
--- a/Android.bp
+++ b/Android.bp
@@ -12,6 +12,40 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+package {
+ default_applicable_licenses: ["external_bzip2_license"],
+}
+
+// Added automatically by a large-scale-change that took the approach of
+// 'apply every license found to every target'. While this makes sure we respect
+// every license restriction, it may not be entirely correct.
+//
+// e.g. GPL in an MIT project might only apply to the contrib/ directory.
+//
+// Please consider splitting the single license below into multiple licenses,
+// taking care not to lose any license_kind information, and overriding the
+// default license using the 'licenses: [...]' property on targets as needed.
+//
+// For unused files, consider creating a 'fileGroup' with "//visibility:private"
+// to attach the license to, and including a comment whether the files may be
+// used in the current project.
+//
+// large-scale-change filtered out the below license kinds as false-positives:
+// SPDX-license-identifier-GPL
+// SPDX-license-identifier-OFL
+// See: http://go/android-license-faq
+license {
+ name: "external_bzip2_license",
+ visibility: [":__subpackages__"],
+ license_kinds: [
+ "SPDX-license-identifier-BSD",
+ "legacy_unencumbered",
+ ],
+ license_text: [
+ "LICENSE",
+ ],
+}
+
cc_library_static {
name: "libbz",
host_supported: true,
@@ -22,6 +56,7 @@ cc_library_static {
"//external/bsdiff:__subpackages__",
"//external/puffin:__subpackages__",
"//system/update_engine:__subpackages__",
+ "//system/core/fs_mgr/libsnapshot:__subpackages__",
],
arch: {
arm: {
diff --git a/METADATA b/METADATA
new file mode 100644
index 0000000..3cd3d0d
--- /dev/null
+++ b/METADATA
@@ -0,0 +1,11 @@
+name: "bzip2"
+
+third_party {
+ url {
+ type: GIT
+ value: "https://sourceware.org/git/bzip2.git"
+ }
+ version: "bzip2-1.0.8"
+ license_type: NOTICE
+ last_upgrade_date { year: 2021 month: 2 day: 8 }
+}
diff --git a/NOTICE b/NOTICE
deleted file mode 100644
index cc61417..0000000
--- a/NOTICE
+++ /dev/null
@@ -1,42 +0,0 @@
-
---------------------------------------------------------------------------
-
-This program, "bzip2", the associated library "libbzip2", and all
-documentation, are copyright (C) 1996-2010 Julian R Seward. All
-rights reserved.
-
-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. The origin of this software must not be misrepresented; you must
- not claim that you wrote the original software. If you use this
- software in a product, an acknowledgment in the product
- documentation would be appreciated but is not required.
-
-3. Altered source versions must be plainly marked as such, and must
- not be misrepresented as being the original software.
-
-4. The name of the author may not be used to endorse or promote
- products derived from this software without specific prior written
- permission.
-
-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.
-
-Julian Seward, jseward@bzip.org
-bzip2/libbzip2 version 1.0.6 of 6 September 2010
-
---------------------------------------------------------------------------