<?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>10173</bug_id>
          
          <creation_ts>2016-08-23 13:17:06 +0000</creation_ts>
          <short_desc>Suggested clarification of the OVERRIDES glossary entry</short_desc>
          <delta_ts>2016-09-01 18:08:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Reference</product>
          <component>handbook</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>01 Sept 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ulfalizer</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>srifenbark</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65448</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-08-23 13:17:06 +0000</bug_when>
    <thetext>Hello again,

OVERRIDES (and overrides in general) is a bit tersely documented at the moment. Here&apos;s a suggestion for a new version that includes some examples, mentions standard override-related variables, and explains the _pn-${PN} override:

  OVERRIDES:
    A colon-separated list of overrides that currently apply. Overrides are a
    BitBake mechanism that allows variables to be selectively overridden at the
    end of parsing. The set of overrides in OVERRIDES is meant to represent
    the &quot;state&quot; during building, including the current recipe being built, the
    machine it is being built for, etc.
    
    As an example, if the string &quot;an-override&quot; appears as an element in the
    colon-separated list in OVERRIDES, then the following assignment will
    override FOO with the value &quot;overridden&quot; at the end of parsing:
  
      FOO_an-override = &quot;overridden&quot;
  
    See the &quot;Conditional Syntax (Overrides)&quot; section of the BitBake User Manual
    for more information on the overrides mechanism.
  
    The default value of OVERRIDES includes the values of the [CLASSOVERRIDE],
    [MACHINEOVERRIDES], and [DISTROOVERRIDES] variables. Another important
    override included by default is pn-${PN}. This override allows variables
    to be set for a single recipe within configuration (.conf) files, like in
    the following example:
  
      FOO_pn-myrecipe = &quot;myrecipe-specific value&quot;
  
    An easy way to see what overrides apply is to search for OVERRIDES in the
    output of
    [bitbake -e](http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#usingpoky-debugging-viewing-variable-values).


In addition, the following note could be added to the end of the PREFERRED_VERSION glossary entry:

  Note {
  The _forcevariable override is not handled specially. It only works because
  the default value of [OVERRIDES] includes &quot;forcevariable&quot;.
  }


Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65700</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-09-01 17:58:45 +0000</bug_when>
    <thetext>Ulf, 

See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-OVERRIDES for updated OVERRIDES description in the glossary.

Also, see http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-PREFERRED_VERSION for the new note suggested.

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65702</commentid>
    <comment_count>2</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-09-01 18:03:00 +0000</bug_when>
    <thetext>Hello,

I think there&apos;s a missing &quot;it&quot; here:

  The set of overrides in OVERRIDES represents the &quot;state&quot; during building,
  which includes the current recipe being built, the machine for which &lt;it&gt; is
  being built, and so forth.

Looks fine other than that.

Thanks,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65703</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-09-01 18:08:26 +0000</bug_when>
    <thetext>Arghh.. I seem to be dropping words... sorry.

Fixed - see http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-OVERRIDES

Setting to RESOLVED and putting the doc flag to &quot;done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>