Skip to contentSkip to conversation

qtbase: fix QA warning of host uid leakage

PATCH In review Anders Darander 1 participant 2 messages Oct 19, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 qtbase: fix QA warning of host uid leakage

By using cp, the wrong uid ended up in the package. Use install, as that will automatically handle the uid and gid.

---
 recipes-qt/qt5/qtbase_git.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-qt/qt5/qtbase_git.bb +1 -1
index 39d02a9..7641b63 100644
@@ -231,7 +231,7 @@ do_install_append() {
         cp -a ${S}/lib/fonts/* ${D}/${OE_QMAKE_PATH_QT_FONTS}
         chown -R root:root ${D}/${OE_QMAKE_PATH_QT_FONTS}
     fi
-    cp -a ${B}/lib/libqt* ${D}${libdir}
+    install -m 0644 ${B}/lib/libqt* ${D}${libdir}
     # Remove example.pro file as it is useless
     rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro
 
Signature · 1 line
2.6.1
#1 lore raw

recipes-qt/qt5/qtbase_git.bb do_install_append() { · line 234

Quoted 3 lines · Anders Darander

fi

recipes-qt/qt5/qtbase_git.bb +1 -1
-    cp -a ${B}/lib/libqt* ${D}${libdir}
+    install -m 0644 ${B}/lib/libqt* ${D}${libdir}

V2 changes cp directly to install, instead of running chown. (As was done in V1).

Cheers,
Anders

Quoted 2 lines

# Remove example.pro file as it is useless rm -f ${D}${OE_QMAKE_PATH_EXAMPLES}/examples.pro

Signature · 2 lines
Anders Darander
ChargeStorm AB / eStorm AB