<?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>16408</bug_id>
          
          <creation_ts>2026-08-25 21:36:00 +0000</creation_ts>
          <short_desc>spdx-3.0 variables missing from related task vardeps which result in those variables changing being missed when using sstate-cache.</short_desc>
          <delta_ts>2026-08-27 14:40:06 +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>oe-core other</component>
          <version>6.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>NEW</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="Michał Iwanicki">iwanicki92</reporter>
          <assigned_to name="Joshua Watt">JPEWhacker</assigned_to>
          <cc>randy.macleod</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106643</commentid>
    <comment_count>0</comment_count>
    <who name="Michał Iwanicki">iwanicki92</who>
    <bug_when>2026-08-25 21:36:00 +0000</bug_when>
    <thetext>Changing SPDX related variables, e.g. SPDX_IMAGE_SUPPLIER_name isn&apos;t detected and sbom isn&apos;t regenerated. This is most likely due to those variables missing from e.g. task vardeps. I posted a patch that tried to fix this https://lists.openembedded.org/g/openembedded-core/message/244004 but it only fixed what I noticed which is likely only very small subsection of missing vardeps. Not only that but the patch is wrong due to findings described in https://bugzilla.yoctoproject.org/show_bug.cgi?id=16407.

The issue is most likely with:

- &lt;PREFIX&gt;_name
- &lt;PREFIX&gt;_type
- &lt;PREFIX&gt;_import
- &lt;PREFIX&gt;_comment
- &lt;PREFIX&gt;_id_* (all of the options in oe.spdx30.ExternalIdentifierType.NAMED_INDIVIDUALS)
- &lt;PREFIX&gt;_ref

Where prefix can be either:

- SPDX_IMAGE_SUPPLIER
- SPDX_PACKAGE_SUPPLIER
- SPDX_SDK_SUPPLIER
- SPDX_INVOKED_BY
- SPDX_ON_BEHALF_OF

And possibly SPDX_AUTHORS and it&apos;s combinations like SPDX_AUTHORS_&lt;AUTHOR&gt;_name.

&lt;PREFIX&gt;_ref refers to another variable that should be used for e.g. _name, _type, so if:

SPDX_SDK_SUPPLIER_ref = &quot;SPDX_IMAGE_SUPPLIER&quot;

then task that generates SBOM for SDK should depend on SPDX_IMAGE_SUPPLIER_* variables.

I verified the issue with SPDX_IMAGE_SUPPLIER_name/_type and SPDX_PACKAGE_SUPPLIER_name/_type on the newest master and wrynose release.

Reproduction:

- Build image with e.g. 

  ```
  SPDX_IMAGE_SUPPLIER_name = &quot;AAAA&quot;
  SPDX_IMAGE_SUPPLIER_type = &quot;organization&quot;
  SPDX_PACKAGE_SUPPLIER_name = &quot;BBBB&quot;
  SPDX_PACKAGE_SUPPLIER_type = &quot;organization&quot;
  ```

  set in local.conf

- Rebuild the image after changing SPDX_IMAGE_SUPPLIER_name/SPDX_PACKAGE_SUPPLIER_name to something different - make sure to use sstate-cache

Actual Results:

The SPDX/SBOM tasks didn&apos;t run again and generated image SBOM is the same and doesn&apos;t contain new supplier name

Expected result:

- SPDX/SBOM generation tasks run again
- image SBOM is regenerated and contains changed supplier name

Build Date &amp; Hardware:

Last one was: 24.08.2026 in kas-container 4.2 (Debian 12)

layer commits used:
- bitbake: d1886335f0d7fa86e87c6001d5be306a8e90586b
- openembedded-core: 35a2c6ed7987763dadbe45ad86095e1aee1c7314 
- meta-yocto: 9c6cf36c3511b94957aba04002d98bec665e9f1e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>