]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc-locale: Fix host-user-contaminated QA errors
authorKhem Raj <raj.khem@gmail.com>
Sat, 21 Jul 2018 16:27:09 +0000 (09:27 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 30 Jul 2018 11:44:28 +0000 (12:44 +0100)
Fixes

ERROR: glibc-locale-2.27-r0 do_package_qa: QA Issue: glibc-locale: /glibc-binary-localedata-hy-am/usr/lib/locale/hy_AM/LC_MEASUREMENT.tmp is owned by uid 3004, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-core/glibc/glibc-locale.inc

index b3cb10b87a2528c74ca5c9b7ed52b83403aa7f36..e50e5cf5e3d4e8626511fc6f9fbc240306ddd286 100644 (file)
@@ -74,23 +74,22 @@ LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale"
 do_install () {
        mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir}
        if [ -n "$(ls ${LOCALETREESRC}/${bindir})" ]; then
-               cp -fpPR ${LOCALETREESRC}/${bindir}/* ${D}${bindir}
+               cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${bindir}/* ${D}${bindir}
        fi
        if [ -n "$(ls ${LOCALETREESRC}/${localedir})" ]; then
                mkdir -p ${D}${localedir}
-               cp -fpPR ${LOCALETREESRC}/${localedir}/* ${D}${localedir}
+               cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${localedir}/* ${D}${localedir}
        fi
        if [ -e ${LOCALETREESRC}/${libdir}/gconv ]; then
-               cp -fpPR ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir}
+               cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir}
        fi
        if [ -e ${LOCALETREESRC}/${datadir}/i18n ]; then
-               cp -fpPR ${LOCALETREESRC}/${datadir}/i18n ${D}${datadir}
+               cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${datadir}/i18n ${D}${datadir}
        fi
        if [ -e ${LOCALETREESRC}/${datadir}/locale ]; then
-               cp -fpPR ${LOCALETREESRC}/${datadir}/locale ${D}${datadir}
+               cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${datadir}/locale ${D}${datadir}
        fi
-       chown root:root -R ${D}
-       cp -fpPR ${LOCALETREESRC}/SUPPORTED ${WORKDIR}
+       cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/SUPPORTED ${WORKDIR}
 }
 
 inherit libc-package