summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-10-22 13:00:40 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-10-22 13:00:40 +0100
commit36f1ae42fe13dae174b7fb5eb85dc49d7d7b516b (patch)
tree0bf129fbd24cc21652ffa387400b4925c24218f9 /meta/classes/package.bbclass
parent00a96a20995cefacc52e10559029de32941ecf6e (diff)
downloadpoky-36f1ae42fe13dae174b7fb5eb85dc49d7d7b516b.tar.gz
pseudo/fakeroot: Move the pseudo directory creation into bitbake
If sstate was used to accelerate a build, the pseudo directory might not have been created leading to subsequent task failures. Also, sstate packages were not being installed under pseudo context meaning file permissions could have been lost. Fix these problems by creating a FAKEROOTDIRS variable which bitbake ensures exists before running tasks and running the appropriate setscene tasks under fakeroot context. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index b64ff5de58..a35fbb29ef 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1096,6 +1096,8 @@ python do_package_setscene () {
1096 sstate_setscene(d) 1096 sstate_setscene(d)
1097} 1097}
1098addtask do_package_setscene 1098addtask do_package_setscene
1099do_package_setscene[fakeroot] = "1"
1100
1099 1101
1100# Dummy task to mark when all packaging is complete 1102# Dummy task to mark when all packaging is complete
1101do_package_write () { 1103do_package_write () {