summaryrefslogtreecommitdiff
path: root/glibc
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-08-01 23:43:04 +0000
committerPhil Blundell <philb@gnu.org>2004-08-01 23:43:04 +0000
commitd72c28f8488944590fa9f99acae2b4f92e5ec735 (patch)
tree6928d80d4606189c5ff9de80d4d8515285d338f1 /glibc
parentc171a36102eae73b7c6306a2292ec92f2414d764 (diff)
add more locale bashing bits to work around lack of mmap(PROT_WRITE, MAP_SHARED) on jffs2
BKrev: 410d8008ARdzrzR9FNP7YAHoFFyKMA
Diffstat (limited to 'glibc')
-rw-r--r--glibc/glibc-package.oe20
1 files changed, 18 insertions, 2 deletions
diff --git a/glibc/glibc-package.oe b/glibc/glibc-package.oe
index 041ba028cd..6cfa913d25 100644
--- a/glibc/glibc-package.oe
+++ b/glibc/glibc-package.oe
@@ -9,16 +9,32 @@ do_install() {
make -f ${WORKDIR}/generate-supported.mk IN="${S}/localedata/SUPPORTED" OUT="${WORKDIR}/SUPPORTED"
}
+TMP_LOCALE="/tmp/locale/${libdir}/locale"
+
locale_base_postinst() {
#!/bin/sh
-localedef --add-to-archive --inputfile=${datadir}/locales/%s --charmap=${datadir}/charmaps/%s.gz
+rm -rf ${TMP_LOCALE}
+mkdir -p ${TMP_LOCALE}
+if [ -f ${libdir}/locale/locale-archive ]; then
+ cp ${libdir}/locale/locale-archive ${TMP_LOCALE}/
+fi
+localedef --add-to-archive --inputfile=${datadir}/locales/%s --charmap=${datadir}/charmaps/%s.gz --prefix=/tmp/locale
+mv ${TMP_LOCALE}/locale-archive ${libdir}/locale/
+rm -rf ${TMP_LOCALE}
}
locale_base_postrm() {
#!/bin/sh
-localedef --delete-from-archive --inputfile=${datadir}/locales/%s --charmap=${datadir}/charmaps/%s.gz
+rm -rf ${TMP_LOCALE}
+mkdir -p ${TMP_LOCALE}
+if [ -f ${libdir}/locale/locale-archive ]; then
+ cp ${libdir}/locale/locale-archive ${TMP_LOCALE}/
+fi
+localedef --delete-from-archive --inputfile=${datadir}/locales/%s --charmap=${datadir}/charmaps/%s.gz --prefix=/tmp/locale
+mv ${TMP_LOCALE}/locale-archive ${libdir}/locale/
+rm -rf ${TMP_LOCALE}
}
python package_do_split_gconvs () {