format /usr/share/i18n/SUPPORTED as expected to fix locale.conf and locale.gen configuration with Calamares [release 2.40-5mamba;Sun Oct 20 2024]

This commit is contained in:
Silvan Calarco 2024-10-21 10:25:03 +02:00
parent 57c9221784
commit fa5678ff5c

View File

@ -87,7 +87,7 @@
Name: glibc
Version: 2.40
Release: 4mamba
Release: 5mamba
Summary: The GNU libc libraries
Group: System/Libraries
Vendor: openmamba
@ -540,7 +540,10 @@ ln -s ../lib/locale %{buildroot}/usr/lib32/locale
done
popd
# Add SUPPORTED file to package
install -m0644 localedata/SUPPORTED %{buildroot}%{glibc_datadir}/i18n/
# Note: needs to be reformatted like /etc/locale.gen e.g. for Calamares
sed -e '1,3d' -e 's|/| |g' -e 's| \\||g' \
localedata/SUPPORTED > %{buildroot}%{glibc_datadir}/i18n/SUPPORTED
[-e %{buildroot}%{glibc_libdir}/libbsd-compat.a ] && ln -sf libbsd-compat.a %{buildroot}%{glibc_libdir}/libbsd.a
%else
# stage 1
@ -863,6 +866,9 @@ fi
%endif
%changelog
* Sun Oct 20 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.40-5mamba
- format /usr/share/i18n/SUPPORTED as expected to fix locale.conf and locale.gen configuration with Calamares
* Sun Oct 13 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 2.40-4mamba
- move locale.gen configuration from glibc to glibc-utils to fix some upgrade failures cases