<?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>1681</bug_id>
          
          <creation_ts>2011-10-14 15:22:31 +0000</creation_ts>
          <short_desc>Allow meta-toolchain to be used instead of building tools dynamically</short_desc>
          <delta_ts>2012-08-13 13:24:58 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Gary Thomas">gary</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bjst</cc>
    
    <cc>david.nystrom</cc>
    
    <cc>mail</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16886</commentid>
    <comment_count>0</comment_count>
    <who name="Gary Thomas">gary</who>
    <bug_when>2011-10-14 15:22:31 +0000</bug_when>
    <thetext>Create a general purpose recipe which can be used to allow the use of a
Poky/Yocto built toolchain (meta-toolchain) instead of building one dynamically.
Similar to the CSL recipe 
  http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-core/meta/external-csl-toolchain_2008q3-72.bb

It should not be necessary for &quot;Joe Average&quot; to have to figure out how to do this,
rather a simple choice in local.conf should suffice.  The &quot;magic&quot; currently required
to make this work is beyond most users of Poky/Yocto.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18692</commentid>
    <comment_count>1</comment_count>
    <who name="David Nyström">david.nystrom</who>
    <bug_when>2012-02-22 01:09:22 +0000</bug_when>
    <thetext>Gary, Saul, Richard

We are currently in a sprint needing this feature.
Whats the status of the fix ?

If there is nothing done on this, and if you are OK with it, assign this bug to me.
Would it be possible for us to have a branch in poky.git || poky-contrib.git to make it easier for us to work upstream (review and e.t.c.) ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18695</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-02-22 03:17:25 +0000</bug_when>
    <thetext>The mechanism we&apos;re encouraging for this is to use binaries from the sstate cache.

If you are worried about the checksums changing and want to really fix it down, you could create a custom sstate cache policy which fixed the toolchain component checksums, like an extended version of meta/lib/oe/sstatesig.py.

We did once have external toolchain support for our own toolchains like you describe but it was a massive pain to maintain and use, duplicating a lot of the sstate like code to capture the pre built packages (needing to handle all of .deb, .ipk and .rpm) as well as the pkgdata output from do_package. I cannot advise more strongly about not wanting to do this again.

The external toolchain recipes will of course work perfectly well if you are happy for the system to re-package things each time like external-csl does.

As for poky-contrib access, that is no problem at all. Please send Michael Halsted an ssh key, cc me and we can get people access.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18697</commentid>
    <comment_count>3</comment_count>
    <who name="David Nyström">david.nystrom</who>
    <bug_when>2012-02-22 04:48:14 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; The mechanism we&apos;re encouraging for this is to use binaries from the sstate
&gt; cache.
&gt; 
&gt; If you are worried about the checksums changing and want to really fix it down,
&gt; you could create a custom sstate cache policy which fixed the toolchain
&gt; component checksums, like an extended version of meta/lib/oe/sstatesig.py.
&gt; 
&gt; We did once have external toolchain support for our own toolchains like you
&gt; describe but it was a massive pain to maintain and use, duplicating a lot of
&gt; the sstate like code to capture the pre built packages (needing to handle all
&gt; of .deb, .ipk and .rpm) as well as the pkgdata output from do_package. I cannot
&gt; advise more strongly about not wanting to do this again.

My main reason to not use the sstate is that I don&apos;t understand it entirely(yet), which of course if not a valid reason.
 
Is there any additional information (except the code) that contains some more details of what the sstate cache really does/contains ?

Why was the normal package format(ipk/deb/rpm) not chosen as a binary build cache ? I understand that this would probably force a user to use the same package format as selected by the pre-built.

I&apos;ll read up on the sstate and get back to you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18710</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-02-22 15:07:08 +0000</bug_when>
    <thetext>Take a look at http://www.yoctoproject.org/docs/latest/poky-ref-manual/poky-ref-manual.html#shared-state-cache</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23958</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-08-13 13:24:58 +0000</bug_when>
    <thetext>sstate exists for people wanting to use standalone toolchains built by OE. Adding the extra pieces for this to meta-toolchain was attempted in the past, its ulgy end error prone and sstate provides a much neater solution which already exists. This is therefore the one we&apos;re going to recommend and support.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>