<?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>15762</bug_id>
          
          <creation_ts>2025-02-16 10:56:06 +0000</creation_ts>
          <short_desc>BBFILES_DYNAMIC has no default value</short_desc>
          <delta_ts>2025-02-17 12:47:43 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>0.0.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>kweihmann</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>101101</commentid>
    <comment_count>0</comment_count>
    <who name="">kweihmann</who>
    <bug_when>2025-02-16 10:56:06 +0000</bug_when>
    <thetext>BBFILES_DYNAMIC doesn&apos;t come with a default value

bitbake-getvar BBFILES_DYNAMIC
NOTE: Starting bitbake server...
The variable &apos;BBFILES_DYNAMIC&apos; is not defined

unless it used by any of the layers in the setup.

As it&apos;s a builtin feature of bitbake, it should come with an empty default value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101103</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-02-16 23:45:23 +0000</bug_when>
    <thetext>I don&apos;t see why just because it is a variable bitbake can use, it needs to have an empty value...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101105</commentid>
    <comment_count>2</comment_count>
    <who name="">kweihmann</who>
    <bug_when>2025-02-17 05:09:52 +0000</bug_when>
    <thetext>Because there is currently no way to determine if a variable is supported, but by an intensive code grep, for variables that could be used.

Unfortunately the documentation is not always up to date, so the easiest would be to
use bitbake-getvar &lt;VAR&gt;, and if it has a history entry, support is still given.
Because all the variables are reported the same way, as they would be haven been removed entirely from the code base with the available tooling, so there is no way to get the information (without grepping the code).

In my opinion it won&apos;t hurt to define an empty value (as it will not have any technical implications) but open up this use case, which could also be used to automatically check the consistency of the documentation, in case there needs to be a use case just within core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>101109</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2025-02-17 12:47:43 +0000</bug_when>
    <thetext>(In reply to kweihmann from comment #2)
&gt; Because there is currently no way to determine if a variable is supported,
&gt; but by an intensive code grep, for variables that could be used.
&gt; 
&gt; Unfortunately the documentation is not always up to date, so the easiest
&gt; would be to
&gt; use bitbake-getvar &lt;VAR&gt;, and if it has a history entry, support is still
&gt; given.
&gt; Because all the variables are reported the same way, as they would be haven
&gt; been removed entirely from the code base with the available tooling, so
&gt; there is no way to get the information (without grepping the code).
&gt; 
&gt; In my opinion it won&apos;t hurt to define an empty value (as it will not have
&gt; any technical implications) but open up this use case, which could also be
&gt; used to automatically check the consistency of the documentation, in case
&gt; there needs to be a use case just within core.

I very strongly disagree. 

If things are missing in the documentation lets fix them but I do not want to add pointless defaults for all possible variables, it will clutter the code more that helping anything.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>