Disable license check per default

This commit is contained in:
Andreas Cord-Landwehr
2021-02-07 10:03:23 +01:00
parent b880c4bbe0
commit 1ddbf82198
2 changed files with 15 additions and 11 deletions

View File

@@ -90,16 +90,17 @@ do_populate_lic_prepend() {
print('Set LIC_FILES_CHKSUM from known SPDX files to:', d.getVar('LIC_FILES_CHKSUM'))
# QA test for complete statement
src_licenses = os.listdir(os.path.join(srcdir, 'LICENSES/'))
for license_file in src_licenses:
# convert license_file to SPDX identifier
license_name = license_file
if license_name.endswith('.txt'):
license_name = license_name[:-4]
if d.getVar('KF5_REUSE_LICENSECHECK_ENABLED') and d.getVar('KF5_REUSE_LICENSECHECK_ENABLED') == '1':
src_licenses = os.listdir(os.path.join(srcdir, 'LICENSES/'))
for license_file in src_licenses:
# convert license_file to SPDX identifier
license_name = license_file
if license_name.endswith('.txt'):
license_name = license_name[:-4]
# compute list intersection and test if empty
if license_name in spdx_id_to_yocto_map:
if list(set(recipe_licenses) & set(spdx_id_to_yocto_map[license_name])):
continue
bb.warn("QA Issue: %s [%s]" % (license_name + " found in SRC but not in package license statement", "reuse_license"))
# compute list intersection and test if empty
if license_name in spdx_id_to_yocto_map:
if list(set(recipe_licenses) & set(spdx_id_to_yocto_map[license_name])):
continue
bb.warn("QA Issue: %s [%s]" % (license_name + " found in SRC but not in package license statement", "reuse_license"))
}

View File

@@ -19,3 +19,6 @@ BBFILE_PRIORITY_kf5 = "6"
LICENSE_PATH += "${LAYERDIR}/conf/licenses"
LAYERSERIES_COMPAT_kf5 = "sumo thud warrior zeus dunfell"
# disable check per default until all recipes are updated
KF5_REUSE_LICENSECHECK_ENABLED = "0"