]> code.ossystems Code Review - openembedded-core.git/commitdiff
eglibc-locale: Does not create {localedir} if the toolchain has no files under it
authorRoy Li <rongqing.li@windriver.com>
Fri, 1 Nov 2013 07:03:53 +0000 (15:03 +0800)
committerSaul Wold <sgw@linux.intel.com>
Mon, 4 Nov 2013 18:01:17 +0000 (10:01 -0800)
This will kill the not shipped Error:
    ERROR: QA Issue: eglibc-locale: Files/directories were installed but not shipped
       /usr/lib/locale

Signed-off-by: Roy Li <rongqing.li@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/eglibc/eglibc-locale.inc

index c3fcc6d749689c623bad5df22164ff250200da61..83569da73ae26541ed9477a30e09fac8dd092dc9 100644 (file)
@@ -67,11 +67,12 @@ FILES_localedef = "${bindir}/localedef"
 LOCALETREESRC = "${STAGING_INCDIR}/eglibc-locale-internal-${MULTIMACH_TARGET_SYS}"
 
 do_install () {
-       mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir} ${D}${localedir}
+       mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir}
        if [ -n "$(ls ${LOCALETREESRC}/${bindir})" ]; then
                cp -fpPR ${LOCALETREESRC}/${bindir}/* ${D}${bindir}
        fi
        if [ -n "$(ls ${LOCALETREESRC}/${localedir})" ]; then
+               mkdir -p ${D}${localedir}
                cp -fpPR ${LOCALETREESRC}/${localedir}/* ${D}${localedir}
        fi
        if [ -e ${LOCALETREESRC}/${libdir}/gconv ]; then