[oe] [meta-qt5][PATCH] nativesdk-qtbase: use fakeroot for do_generate_qt_environment_file

Jonathan Liu net147 at gmail.com
Sat Sep 12 03:47:57 UTC 2015


The do_generate_qt_environment_file task wasn't running in the fakeroot
environment so qt5.sh was not owned by root:root but the user running
the builds.

Fixes host-user-contaminated QA warning.

Signed-off-by: Jonathan Liu <net147 at gmail.com>
---
 recipes-qt/qt5/nativesdk-qtbase_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index 69e2b3b..9c9d86f 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -248,7 +248,7 @@ do_install() {
     install -m 644 ${WORKDIR}/OEQt5Toolchain.cmake ${D}${datadir}/cmake/OEToolchainConfig.cmake.d/
 }
 
-do_generate_qt_environment_file() {
+fakeroot do_generate_qt_environment_file() {
     mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/
     script=${D}${SDKPATHNATIVE}/environment-setup.d/qt5.sh
 
-- 
2.5.0




More information about the Openembedded-devel mailing list