]> 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)
committerSteve Sakoman <steve@sakoman.com>
Fri, 22 May 2020 16:30:33 +0000 (06:30 -1000)
commitae404ef230882e442e9390b314e1ce023fdbbd1b
treecdf69f8965569386498d0e139618f0ba15584554
parent1af607d9e635e7cf2f6cf3e4c6d05f1e2cb6acc9
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>
(cherry picked from commit 852408ed4be1f64c57e196688728b7ed223d3493)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/base.bbclass
meta/classes/insane.bbclass