Bug 15442 - do_create_spdx failures if DISTRO changes PV of the package
Summary: do_create_spdx failures if DISTRO changes PV of the package
Status: IN PROGRESS IMPLEMENTATION
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 5.0
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 6.1 M3
Assignee: Joshua Watt
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-03-14 08:43 UTC by Pavel Zhukov
Modified: 2026-03-12 15:11 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Zhukov 2024-03-14 08:43:47 UTC
There're two DISTRO in the layer. First one is -dev and specifies PREFERRED_VERSION to be "git" for some packages, second one is -release and specifies PREFERRED_VERSION to actual version (1.1.131 in this particular case). 

bitbake distro-dev - OK
bitbake distro-release - ERROR: packagename-1.1.131-r0 do_create_spdx: Recipe packagename is trying to change PV from '1.1.131' to 'git'. This will cause do_package_write_* failures since the incorrect data will be used and they will be unable to find the right workdir.


`bitbake -c clean packagename` "solves" this particular issue however do_create_spdx fails on packages problematic package depends on with different error message:

ERROR: packagename-git-r0 do_create_runtime_spdx: No SPDX file found for package some-container, False sstate:some-container:core2-64-oe-linux:git:r0:core2-64:11: sstate:some-container::git:r0::11:



Same happens if -dev is build after -release. First one completed while second fails with do_create_spdx
Comment 1 Randy MacLeod 2026-03-12 15:11:25 UTC
Might be fixed by patchset that is in review.