summaryrefslogtreecommitdiffstats
path: root/meta-fsl-arm
diff options
context:
space:
mode:
authorJacob Kroon <jacob.kroon@mikrodidakt.se>2014-07-18 23:05:43 +0200
committerOtavio Salvador <otavio@ossystems.com.br>2014-07-21 10:58:13 -0300
commitfd3e061f7b5cde73a79db880a1e2c301bb7fa94a (patch)
tree283c461e103f22de908412e1006825940d5cef0c /meta-fsl-arm
parentd5db3b285804204174b0aef78de29e9e0fd3fbb7 (diff)
downloadmeta-freescale-fd3e061f7b5cde73a79db880a1e2c301bb7fa94a.tar.gz
gpu-viv-bin-mx6q: Fix file ownership in packages
The do_install() function is run under pseudo in order to create packages with correct file-permissions. By issuing "cp -a" to install files, we leak build user/group permissions into the packages, since the do_unpack() function is executed as the regular build user. Replace it with -P, so that we at least keep symlinks. Also drop -x (--one-file-system) since it's not needed. This was tested by comparing the output of "ls -lR --time-style=+ image/" before and after the change. Signed-off-by: Jacob Kroon <jacob.kroon@mikrodidakt.se> Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'meta-fsl-arm')
-rw-r--r--meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc b/meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
index 0db37c38a..ce71f9f91 100644
--- a/meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
+++ b/meta-fsl-arm/recipes-graphics/gpu-viv-bin-mx6q/gpu-viv-bin-mx6q.inc
@@ -108,9 +108,9 @@ do_install () {
108 install -d ${D}${libdir} 108 install -d ${D}${libdir}
109 install -d ${D}${includedir} 109 install -d ${D}${includedir}
110 110
111 cp -a ${S}/usr/lib/*.so* ${D}${libdir} 111 cp -P ${S}/usr/lib/*.so* ${D}${libdir}
112 cp -axr ${S}/usr/include/* ${D}${includedir} 112 cp -r ${S}/usr/include/* ${D}${includedir}
113 cp -axr ${S}/opt ${D} 113 cp -r ${S}/opt ${D}
114 114
115 install -d ${D}${libdir}/pkgconfig 115 install -d ${D}${libdir}/pkgconfig
116 116
@@ -170,7 +170,7 @@ do_install () {
170 170
171 # update libglesv2 as backend dependent 171 # update libglesv2 as backend dependent
172 rm -rf ${D}${libdir}/libGLESv2* 172 rm -rf ${D}${libdir}/libGLESv2*
173 cp -a ${S}/usr/lib/libGLESv2-${backend}.so ${D}${libdir}/libGLESv2.so.2.0.0 173 cp ${S}/usr/lib/libGLESv2-${backend}.so ${D}${libdir}/libGLESv2.so.2.0.0
174 ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2 174 ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so.2
175 ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so 175 ln -sf libGLESv2.so.2.0.0 ${D}${libdir}/libGLESv2.so
176 176