]> code.ossystems Code Review - openembedded-core.git/commitdiff
license_image: Don't canonicalise INCOMPATIBLE_LICENSE
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 18 Feb 2021 15:08:49 +0000 (15:08 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 Feb 2021 21:59:52 +0000 (21:59 +0000)
The code internally correctly handles canonicalisation of these license
fields, we shouldn't call it manually. The issue is that the fields can
contain wildcards and GPLv3* means something quite different to GPLv3-only*.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/license_image.bbclass

index 36ddd84805be521728b2c7198e35778552f2bfd5..c96b032ebd4abaf494b41683889fd4eb9b4318e3 100644 (file)
@@ -40,7 +40,6 @@ def write_license_files(d, license_manifest, pkg_dic, rootfs=True):
     import stat
 
     bad_licenses = (d.getVar("INCOMPATIBLE_LICENSE") or "").split()
-    bad_licenses = [canonical_license(d, l) for l in bad_licenses]
     bad_licenses = expand_wildcard_licenses(d, bad_licenses)
 
     whitelist = []