Patchwork eglibc-locale: Does not create {localedir} if the toolchain has no files under it

login
register
mail settings
Submitter rongqing.li@windriver.com
Date Nov. 1, 2013, 7:03 a.m.
Message ID <1383289433-26145-1-git-send-email-rongqing.li@windriver.com>
Download mbox | patch
Permalink /patch/60935/
State New
Headers show

Comments

rongqing.li@windriver.com - Nov. 1, 2013, 7:03 a.m.
From: Roy Li <rongqing.li@windriver.com>

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>
---
 meta/recipes-core/eglibc/eglibc-locale.inc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-core/eglibc/eglibc-locale.inc b/meta/recipes-core/eglibc/eglibc-locale.inc
index c3fcc6d..83569da 100644
--- a/meta/recipes-core/eglibc/eglibc-locale.inc
+++ b/meta/recipes-core/eglibc/eglibc-locale.inc
@@ -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