langpacks: Use symlinks for LC_NAME, LC_NUMERIC files if possible (RHEL-97434)
Resolves: RHEL-97434
This commit is contained in:
parent
f52eb641bd
commit
dda5cdbb01
17
glibc.spec
17
glibc.spec
@ -157,7 +157,7 @@ end \
|
||||
Summary: The GNU libc libraries
|
||||
Name: glibc
|
||||
Version: %{glibcversion}
|
||||
Release: 205%{?dist}
|
||||
Release: 206%{?dist}
|
||||
|
||||
# In general, GPLv2+ is used by programs, LGPLv2+ is used for
|
||||
# libraries.
|
||||
@ -2463,11 +2463,15 @@ ln locale-archive locale-archive.real
|
||||
# each langpack ends up retaining a copy. If we convert these to symbolic
|
||||
# links instead, we save ~350K each when they get installed that way.
|
||||
#
|
||||
# LC_MEASUREMENT and LC_PAPER also have several duplicates but we don't
|
||||
# bother with these because they are only ~30 bytes each.
|
||||
# To simplify testing, do this for LC_NAME and LC_NUMERIC as well,
|
||||
# although the savings are minimal. (It is not clear what is smaller:
|
||||
# multiple short symbolic links, or one file hard linked into multiple
|
||||
# directories.)
|
||||
pushd %{glibc_sysroot}/usr/lib/locale
|
||||
for f in $(find eo *_* -samefile C.utf8/LC_CTYPE); do
|
||||
rm $f && ln -s '../C.utf8/LC_CTYPE' $f
|
||||
for k in CTYPE NAME NUMERIC; do
|
||||
for f in $(find eo *_* -samefile C.utf8/LC_$k); do
|
||||
rm $f && ln -s ../C.utf8/LC_$k $f
|
||||
done
|
||||
done
|
||||
popd
|
||||
|
||||
@ -3235,6 +3239,9 @@ update_gconv_modules_cache ()
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Wed Jun 18 2025 Florian Weimer <fweimer@redhat.com> - 2.34-206
|
||||
- langpacks: Use symlinks for LC_NAME, LC_NUMERIC files if possible (RHEL-97434)
|
||||
|
||||
* Wed Jun 11 2025 Frédéric Bérat <fberat@redhat.com> - 2.34-205
|
||||
- Add testcases for abs(), labs(), and llabs() functions. (RHEL-77082)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user