[oe-commits] Hongxu Jia : sstate.bbclass:specify function dirs to avoid race

git at git.openembedded.org git at git.openembedded.org
Wed Jan 9 15:17:32 UTC 2013


Module: openembedded-core.git
Branch: master
Commit: ccef1cf783669a4683eda9d4b44dbe6bcf426259
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=ccef1cf783669a4683eda9d4b44dbe6bcf426259

Author: Hongxu Jia <hongxu.jia at windriver.com>
Date:   Wed Jan  9 17:07:46 2013 +0800

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 <hongxu.jia at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/sstate.bbclass |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

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'))





More information about the Openembedded-commits mailing list