<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>15442</bug_id>
          
          <creation_ts>2024-03-14 08:43:47 +0000</creation_ts>
          <short_desc>do_create_spdx failures if DISTRO changes PV of the package</short_desc>
          <delta_ts>2026-03-12 15:11:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>5.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>IN PROGRESS IMPLEMENTATION</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.1 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pavel Zhukov">pavel</reporter>
          <assigned_to name="Joshua Watt">JPEWhacker</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>98465</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Zhukov">pavel</who>
    <bug_when>2024-03-14 08:43:47 +0000</bug_when>
    <thetext>There&apos;re two DISTRO in the layer. First one is -dev and specifies PREFERRED_VERSION to be &quot;git&quot; 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 &apos;1.1.131&apos; to &apos;git&apos;. 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` &quot;solves&quot; 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104606</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2026-03-12 15:11:25 +0000</bug_when>
    <thetext>Might be fixed by patchset that is in review.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>