mirror of git://sourceware.org/git/glibc.git
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> |
||
|---|---|---|
| .. | ||
| 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 | ||
| linereader.c | ||
| linereader.h | ||
| locale-spec.c | ||
| locale.c | ||
| localedef.c | ||
| localedef.h | ||
| locarchive.c | ||
| locfile-kw.gperf | ||
| locfile-kw.h | ||
| locfile-token.h | ||
| locfile.c | ||
| locfile.h | ||
| record-status.c | ||
| record-status.h | ||
| repertoire.c | ||
| repertoire.h | ||
| simple-hash.c | ||
| simple-hash.h | ||
| xmalloc.c | ||
| xstrdup.c | ||