]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
Add --no-hard-links option to localedef (bug 23923)
authorCarlos O'Donell <carlos@redhat.com>
Mon, 26 Nov 2018 14:51:51 +0000 (09:51 -0500)
committerCarlos O'Donell <carlos@redhat.com>
Mon, 3 Dec 2018 15:15:39 +0000 (10:15 -0500)
commit8cebd4ffe67bf94508809ea0caa02a4f1d52e8b1
tree37941e21ff2e02a3d6318eceeef5bc7d565215ae
parentc22e4c2a1431c5e77bf4288d35bf7629f2f093aa
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>
ChangeLog
locale/programs/localedef.c
locale/programs/localedef.h
locale/programs/locfile.c
localedata/Makefile