]> code.ossystems Code Review - openembedded-core.git/commit
base/insane: Check pkgs lics are subset of recipe lics only once
authorQuentin Schulz <quentin.schulz@streamunlimited.com>
Mon, 20 Apr 2020 20:13:29 +0000 (22:13 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 May 2020 09:49:12 +0000 (10:49 +0100)
commit852408ed4be1f64c57e196688728b7ed223d3493
treee5ffcd62e778be60c56a686a120737c14655b5b1
parent586061c469a3340ec3a60ff59dae2e9ee33c3398
base/insane: Check pkgs lics are subset of recipe lics only once

Move logic checking that all packages licenses are only a subset of
recipe licenses from base.bbclass to the insane.bbclass so that it's
evaluated only once, during do_package_qa.

As explained in the linked bugzilla entry, if a package license is not
part of the recipe license, the warning message gets shown an
unreasonable amount of time because it's evaluated every time a recipe
is parsed.

[YOCTO #10130]

This also makes it possible to silence this error with INSANE_SKIP.

Signed-off-by: Quentin Schulz <quentin.schulz@streamunlimited.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass
meta/classes/insane.bbclass