Commit | Line | Data |
---|---|---|
aee6180c LC |
1 | This patch allows us to use glibc's build system to build locales |
2 | in a package separate from glibc. | |
3 | ||
4 | 1. Use 'localedef' from $PATH since we are not rebuilding it. | |
5 | 2. Use '--no-archive' to avoid building the big locale archive, and | |
6 | because the already-built 'localedef' would want to write it | |
7 | to '/run/current-system/locale', which is not possible. | |
8 | 3. Pass $(localedir)/$$locale to install files in the right place, and | |
9 | because otherwise, 'localedef' fails with: | |
10 | "cannot write output files to `(null)'". | |
11 | ||
12 | --- glibc-2.20/localedata/Makefile 2014-09-07 10:09:09.000000000 +0200 | |
13 | +++ glibc-2.20/localedata/Makefile 2015-02-11 10:23:55.560545568 +0100 | |
14 | @@ -217,7 +217,7 @@ INSTALL-SUPPORTED-LOCALES=$(addprefix in | |
15 | ||
16 | # Sometimes the whole collection of locale files should be installed. | |
17 | LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ | |
18 | -$(rtld-prefix) $(common-objpfx)locale/localedef | |
19 | + localedef --no-archive | |
20 | install-locales: $(INSTALL-SUPPORTED-LOCALES) | |
21 | ||
22 | install-locales-dir: | |
23 | @@ -234,7 +234,7 @@ $(INSTALL-SUPPORTED-LOCALES): install-lo | |
24 | input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \ | |
25 | $(LOCALEDEF) --alias-file=../intl/locale.alias \ | |
26 | -i locales/$$input -c -f charmaps/$$charset \ | |
27 | - $(addprefix --prefix=,$(install_root)) $$locale; \ | |
28 | + $(addprefix --prefix=,$(install_root)) $(localedir)/$$locale; \ | |
29 | echo ' done'; \ | |
30 | ||
31 | tst-setlocale-ENV = LC_ALL=ja_JP.EUC-JP |