[oe] [meta-qt5][PATCH] nativesdk-qtbase: fix environment.d dir permission

c-thaler christian.thaler at tes-dst.com
Mon Apr 16 13:43:52 UTC 2018


Fixed an issue with the nativesdk-cmake package, which sets the permission of
/opt/.../environment.d to rwxr-xr-x.
nativesdk-qtbase set the permission to rwxrwxr-x, leading to a conflict:

Error: Transaction check error:
  file /opt/poky/2.4.2/sysroots/x86_64-pokysdk-linux/environment-setup.d
  conflicts between attempted installs of
  nativesdk-cmake-3.8.2-r0.x86_64_nativesdk and
  nativesdk-qtbase-tools-5.9.4+git0+0d9208cecb-r0.x86_64_nativesdk

Recipe nativesdk-qtbase will now set the permission to rwxr-xr-x.
---
 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 5b20b0a..a678b19 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -171,7 +171,7 @@ do_install() {
 }
 
 fakeroot do_generate_qt_environment_file() {
-    mkdir -p ${D}${SDKPATHNATIVE}/environment-setup.d/
+    install -d -m 755 ${D}${SDKPATHNATIVE}/environment-setup.d/
     script=${D}${SDKPATHNATIVE}/environment-setup.d/qt5.sh
 
     echo 'export PATH=${OE_QMAKE_PATH_HOST_BINS}:$PATH' > $script
-- 
2.7.4



More information about the Openembedded-devel mailing list