From patchwork Wed Jan 9 09:07:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/1] sstate.bbclass:specify function dirs to avoid race Date: Wed, 09 Jan 2013 09:07:46 -0000 From: Hongxu Jia X-Patchwork-Id: 42379 Message-Id: <1405c68a4d395c6c527340f8f604c6462927662a.1357695564.git.hongxu.jia@windriver.com> To: 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 --- meta/classes/sstate.bbclass | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index d544da9..68fd996 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -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'))