summaryrefslogtreecommitdiffstats
path: root/scripts/make_locale.sh
diff options
context:
space:
mode:
authorLuotao Fu <l.fu@pengutronix.de>2007-05-07 13:52:38 +0000
committerLuotao Fu <l.fu@pengutronix.de>2007-05-07 13:52:38 +0000
commitc8f10daa914c063d4121cff40c0a023d2c126e5f (patch)
tree8d89960c42a830ec950020f4883fff5f44a90738 /scripts/make_locale.sh
parent508bebadced9327ba12e5149e8490d1b39b8f1aa (diff)
downloadptxdist-c8f10daa914c063d4121cff40c0a023d2c126e5f.tar.gz
ptxdist-c8f10daa914c063d4121cff40c0a023d2c126e5f.tar.xz
* prevents (hopefully) weired behaviour of localedef, seen on SuSE
machines git-svn-id: https://svn.pengutronix.de/svn/ptxdist/trunks/ptxdist-trunk@7163 33e552b5-05e3-0310-8538-816dae2090ed
Diffstat (limited to 'scripts/make_locale.sh')
-rwxr-xr-xscripts/make_locale.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/make_locale.sh b/scripts/make_locale.sh
index 8664facee..52484adf2 100755
--- a/scripts/make_locale.sh
+++ b/scripts/make_locale.sh
@@ -53,8 +53,13 @@ add_locale() {
[ $? -ne 0 ] && { echo "Could not create temporary locales directory ${PREF}/usr/lib/locale"; exit 1; }
fi
+ # we have to first generate the split file and then combine it to
+ # archive since SuSE is stupid and patch the localedef in a
+ # weird way, that it doesn't pack the stuffs in archive as default.
I18NPATH=${SYSROOT_USR}/share/i18n \
- localedef -i $LOCALE_DEF -f $CHARMAP $LOCALE_NAME --prefix=${PREF}
+ localedef --no-archive -i $LOCALE_DEF -f $CHARMAP $LOCALE_NAME --prefix=${PREF}
+ I18NPATH=${SYSROOT_USR}/share/i18n \
+ localedef --add-to-archive ${PREF}/usr/lib/locale/${LOCALE_NAME} --prefix=${PREF}
[ $? -ne 0 ] && { echo "calling localedef binary failed"; exit 1; }