]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
glibc: Fix broken locale files.
authorSchantl Stefan <Stevee@ipfire.org>
Fri, 19 Mar 2010 13:58:02 +0000 (14:58 +0100)
committerSchantl Stefan <Stevee@ipfire.org>
Fri, 19 Mar 2010 13:58:02 +0000 (14:58 +0100)
As a fact that we are only supporting a few languages atm I´ve disabled the other ones.

This fixes issure #589.

pkgs/core/glibc/SUPPORTED.locales [new file with mode: 0644]
pkgs/core/glibc/glibc.nm

diff --git a/pkgs/core/glibc/SUPPORTED.locales b/pkgs/core/glibc/SUPPORTED.locales
new file mode 100644 (file)
index 0000000..9003873
--- /dev/null
@@ -0,0 +1,21 @@
+# This file names the currently supported and somewhat tested locales.
+# If you have any additions please file a glibc bug report.
+SUPPORTED-LOCALES=\
+da_DK.UTF-8/UTF-8 \
+da_DK/ISO-8859-1 \
+de_DE.UTF-8/UTF-8 \
+de_DE/ISO-8859-1 \
+de_DE@euro/ISO-8859-15 \
+en_GB.UTF-8/UTF-8 \
+en_GB/ISO-8859-1 \
+en_US.UTF-8/UTF-8 \
+en_US/ISO-8859-1 \
+es_ES.UTF-8/UTF-8 \
+es_ES/ISO-8859-1 \
+es_ES@euro/ISO-8859-15 \
+fr_FR.UTF-8/UTF-8 \
+fr_FR/ISO-8859-1 \
+fr_FR@euro/ISO-8859-15 \
+it_IT.UTF-8/UTF-8 \
+it_IT/ISO-8859-1 \
+it_IT@euro/ISO-8859-15 \
index 9741527954cbdcefcbaea136397b234a867c070d..d1a4f549ba1bd1aceba8533222c046ce1599c0b1 100644 (file)
@@ -163,6 +163,10 @@ define STAGE_PREPARE
        # Fix a very weird issue with rpath
        cd $(DIR_APP) && sed -e "s/LDFLAGS-rpath-ORIGIN/LDFLAGS/g" \
                -i iconvdata/Makefile
+
+       # Copy our customized SUPPORTED file to build localization files
+       # only for supported languages
+       cp -vf $(DIR_SOURCE)/SUPPORTED.locales $(DIR_APP)/localedata/SUPPORTED
 endef
 
 define STAGE_BUILD