<?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>13599</bug_id>
          
          <creation_ts>2019-10-17 15:23:14 +0000</creation_ts>
          <short_desc>Enhancement: Detect variables that shouldn&apos;t be defined in image scope, but in global (distro) scope</short_desc>
          <delta_ts>2026-10-01 15:48:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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>enhancement</bug_severity>
          <target_milestone>6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</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>85378</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2019-10-17 15:23:14 +0000</bug_when>
    <thetext>I&apos;ve seen numerous instances of people trying to set VIRTUAL_RUNTIME_... within an image bb or image bbappend, and then not being able to figure out why it&apos;s being &quot;ignored&quot;.

There needs to be a way to define the scope of a variable (in human, if not machine terms) and then scan for violations of the scope.

One possible way to do this would be to add a (standard) &apos;scope&apos; flag to variables.  If unset, it&apos;s everywhere.. if it&apos;s set to &apos;distro&apos;, then it can only be &quot;set&quot; outside of a recipe.  If it&apos;s set to &apos;recipe&apos; it needs to be set within a recipe or using an override (such as pn-recipe)...</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>