glibc/locale/programs
Carlos O'Donell 8cebd4ffe6 Add --no-hard-links option to localedef (bug 23923)
Downstream distributions need consistent sets of hardlinks in
order for rpm to operate effectively. This means that even if
locales are built with a high level of parallelism that the
resulting files need to have consistent hardlink counts. The only
way to achieve this is with a post-install hardlink pass using a
program like 'hardlink' (shipped in Fedora).

If the downstream distro wants to post-process the hardlinks then
the time spent in localedef looking up sibling directories and
processing hardlinks is wasted effort.

To optimize the build and install pass we add a --no-hard-links
option to localedef to avoid doing the hardlink optimziation for
size.

Tested on x86_64 with 'make localedata/install-locale-files'
before and after. Without the patch we have files with 100+
hardlink counts. After the patch and running with --no-hard-links
all link counts are 1. This patch also alters the convenience
target 'make localedata/install-locale-files' to use the new
option.

Signed-off-by: Carlos O'Donell <carlos@redhat.com>
2018-12-03 10:15:39 -05:00
..
3level.h
charmap-dir.c
charmap-dir.h
charmap-kw.gperf
charmap-kw.h
charmap.c
charmap.h
config.h
ld-address.c
ld-collate.c
ld-ctype.c
ld-identification.c
ld-measurement.c
ld-messages.c
ld-monetary.c
ld-name.c
ld-numeric.c
ld-paper.c
ld-telephone.c
ld-time.c Abbreviated alternative month names (%Ob) also added (bug 10871). 2018-01-22 11:26:55 +01:00
linereader.c
linereader.h
locale-spec.c
locale.c
localedef.c Add --no-hard-links option to localedef (bug 23923) 2018-12-03 10:15:39 -05:00
localedef.h Add --no-hard-links option to localedef (bug 23923) 2018-12-03 10:15:39 -05:00
locarchive.c
locfile-kw.gperf Abbreviated alternative month names (%Ob) also added (bug 10871). 2018-01-22 11:26:55 +01:00
locfile-kw.h Abbreviated alternative month names (%Ob) also added (bug 10871). 2018-01-22 11:26:55 +01:00
locfile-token.h Abbreviated alternative month names (%Ob) also added (bug 10871). 2018-01-22 11:26:55 +01:00
locfile.c Add --no-hard-links option to localedef (bug 23923) 2018-12-03 10:15:39 -05:00
locfile.h
record-status.c
record-status.h
repertoire.c
repertoire.h
simple-hash.c
simple-hash.h
xmalloc.c
xstrdup.c