<?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>6912</bug_id>
          
          <creation_ts>2014-10-29 22:17:24 +0000</creation_ts>
          <short_desc>icecc INHERIT_DISTRO doesn&apos;t work</short_desc>
          <delta_ts>2015-01-30 19:37:11 +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>1.6.1</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>30 January 2015: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Bergin">petan679</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.doc.watcher</cc>
    
    <cc>poky.watcher</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>46659</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Bergin">petan679</who>
    <bug_when>2014-10-29 22:17:24 +0000</bug_when>
    <thetext>I follow the instructions for icecc.bbclass in chapter 7.45 and I can not get it working.

The manual states that I on a distribution level can add the following:

    INHERIT_DISTRO += &quot;icecc&quot;
    ICECC_DISABLED ??= &quot;1&quot;

This will make sure my builders use the same sstate signatures regardless if they use icecc or not. The way I did it to test was to create my own distro layer, called mydist, that inherits from Poky.

    $ cat ../meta-mydist/conf/distro/mydist.conf

    require conf/distro/poky.conf

    DISTRO = &quot;mydist&quot;
    DISTRO_NAME = &quot;MyDist&quot;

    INHERIT_DISTRO += &quot;icecc&quot;
    ICECC_DISABLED ??= &quot;1&quot;

In my bblayers.conf I added this layer directly after the meta-yocto layer. But with this addition my build environment will not work anymore. What happens is that the variable INHERIT_DISTRO is overwritten because my layer is picked before the poky/meta/conf/distro/defaultsetup.conf. I get the same behaviour if i edit the poky.conf and not use my own distro.

    $ bitbake core-image-base -e

    ...

    #
    # $INHERIT_DISTRO [3 operations]
    #   append /work/yocto/course/meta-mydist/conf/distro/mydist.conf:6
    #     &quot;icecc&quot;
    #   set? /work/yocto/course/poky/meta/conf/distro/defaultsetup.conf:22
    #     &quot;debian devshell sstate license&quot;
    #   set /work/yocto/course/poky/meta/conf/documentation.conf:226
    #     [doc] &quot;Lists classes that will be inherited at the distribution level. It is unlikely that you want to edit this variable.&quot;
    # computed:
    #   &quot; icecc&quot;
    INHERIT_DISTRO=&quot; icecc&quot;
    #

    ...

I would like some clarification about how to add the icecc on distro level and make it working.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46681</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-10-30 15:19:13 +0000</bug_when>
    <thetext>Martin would you be able to help advise on how we should adjust the documentation here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48137</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2015-01-21 12:20:58 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Martin would you be able to help advise on how we should adjust the
&gt; documentation here?

setting INHERIT_DISTRO value isn&apos;t specific to icecc

INHERIT_DISTRO_append = &quot; icecc&quot;

should work if you&apos;re setting it in config file parsed before defaultsetup.conf (immediate append &apos;+=&apos; just prevents &apos;?=&apos; from defaultsetup.conf to be applied)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48453</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2015-01-30 19:37:11 +0000</bug_when>
    <thetext>Hi Peter, 

I have implemented the change suggested by Martin to three manual development branches (1.6.x, 1.7.x and 1.8).  You can see the fix at http://www.yoctoproject.org/docs/1.6.2/ref-manual/ref-manual.html#ref-classes-icecc.

Marking the bug as RESOLVED and setting the documentation flag to &quot;done.&quot;

Thanks,
Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>