[oe-commits] Ross Burton : ptest: use fakeroot for do_install_ptest_base

git at git.openembedded.org git at git.openembedded.org
Wed Sep 9 13:53:13 UTC 2015


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

Author: Ross Burton <ross.burton at intel.com>
Date:   Mon Sep  7 18:31:39 2015 +0100

ptest: use fakeroot for do_install_ptest_base

The do_install_ptest_base task wasn't running in the fakeroot environment so
files installed by do_install_ptest were often not owned by root:root but the
user running the builds.

Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/ptest.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 2ac9143..f30f26a 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -36,7 +36,7 @@ do_install_ptest() {
     :
 }
 
-do_install_ptest_base() {
+fakeroot do_install_ptest_base() {
     if [ -f ${WORKDIR}/run-ptest ]; then
         install -D ${WORKDIR}/run-ptest ${D}${PTEST_PATH}/run-ptest
         if grep -q install-ptest: Makefile; then



More information about the Openembedded-commits mailing list