<?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>8983</bug_id>
          
          <creation_ts>2016-01-22 07:51:20 +0000</creation_ts>
          <short_desc>No warning for variable written low case in local.conf; it&apos;s just ignored</short_desc>
          <delta_ts>2016-01-22 12:50:51 +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>devtools / tool chain</component>
          <version>2.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5426</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>58121</commentid>
    <comment_count>0</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-22 07:51:20 +0000</bug_when>
    <thetext>Adding in local.conf this line: 
inherit+=&quot;distrodata&quot; , will do no change. 

The variable is ignored, with no warning. 
We could add a warning at runtime, or add a Note in MegaManual. 

If there is a rule, that all variables should be UpperCase, then UpperCase all of them, regardless how are written in local.conf and display a warning for compliance.


Effects: 
I lost two days trying to use this indications and run: 
Tested on a network with proxy, adding &apos;inherit +=&quot;distrodata&quot;&apos; on local.conf
with the following commands

    for distrotask in distrodataall distro_checkall checklicenseall; do
        bitbake universe -c $distrotask
    done</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58131</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-01-22 11:04:15 +0000</bug_when>
    <thetext>I&apos;d already noted this issue in bug 5426. We could detect and warn/error for this specific issue, but it is worth noting that this is an unfortunate consequence of the design of the language - there is no warning for using an &quot;incorrect&quot; variable; the system is open-ended, just as shell scripts are for example. We might fix this one but there are probably infinite other ways you could typo a variable name or other construct and there&apos;s no practical way I can think of for us to generally guard against that.

Also, FYI not all variables are uppercase; for example, functions are actually variables and they are typically lower case, and there are numerous other counter-examples.

*** This bug has been marked as a duplicate of bug 5426 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58137</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-22 12:47:14 +0000</bug_when>
    <thetext>Well, at least a Note in documentation will help to warn people to be careful when using variable Upper or Lower; since it is case sensitive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58140</commentid>
    <comment_count>3</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2016-01-22 12:50:51 +0000</bug_when>
    <thetext>verified</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>