diff options
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/glibc/glibc-locale.inc | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/meta/recipes-core/glibc/glibc-locale.inc b/meta/recipes-core/glibc/glibc-locale.inc index 57b465dd5d..6384f9cbf1 100644 --- a/meta/recipes-core/glibc/glibc-locale.inc +++ b/meta/recipes-core/glibc/glibc-locale.inc | |||
@@ -72,7 +72,7 @@ FILES_localedef = "${bindir}/localedef" | |||
72 | LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale" | 72 | LOCALETREESRC = "${COMPONENTS_DIR}/${PACKAGE_ARCH}/glibc-stash-locale" |
73 | 73 | ||
74 | do_install () { | 74 | do_install () { |
75 | mkdir -p ${D}${bindir} ${D}${datadir} ${D}${libdir} | 75 | mkdir -p ${D}${bindir} ${D}${datadir} |
76 | if [ -n "$(ls ${LOCALETREESRC}/${bindir})" ]; then | 76 | if [ -n "$(ls ${LOCALETREESRC}/${bindir})" ]; then |
77 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${bindir}/* ${D}${bindir} | 77 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${bindir}/* ${D}${bindir} |
78 | fi | 78 | fi |
@@ -80,11 +80,14 @@ do_install () { | |||
80 | mkdir -p ${D}${localedir} | 80 | mkdir -p ${D}${localedir} |
81 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${localedir}/* ${D}${localedir} | 81 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${localedir}/* ${D}${localedir} |
82 | fi | 82 | fi |
83 | if [ -e ${LOCALETREESRC}/${libdir}/gconv ]; then | 83 | if [ ${@d.getVar('PACKAGE_NO_GCONV')} -eq 0 ]; then |
84 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir} | 84 | mkdir -p ${D}${libdir} |
85 | fi | 85 | if [ -e ${LOCALETREESRC}/${libdir}/gconv ]; then |
86 | if [ -e ${LOCALETREESRC}/${datadir}/i18n ]; then | 86 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${libdir}/gconv ${D}${libdir} |
87 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${datadir}/i18n ${D}${datadir} | 87 | fi |
88 | if [ -e ${LOCALETREESRC}/${datadir}/i18n ]; then | ||
89 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${datadir}/i18n ${D}${datadir} | ||
90 | fi | ||
88 | fi | 91 | fi |
89 | if [ -e ${LOCALETREESRC}/${datadir}/locale ]; then | 92 | if [ -e ${LOCALETREESRC}/${datadir}/locale ]; then |
90 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${datadir}/locale ${D}${datadir} | 93 | cp -R --no-dereference --preserve=mode,links ${LOCALETREESRC}/${datadir}/locale ${D}${datadir} |