]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
lib: Fix dependencies on SPDX code
authorJoshua Watt <JPEWhacker@gmail.com>
Tue, 11 Mar 2025 14:03:02 +0000 (08:03 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Mar 2025 21:29:34 +0000 (21:29 +0000)
commiteb597bf61cbcb0a4d43149404c93eec0894fb4c7
tree2017cb37b905c40675cbefb2bb794b49b2fa983f
parentb5491688a045e52b2a1a00d04b746ed6af456784
lib: Fix dependencies on SPDX code

The SPDX library code was being ignored from taskhash calculations due
to accidentally being omitted from BBIMPORTS. This meant that changes in
the code or dependent variables would not cause the task to rebuild
correctly.

In order to add spdx_common, convert the `Dep` object from a named tuple
to a frozen dataclass. These function more or less equivalently, but the
bitbake code parser cannot handle named tuples.

Finally, the vardepsexclude that used to be present on the recipe tasks
needs to be moved to the python code in order for the variables to be
correctly ignored. Several unused exclusions were removed

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx-3.0.bbclass
meta/lib/oe/__init__.py
meta/lib/oe/spdx_common.py