eglibc-locale: Ensure files have correct ownership
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Mar 2013 17:35:11 +0000 (17:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Mar 2013 17:50:08 +0000 (17:50 +0000)
The copy operation leaves the files owned by the person running the
build which results in warnings in do_package_write_ipk like:

*** Warning: The following files have a UID greater than 99

and incorrect ownership in the packges. This patch addresses this
ownership problem.

(From OE-Core rev: 90fc8efb88f82f111523e6584e66ae4ff5851426)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/eglibc/eglibc-locale.inc

index 41cbf48..3d6382d 100644 (file)
@@ -76,6 +76,7 @@ do_install () {
        if [ -e ${LOCALETREESRC}/${datadir}/locale ]; then
                cp -fpPR ${LOCALETREESRC}/${datadir}/locale ${D}${datadir}
        fi
+       chown root.root -R ${D}
        cp -fpPR ${LOCALETREESRC}/SUPPORTED ${WORKDIR}
 }