<?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>10174</bug_id>
          
          <creation_ts>2016-08-23 13:22:44 +0000</creation_ts>
          <short_desc>Suggested rewriting of the CLASSOVERRIDE glossary entry</short_desc>
          <delta_ts>2016-09-01 19:27:40 +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>65449</commentid>
    <comment_count>0</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-08-23 13:22:44 +0000</bug_when>
    <thetext>...to include another example, explain where CLASSOVERRIDE is set, add some notes, and link back to OVERRIDES:

  CLASSOVERRIDE:
    An internal variable specifying the special class override
    that should currently apply (e.g. &quot;class-target&quot;, &quot;class-native&quot;, and so
    forth). The classes that use this variable (e.g. [native.bbclass],
    [nativesdk.bbclass], and so forth) set it to appropriate values.
  
    Note {
    CLASSOVERRIDE gets its default &quot;class-target&quot; value from bitbake.conf.
    }
  
    As an example, the following override allows you to install extra files,
    but only when building for the target:
  
      do_install_append_class-target() {
          install my-extra-file ${D}${sysconfdir}
      }
  
    Here is an example where &quot;python-native&quot; is added to DEPENDS, but only when
    building for the build host:
  
      DEPENDS_append_class-native = &quot; python-native&quot;
  
    The underlying mechanism behind CLASSOVERRIDE is simply that is it included
    in the default value of [OVERRIDES].


Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65704</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-09-01 18:36:28 +0000</bug_when>
    <thetext>Ulf, 

See http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-CLASSOVERRIDE

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65706</commentid>
    <comment_count>2</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-09-01 18:51:21 +0000</bug_when>
    <thetext>Looks good to me.

Thanks,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65709</commentid>
    <comment_count>3</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-09-01 18:58:39 +0000</bug_when>
    <thetext>Hmz... on a second thought, maybe it would be better if there was an example that did a straight assignment instead of using _append.

Could the second example (the DEPENDS one) be replaced with the following?

  Here is an example where FOO is set to &quot;native&quot; when building for the
  build host, and to &quot;other&quot; otherwise:

   FOO_class-native = &quot;native&quot;
   FOO = &quot;other&quot;


Cheers,
Ulf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65710</commentid>
    <comment_count>4</comment_count>
    <who name="">ulfalizer</who>
    <bug_when>2016-09-01 18:59:18 +0000</bug_when>
    <thetext>(You could close right away if you&apos;re fine with that change btw. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65715</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-09-01 19:27:40 +0000</bug_when>
    <thetext>Ulf, 

I put it in but not verbatim.  Look at the sentence right before the new example.  I hope you are okay with that.  http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-CLASSOVERRIDE

Thanks,
Scott

&lt;setting to RESOLVED and clearing the doc flag.  If you don&apos;t like my re-wording just send me another comment on here.&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>