<?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>16407</bug_id>
          
          <creation_ts>2026-08-25 20:59:19 +0000</creation_ts>
          <short_desc>SPDX_* variable prefix doesn&apos;t work as documented and documentation is incomplete</short_desc>
          <delta_ts>2026-09-17 15:05:57 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Variables Glossary</product>
          <component>variables-glossary</component>
          <version>6.0.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.0.4</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>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>106642</commentid>
    <comment_count>0</comment_count>
    <who name="Michał Iwanicki">iwanicki92</who>
    <bug_when>2026-08-25 20:59:19 +0000</bug_when>
    <thetext>The documentation that you can use any prefix for SPDX variable is wrong, since it isn&apos;t supported. One of the examples in https://docs.yoctoproject.org/dev/ref-manual/variables.html#term-SPDX_INVOKED_BY:

```
MY_COMPANY_name = &quot;Acme Corp&quot;
MY_COMPANY_type = &quot;organization&quot;
SPDX_IMAGE_SUPPLIER = &quot;MY_COMPANY&quot;
SPDX_SDK_SUPPLIER = &quot;MY_COMPANY&quot;
```

From looking at the code, &lt;PREFIX&gt; isn&apos;t used at all in most of those variables, only the (taken from new_agent function in meta/lib/oe/sbom30.py):

- &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) - only _email is mentioned in documentation
- &lt;PREFIX&gt;_ref - not mentioned at all, works &quot;somewhat&quot; like what documentation says setting prefix does.

The issue applies to (either mentioned directly, or by linking to, usually, SPDX_IMAGE_SUPPLIER):
- SPDX_IMAGE_SUPPLIER
- SPDX_PACKAGE_SUPPLIER
- SPDX_SDK_SUPPLIER
- SPDX_INVOKED_BY
- SPDX_ON_BEHALF_OF

The patch that I posted (https://lists.openembedded.org/g/openembedded-core/topic/patch_v2/120910416) tried to change the code to match the documentation but based on the Joshua comment: https://lists.openembedded.org/g/openembedded-core/message/244245 it&apos;s the documentation that needs to be fixed not the code.

Steps to reproduce the issue:
- try to use documented example (the one I mentioned in the beginning) and check if generated SPDX contains `Acme Corp`</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106873</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2026-09-17 15:05:57 +0000</bug_when>
    <thetext>Fixed in:

24f7a2b25 (&quot;ref-manual/variables.rst: Fix the documentation for the SPDX agent variables&quot;)

f7273b885 (&quot;ref-manual/variables.rst: Document SPDX_AUTHORS&quot;)

of yocto-docs</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>