[yocto] populate_sysroot and sstate question

Vuille, Martin (Martin) vmartin at avaya.com
Wed Mar 25 06:33:26 PDT 2015


> From: Richard Purdie [mailto:richard.purdie at linuxfoundation.org]
> Sent: March 25, 2015 9:09 AM
> 
> On Tue, 2015-03-24 at 22:22 +0000, Vuille, Martin (Martin) wrote:
> > Is there a better way to suppress populate_sysroot without breaking
> > setscene?
> 
> Define an empty sysroot_stage_dirs function.
> 

Thanks Richard, but I still get the same error, see below. Perhaps I misunderstood
your instructions.

I did a cleansstate on the package, added the empty function to the recipe

	do_populate_sysroot () {
	}

	sysroot_stage_dirs() {
	}

When I delete poky/build/tmp and run the build again, I get this error during
setscene processing:

	ERROR: Error executing a python function in /home/platform/Workspace/dspgbase/poky/../meta-Avaya/recipes-avaya/avaya-fonts-bdf/avaya-fonts-bdf_1.0.0.bb:

	The stack trace of python calls that resulted in this exception/failure was:
	File: 'do_populate_sysroot_setscene', lineno: 6, function: <module>
	     0002:def do_populate_sysroot_setscene(d):
	     0003:    sstate_setscene(d)
	     0004:
	     0005:
	 *** 0006:do_populate_sysroot_setscene(d)
	     0007:
	File: 'do_populate_sysroot_setscene', lineno: 3, function: do_populate_sysroot_setscene
	     0001:
	     0002:def do_populate_sysroot_setscene(d):
	 *** 0003:    sstate_setscene(d)
	     0004:
	     0005:
	     0006:do_populate_sysroot_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: 68, function: sstate_installpkg
	     0064:        os.remove(fixmefn)
	     0065:
	     0066:    for state in ss['dirs']:
	     0067:        prepdir(state[1])
	 *** 0068:        os.rename(sstateinst + state[0], state[1])
	     0069:    sstate_install(ss, d)
	     0070:
	     0071:    for plain in ss['plaindirs']:
	     0072:        workdir = d.getVar('WORKDIR', True)
	Exception: OSError: [Errno 2] No such file or directory

MV	


More information about the yocto mailing list