diff options
author | Carlos O'Donell <carlos@redhat.com> | 2018-11-26 09:51:51 -0500 |
---|---|---|
committer | Carlos O'Donell <carlos@redhat.com> | 2018-12-03 10:15:39 -0500 |
commit | 8cebd4ffe67bf94508809ea0caa02a4f1d52e8b1 (patch) | |
tree | 37941e21ff2e02a3d6318eceeef5bc7d565215ae /ChangeLog | |
parent | c22e4c2a1431c5e77bf4288d35bf7629f2f093aa (diff) | |
download | glibc-8cebd4ffe67bf94508809ea0caa02a4f1d52e8b1.zip glibc-8cebd4ffe67bf94508809ea0caa02a4f1d52e8b1.tar.gz glibc-8cebd4ffe67bf94508809ea0caa02a4f1d52e8b1.tar.bz2 |
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>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +2018-12-03 Carlos O'Donell <carlos@redhat.com> + + [BZ #23923] + * locale/programs/localedef.c: Declare boolean hard_links default true. + (options): Add --no-hard-links option. + (parse_opt): Add OPT_NO_HARD_LINKS case and set hard_links to false. + * locale/programs/localedef.h: Declare prototype for hard_links. + * locale/programs/locfile.c (write_locale_data): Don't use hard + links if hard_links is false. + 2018-12-03 H.J. Lu <hongjiu.lu@intel.com> * sysdeps/x86/cacheinfo.c (intel_check_word): Updated for |