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. | |
85860fdf SB |
8 | 3. Pass $(inst_complocaledir)/$$locale to install files in the right |
9 | place, and because otherwise, 'localedef' fails with: | |
aee6180c LC |
10 | "cannot write output files to `(null)'". |
11 | ||
d4137d84 KK |
12 | diff -ru glibc-2.29-old/localedata/Makefile glibc-2.29-new/localedata/Makefile |
13 | --- glibc-2.29-old/localedata/Makefile 2019-01-31 11:45:36.000000000 -0500 | |
14 | +++ glibc-2.29-new/localedata/Makefile 2019-07-03 22:48:35.662015071 -0400 | |
15 | @@ -385,7 +385,7 @@ | |
aee6180c LC |
16 | |
17 | # Sometimes the whole collection of locale files should be installed. | |
18 | LOCALEDEF=I18NPATH=. GCONV_PATH=$(common-objpfx)iconvdata LC_ALL=C \ | |
19 | -$(rtld-prefix) $(common-objpfx)locale/localedef | |
20 | + localedef --no-archive | |
d4137d84 | 21 | install-locales: install-locale-archive |
aee6180c | 22 | |
d4137d84 KK |
23 | # Create and install the locale-archive file. |
24 | @@ -414,7 +414,7 @@ | |
aee6180c | 25 | input=`echo $$locale | sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/'`; \ |
9ab0627e LC |
26 | $(LOCALEDEF) $$flags --alias-file=../intl/locale.alias \ |
27 | -i locales/$$input -f charmaps/$$charset \ | |
e2aace76 | 28 | - $(addprefix --prefix=,$(install_root)) $$locale \ |
85860fdf | 29 | + $(addprefix --prefix=,$(install_root)) $(inst_complocaledir)/$$locale \ |
d4137d84 KK |
30 | && echo ' done'; |
31 | endef | |
aee6180c | 32 |