sstate.bbclass:specify function dirs to avoid race
cover sstate.bbclass:specify function dirs to avoid race
The following changes since commit 7e1f8faad0c4b6f490c26f87acc698dd6e002b15:
perl: Remove bashism from perl-tests.inc (2013-01-07 22:37:37 +0000)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib hongxu/specify_func_dirs
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/specify_func_dirs
Hongxu Jia (1):
sstate.bbclass:specify function dirs to avoid race
meta/classes/sstate.bbclass | 5 +++++ 1 file changed, 5 insertions(+)
Signature · 1 line
1.7.10.4
PATCH 1/1 sstate.bbclass:specify function dirs to avoid race
Specify dirs in which the shell function "sstate_create_package" and "sstate_unpack_package" are executed and don't use ${B} as default dirs to avoid possible race with task do_rootfs at deb image creation time.
[YOCTO #3674]
Signed-off-by Hongxu Jia <[email protected]>
--- meta/classes/sstate.bbclass | 5 +++++ 1 file changed, 5 insertions(+)
meta/classes/sstate.bbclass +5 -0
@@ -33,6 +33,11 @@ SSTATE_MANMACH ?= "${SSTATE_PKGARCH}" SSTATEPREINSTFUNCS ?= "" SSTATEPOSTINSTFUNCS ?= "" +# Specify dirs in which the shell function is executed and don't use ${B} +# as default dirs to avoid possible race about ${B} with other task. +sstate_create_package[dirs] = "${SSTATE_BUILDDIR}" +sstate_unpack_package[dirs] = "${SSTATE_INSTDIR}" + python () { if bb.data.inherits_class('native', d): d.setVar('SSTATE_PKGARCH', d.getVar('BUILD_ARCH'))
Signature · 1 line
1.7.10.4