]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
lib/package: Check incompatible licenses at packaging time
authorJoshua Watt <JPEWhacker@gmail.com>
Thu, 24 Oct 2024 19:03:09 +0000 (13:03 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Oct 2024 14:37:01 +0000 (15:37 +0100)
commit1816c5a5e724a7f907c9afe4a47b6699ea081ace
tree2be0f433e2444cc49082cf040baf360705e4e050
parent86eb409e3c1b30110869ec5a0027ae2d48bbfe7f
lib/package: Check incompatible licenses at packaging time

Instead of checking for incompatible licenses in the anonymous python
and setting '_exclude_incompatible-', (re)check all the packages in
populate_packages(). This ensures that all packages are processed, even
dynamically generated ones.

The use of the '_exclude-incompatible-' variable set in base.bbclass has
been the mechanism used for per-packages licenses since it was added as
a feature (although with different names for the variable throughout
history). However, since this misses dynamic packages, calling
oe.license.skip_incompatible_package_licenses() a second time on the
actual final package set is a better solution.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes-global/base.bbclass
meta/classes-global/package.bbclass
meta/lib/oe/package.py