FS#67464 - [glibc] generate locales also on install
Attached to Project:
Arch Linux
Opened by nl6720 (nl6720) - Sunday, 02 August 2020, 11:34 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 03 September 2020, 15:27 GMT
Opened by nl6720 (nl6720) - Sunday, 02 August 2020, 11:34 GMT
Last edited by Eli Schwartz (eschwartz) - Thursday, 03 September 2020, 15:27 GMT
|
Details
Description:
glibc.install runs locale-gen on update, but not on install. This complicates installations with a pre-deployed /etc/locale.gen file, since they must now manually run locale-gen in a chroot. Please add locale-gen to post_install too. Additional info: * package version(s) * config and/or log files etc. * link to upstream bug report, if any glibc 2.31-5 https://gitlab.archlinux.org/archlinux/archiso/-/merge_requests/52 Steps to reproduce: # mkdir -p testdir/etc # echo 'en_US.UTF-8 UTF-8' > testdir/etc/locale.gen # pacstrap testdir base |
This task depends upon
Closed by Eli Schwartz (eschwartz)
Thursday, 03 September 2020, 15:27 GMT
Reason for closing: No response
Thursday, 03 September 2020, 15:27 GMT
Reason for closing: No response
I guessing there's also some reason why the glibc package still uses an install script.
It's also pretty useless if it does nothing, because the default file is completely commented out. If it's *only* useful for archiso and other projects explicitly placing a custom locale.gen file, I don't really see the problem with copying over the file and running /usr/bin/locale-gen manually *as is already being done*.
We are currently transitioning towards a configuration overlay [1] which would greatly benefit from what @nl6720 is proposing in this ticket.
What could be alternatives? Generating all locales and providing them as package (e.g. as done with Ubuntu's language-pack-* packages or Fedora's langpacks package)?
[1] https://gitlab.archlinux.org/archlinux/archiso/-/issues/21
As for generating all locales as packages, you yourself explained why this is bad in the archiso MR.