aboutcode-org / aboutcode-org/scancode-toolkit

Add more Android Bazel structured metadata

オープン
#2,844 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
easy enhancement good first issue package scan package-formats
主要言語
Python
スター
2.6k
フォーク
791
平均マージ
1日 12時間
マージ済み PR(30日)
5

説明

We have support for Buck and Bazel but there are likely new things in Android we do not support yet:

https://android.googlesource.com/platform/external/dng_sdk/+/refs/heads/master/Android.bp
```
// *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
// CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
// DEPENDING ON IT IN YOUR PROJECT. ***
package {
default_applicable_licenses: ["external_dng_sdk_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 included anything that looked like it might be a license
// text as a license_text. e.g. LICENSE, NOTICE, COPYING etc.
//
// Please consider removing redundant or irrelevant files from 'license_text:'.
// See: http://go/android-license-faq
license {
name: "external_dng_sdk_license",
visibility: [":__subpackages__"],
license_kinds: [
"SPDX-license-identifier-Apache-2.0",
"SPDX-license-identifier-MIT",
"legacy_by_exception_only", // by exception only
],
license_text: [
"LICENSE",
"LICENSE.source_code",
"LICENSE.technology",
"NOTICE",
"PATENTS",
],
}
```

https://android.googlesource.com/platform/external/exfatprogs/+/c7d72b803f7af322611675f15016039f2331e568/METADATA
```
name: exfatprogs
description:
As new exfat filesystem is merged into linux-5.7 kernel, exfatprogs is
created as an official userspace utilities that contain all of the
standard
utilities for creating and fixing and debugging exfat filesystem in linux
system. The goal of exfatprogs is to provide high performance and quality
at the level of exfat utilities in windows. And this software is licensed
under the GNU General Public License Version 2.
third_party {
url {
type: GIT
value: https://github.com/exfatprogs/exfatprogs/
}
version: 1.1.0
last_upgrade_date { year: 2021 month: 4 day: 9 }
license_type: RESTRICTED
}
```

https://android.googlesource.com/platform/external/dng_sdk/+/refs/heads/master/README.version
```
URL: http://download.adobe.com/pub/adobe/dng/dng_sdk_1_4.zip
Version: 1.4.0
License: BSD like License
License File: LICENSE
BugComponent: 174430
Owners: adaubert, floriank, yujieqin
```

These are key files:
- https://android.googlesource.com/platform/external/dng_sdk/+/refs/heads/master/PATENTS
- https://android.googlesource.com/platform/external/dng_sdk/+/refs/heads/master/OWNERS

- https://android.googlesource.com/platform/external/dng_sdk/+/refs/heads/master/METADATA
```
# *** THIS PACKAGE HAS SPECIAL LICENSING CONDITIONS. PLEASE
# CONSULT THE OWNERS AND opensource-licensing@google.com BEFORE
# DEPENDING ON IT IN YOUR PROJECT. ***
third_party {
license_type: BY_EXCEPTION_ONLY
}

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。