The function being uses here makes comparisions with the canonicalised license name so we need to canonicalise it for the function else the comparisions don't work and can give incorrect results.
Signed-off-by: Richard Purdie <[email protected]> --- meta/classes/license_image.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/license_image.bbclass b/meta/classes/license_image.bbclass index c96b032ebd4..13178f51eb1 100644 --- a/meta/classes/license_image.bbclass +++ b/meta/classes/license_image.bbclass @@ -50,7 +50,7 @@ def write_license_files(d, license_manifest, pkg_dic, rootfs=True): for pkg in sorted(pkg_dic): if bad_licenses and pkg not in whitelist: try: - licenses = incompatible_pkg_license(d, bad_licenses, pkg_dic[pkg]["LICENSE"]) + licenses = incompatible_pkg_license(d, bad_licenses, canonical_license(d, pkg_dic[pkg]["LICENSE"])) if licenses: bb.fatal("Package %s cannot be installed into the image because it has incompatible license(s): %s" %(pkg, ' '.join(licenses))) (pkg_dic[pkg]["LICENSE"], pkg_dic[pkg]["LICENSES"]) = \ -- 2.27.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#148315): https://lists.openembedded.org/g/openembedded-core/message/148315 Mute This Topic: https://lists.openembedded.org/mt/80734229/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
