Bug 16336

Summary: SPDX has runtime dependencies to uninstalled packages
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Peter Marko <peter.marko>
Component: oe-core otherAssignee: Joshua Watt <JPEWhacker>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Medium CC: JPEWhacker, tim.orling
Version: 6.0   
Target Milestone: 6.2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Peter Marko 2026-06-29 12:21:16 UTC
In case IMAGE_FEATURES contains read-only-rootfs or when FORCE_RO_REMOVE is set, do_rootfs code will force-uninstall some packages.
However SPDX still lists them as installed because they get there via RDEPENDS statements.

Proposed solution was not accepted by Joshua and there is currently no vision how to do it differently.

See discussion in https://lists.openembedded.org/g/openembedded-core/message/239635
Comment 1 Joshua Watt 2026-07-02 14:33:44 UTC
To be clear, our SPDX output doens't directly list the removed packages as "installed". They are build time dependencies of the root file system (which is accurate), and they are still listed as runtime dependencies of the packages that depend on them at runtime (which is also accurate; just because you remove the package doesn't mean that it isn't still a runtime dependency).

Probably the solution won't change either of these things, but rather more directly indicate that the rootfs has packages installed or uninstalled.
Comment 2 Joshua Watt 2026-10-22 15:17:41 UTC
I have some features in the SPDX 3.1 that will help with this, but SPDX 3.1 is not released yet