diff options
Diffstat (limited to 'meta/classes')
| -rw-r--r-- | meta/classes/libc-common.bbclass | 2 | ||||
| -rw-r--r-- | meta/classes/libc-package.bbclass | 27 |
2 files changed, 15 insertions, 14 deletions
diff --git a/meta/classes/libc-common.bbclass b/meta/classes/libc-common.bbclass index 06d520164e..0f499366db 100644 --- a/meta/classes/libc-common.bbclass +++ b/meta/classes/libc-common.bbclass | |||
| @@ -5,7 +5,7 @@ do_install() { | |||
| 5 | install -m 0644 ${S}/sunrpc/rpcsvc/$h ${D}/${includedir}/rpcsvc/ | 5 | install -m 0644 ${S}/sunrpc/rpcsvc/$h ${D}/${includedir}/rpcsvc/ |
| 6 | done | 6 | done |
| 7 | install -m 0644 ${WORKDIR}/etc/ld.so.conf ${D}/${sysconfdir}/ | 7 | install -m 0644 ${WORKDIR}/etc/ld.so.conf ${D}/${sysconfdir}/ |
| 8 | install -d ${D}${libdir}/locale | 8 | install -d ${D}${localedir} |
| 9 | make -f ${WORKDIR}/generate-supported.mk IN="${S}/localedata/SUPPORTED" OUT="${WORKDIR}/SUPPORTED" | 9 | make -f ${WORKDIR}/generate-supported.mk IN="${S}/localedata/SUPPORTED" OUT="${WORKDIR}/SUPPORTED" |
| 10 | # get rid of some broken files... | 10 | # get rid of some broken files... |
| 11 | for i in ${GLIBC_BROKEN_LOCALES}; do | 11 | for i in ${GLIBC_BROKEN_LOCALES}; do |
diff --git a/meta/classes/libc-package.bbclass b/meta/classes/libc-package.bbclass index 70490efc77..80d7124002 100644 --- a/meta/classes/libc-package.bbclass +++ b/meta/classes/libc-package.bbclass | |||
| @@ -65,12 +65,12 @@ fi | |||
| 65 | 65 | ||
| 66 | rm -rf ${TMP_LOCALE} | 66 | rm -rf ${TMP_LOCALE} |
| 67 | mkdir -p ${TMP_LOCALE} | 67 | mkdir -p ${TMP_LOCALE} |
| 68 | if [ -f ${libdir}/locale/locale-archive ]; then | 68 | if [ -f ${localedir}/locale-archive ]; then |
| 69 | cp ${libdir}/locale/locale-archive ${TMP_LOCALE}/ | 69 | cp ${localedir}/locale-archive ${TMP_LOCALE}/ |
| 70 | fi | 70 | fi |
| 71 | localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s --prefix=/tmp/locale %s | 71 | localedef --inputfile=${datadir}/i18n/locales/%s --charmap=%s --prefix=/tmp/locale %s |
| 72 | mkdir -p ${libdir}/locale/ | 72 | mkdir -p ${localedir}/ |
| 73 | mv ${TMP_LOCALE}/locale-archive ${libdir}/locale/ | 73 | mv ${TMP_LOCALE}/locale-archive ${localedir}/ |
| 74 | rm -rf ${TMP_LOCALE} | 74 | rm -rf ${TMP_LOCALE} |
| 75 | } | 75 | } |
| 76 | 76 | ||
| @@ -80,22 +80,22 @@ locale_base_postrm() { | |||
| 80 | 80 | ||
| 81 | rm -rf ${TMP_LOCALE} | 81 | rm -rf ${TMP_LOCALE} |
| 82 | mkdir -p ${TMP_LOCALE} | 82 | mkdir -p ${TMP_LOCALE} |
| 83 | if [ -f ${libdir}/locale/locale-archive ]; then | 83 | if [ -f ${localedir}/locale-archive ]; then |
| 84 | cp ${libdir}/locale/locale-archive ${TMP_LOCALE}/ | 84 | cp ${localedir}/locale-archive ${TMP_LOCALE}/ |
| 85 | fi | 85 | fi |
| 86 | localedef --delete-from-archive --inputfile=${datadir}/locales/%s --charmap=%s --prefix=/tmp/locale %s | 86 | localedef --delete-from-archive --inputfile=${datadir}/locales/%s --charmap=%s --prefix=/tmp/locale %s |
| 87 | mv ${TMP_LOCALE}/locale-archive ${libdir}/locale/ | 87 | mv ${TMP_LOCALE}/locale-archive ${localedir}/ |
| 88 | rm -rf ${TMP_LOCALE} | 88 | rm -rf ${TMP_LOCALE} |
| 89 | } | 89 | } |
| 90 | 90 | ||
| 91 | 91 | ||
| 92 | TMP_LOCALE="/tmp/locale${libdir}/locale" | 92 | TMP_LOCALE="/tmp/locale${localedir}" |
| 93 | LOCALETREESRC ?= "${PKGD}" | 93 | LOCALETREESRC ?= "${PKGD}" |
| 94 | 94 | ||
| 95 | do_prep_locale_tree() { | 95 | do_prep_locale_tree() { |
| 96 | treedir=${WORKDIR}/locale-tree | 96 | treedir=${WORKDIR}/locale-tree |
| 97 | rm -rf $treedir | 97 | rm -rf $treedir |
| 98 | mkdir -p $treedir/${base_bindir} $treedir/${base_libdir} $treedir/${datadir} $treedir/${libdir}/locale | 98 | mkdir -p $treedir/${base_bindir} $treedir/${base_libdir} $treedir/${datadir} $treedir/${localedir} |
| 99 | tar -cf - -C ${LOCALETREESRC}${datadir} -ps i18n | tar -xf - -C $treedir/${datadir} | 99 | tar -cf - -C ${LOCALETREESRC}${datadir} -ps i18n | tar -xf - -C $treedir/${datadir} |
| 100 | # unzip to avoid parsing errors | 100 | # unzip to avoid parsing errors |
| 101 | for i in $treedir/${datadir}/i18n/charmaps/*gz; do | 101 | for i in $treedir/${datadir}/i18n/charmaps/*gz; do |
| @@ -111,8 +111,9 @@ do_prep_locale_tree() { | |||
| 111 | do_collect_bins_from_locale_tree() { | 111 | do_collect_bins_from_locale_tree() { |
| 112 | treedir=${WORKDIR}/locale-tree | 112 | treedir=${WORKDIR}/locale-tree |
| 113 | 113 | ||
| 114 | mkdir -p ${PKGD}${libdir} | 114 | parent=$(dirname ${localedir}) |
| 115 | tar -cf - -C $treedir/${libdir} -ps locale | tar -xf - -C ${PKGD}${libdir} | 115 | mkdir -p ${PKGD}/$parent |
| 116 | tar -cf - -C $treedir/$parent -ps $(basename ${localedir}) | tar -xf - -C ${PKGD}$parent | ||
| 116 | } | 117 | } |
| 117 | 118 | ||
| 118 | inherit qemu | 119 | inherit qemu |
| @@ -141,7 +142,7 @@ python package_do_split_gconvs () { | |||
| 141 | gconv_libdir = base_path_join(libdir, "gconv") | 142 | gconv_libdir = base_path_join(libdir, "gconv") |
| 142 | charmap_dir = base_path_join(datadir, "i18n", "charmaps") | 143 | charmap_dir = base_path_join(datadir, "i18n", "charmaps") |
| 143 | locales_dir = base_path_join(datadir, "i18n", "locales") | 144 | locales_dir = base_path_join(datadir, "i18n", "locales") |
| 144 | binary_locales_dir = base_path_join(libdir, "locale") | 145 | binary_locales_dir = d.getVar('localedir', True) |
| 145 | 146 | ||
| 146 | def calc_gconv_deps(fn, pkg, file_regex, output_pattern, group): | 147 | def calc_gconv_deps(fn, pkg, file_regex, output_pattern, group): |
| 147 | deps = [] | 148 | deps = [] |
| @@ -259,7 +260,7 @@ python package_do_split_gconvs () { | |||
| 259 | path = d.getVar("PATH", True) | 260 | path = d.getVar("PATH", True) |
| 260 | i18npath = base_path_join(treedir, datadir, "i18n") | 261 | i18npath = base_path_join(treedir, datadir, "i18n") |
| 261 | gconvpath = base_path_join(treedir, "iconvdata") | 262 | gconvpath = base_path_join(treedir, "iconvdata") |
| 262 | outputpath = base_path_join(treedir, libdir, "locale") | 263 | outputpath = base_path_join(treedir, binary_locales_dir) |
| 263 | 264 | ||
| 264 | use_cross_localedef = d.getVar("LOCALE_GENERATION_WITH_CROSS-LOCALEDEF", True) or "0" | 265 | use_cross_localedef = d.getVar("LOCALE_GENERATION_WITH_CROSS-LOCALEDEF", True) or "0" |
| 265 | if use_cross_localedef == "1": | 266 | if use_cross_localedef == "1": |
