[meta-freescale] [meta-fsl-arm][PATCH] gpu-viv-g2d: fix file ownership in packages

Javier Viguera javier.viguera at digi.com
Tue Nov 4 07:12:10 PST 2014


Using 'cp -a' to install files in do_install function leaks user/group
attributes from build machine to target packages.

WARNING: log_check: There is a warn message in the logfile
WARNING: log_check: Matched keyword: [warn]
WARNING: log_check: warning: user xxxxx does not exist - using root

Signed-off-by: Javier Viguera <javier.viguera at digi.com>
---
 recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc b/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc
index ce0c74fc21e0..3f0bdd068d72 100644
--- a/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc
+++ b/recipes-graphics/gpu-viv-g2d/gpu-viv-g2d.inc
@@ -26,8 +26,8 @@ do_install () {
     install -d ${D}${includedir}
 
     cp ${S}/usr/lib/*.so ${D}${libdir}
-    cp -axr ${S}/usr/include/* ${D}${includedir}
-    cp -axr ${S}/opt ${D}
+    cp -Pr ${S}/usr/include/* ${D}${includedir}
+    cp -Pr ${S}/opt ${D}
 
     find ${D}${libdir} -type f -exec chmod 644 {} \;
     find ${D}${includedir} -type f -exec chmod 644 {} \;


More information about the meta-freescale mailing list