diff options
author | Luotao Fu <l.fu@pengutronix.de> | 2007-05-07 13:52:38 +0000 |
---|---|---|
committer | Luotao Fu <l.fu@pengutronix.de> | 2007-05-07 13:52:38 +0000 |
commit | c8f10daa914c063d4121cff40c0a023d2c126e5f (patch) | |
tree | 8d89960c42a830ec950020f4883fff5f44a90738 /scripts/make_locale.sh | |
parent | 508bebadced9327ba12e5149e8490d1b39b8f1aa (diff) | |
download | ptxdist-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-x | scripts/make_locale.sh | 7 |
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; } |