Bug 7597 - uninative-tarball errors out during sstate restore
Summary: uninative-tarball errors out during sstate restore
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: devtools / tool chain (show other bugs)
Version: 1.8
Hardware: All Multiple
: Medium normal
Target Milestone: 1.9
Assignee: Chen Qi
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-10 17:33 UTC by Paul Eggleton
Modified: 2015-04-24 13:07 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2015-04-10 17:33:06 UTC
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: 'do_packagedata_setscene', lineno: 6, function: <module>
     0002:def do_packagedata_setscene(d):
     0003:    sstate_setscene(d)
     0004:
     0005:
 *** 0006:do_packagedata_setscene(d)
     0007:
File: 'do_packagedata_setscene', 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: 'sstate.bbclass', 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("No suitable staging package found")
     0006:
File: 'sstate.bbclass', lineno: 33, function: sstate_installpkg
     0029:        bb.build.exec_func(f, d)
     0030:
     0031:    for state in ss['dirs']:
     0032:        prepdir(state[1])
 *** 0033:        os.rename(sstateinst + state[0], state[1])
     0034:    sstate_install(ss, d)
     0035:
     0036:    for plain in ss['plaindirs']:
     0037:        workdir = d.getVar('WORKDIR', 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 '1' - real task will be run instead
------- snip -------
Comment 1 Paul Eggleton 2015-04-24 09:02:01 UTC
Qi has sent a fix for this on the mailing list.