]> code.ossystems Code Review - openembedded-core.git/commitdiff
ptest: ensure do_install_ptest_base task runs in fakeroot context
authorRoss Burton <ross.burton@intel.com>
Tue, 3 Dec 2013 17:21:57 +0000 (17:21 +0000)
committerRobert Yang <liezhi.yang@windriver.com>
Sun, 26 Jan 2014 06:08:14 +0000 (14:08 +0800)
As this task is installing files into $D it needs to run inside pseudo so that
special permissions and owners are preserved.

(From OE-Core master rev: 64f0a0bc408d8e32d5e795aeb9fffee0539f5e22)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
meta/classes/ptest.bbclass

index 7cc8d26d8c28a1b7b55e2f548e333162d2a08431..897f29197e47346a6b006004e53971d75272e258 100644 (file)
@@ -57,3 +57,8 @@ do_install_ptest_base[cleandirs] = "${D}${PTEST_PATH}"
 addtask configure_ptest_base after do_configure before do_compile
 addtask compile_ptest_base   after do_compile   before do_install
 addtask install_ptest_base   after do_install   before do_package
+
+python () {
+    if not bb.data.inherits_class('native', d) and not bb.data.inherits_class('cross', d):
+        d.setVarFlag('do_install_ptest_base', 'fakeroot', 1)
+}