From 36f1ae42fe13dae174b7fb5eb85dc49d7d7b516b Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 22 Oct 2010 13:00:40 +0100 Subject: 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 --- meta/classes/package_rpm.bbclass | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/classes/package_rpm.bbclass') diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 0af93e7b74..4ad97c35c5 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -556,6 +556,7 @@ python do_package_write_rpm_setscene () { sstate_setscene(d) } addtask do_package_write_rpm_setscene +do_package_write_rpm_setscene[fakeroot] = "1" python do_package_write_rpm () { bb.build.exec_func("read_subpackage_metadata", d) -- cgit v1.2.3