<?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>7597</bug_id>
          
          <creation_ts>2015-04-10 17:33:06 +0000</creation_ts>
          <short_desc>uninative-tarball errors out during sstate restore</short_desc>
          <delta_ts>2015-04-24 13:07:31 +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>1.8</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50251</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-04-10 17:33:06 +0000</bug_when>
    <thetext>If restoring uninative-tarball from sstate you get the following error:

------- snip -------
NOTE: Preparing RunQueue
NOTE: Executing SetScene Tasks
ERROR: Error executing a python function in /home/user/poky/poky/meta/recipes-core/meta/uninative-tarball.bb:

The stack trace of python calls that resulted in this exception/failure was:
File: &apos;do_packagedata_setscene&apos;, lineno: 6, function: &lt;module&gt;
     0002:def do_packagedata_setscene(d):
     0003:    sstate_setscene(d)
     0004:
     0005:
 *** 0006:do_packagedata_setscene(d)
     0007:
File: &apos;do_packagedata_setscene&apos;, lineno: 3, function: do_packagedata_setscene
     0001:
     0002:def do_packagedata_setscene(d):
 *** 0003:    sstate_setscene(d)
     0004:
     0005:
     0006:do_packagedata_setscene(d)
     0007:
File: &apos;sstate.bbclass&apos;, lineno: 3, function: sstate_setscene
     0001:def sstate_setscene(d):
     0002:    shared_state = sstate_state_fromvars(d)
 *** 0003:    accelerate = sstate_installpkg(shared_state, d)
     0004:    if not accelerate:
     0005:        raise bb.build.FuncFailed(&quot;No suitable staging package found&quot;)
     0006:
File: &apos;sstate.bbclass&apos;, lineno: 33, function: sstate_installpkg
     0029:        bb.build.exec_func(f, d)
     0030:
     0031:    for state in ss[&apos;dirs&apos;]:
     0032:        prepdir(state[1])
 *** 0033:        os.rename(sstateinst + state[0], state[1])
     0034:    sstate_install(ss, d)
     0035:
     0036:    for plain in ss[&apos;plaindirs&apos;]:
     0037:        workdir = d.getVar(&apos;WORKDIR&apos;, True)
Exception: OSError: [Errno 2] No such file or directory

WARNING: Logfile for failed setscene task is /media/large/tmp/work/cortexa8hf-vfp-neon-poky-linux-gnueabi/uninative-tarball/1.0-r0/temp/log.do_packagedata_setscene.24905
WARNING: Setscene task 2 (/home/user/poky/poky/meta/recipes-core/meta/uninative-tarball.bb, do_packagedata_setscene) failed with exit code &apos;1&apos; - real task will be run instead
------- snip -------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50495</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-04-24 09:02:01 +0000</bug_when>
    <thetext>Qi has sent a fix for this on the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50506</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-04-24 13:07:31 +0000</bug_when>
    <thetext>Fix merged to master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2d74cb4934f0e81cb0475fbadf91b96c903b295e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>