Bug#724456: locales: regeneration of locales by locale-gen breaks programs; should be done in a temporary file
Control: found 724456 2.19-18+deb8u9 We have run into the same issue. It has caused problems for us on postgres servers where new connections to postgres are rejected while the locales are being regenerated so it’s pretty major for us. Still a problem on jessie. I’m surprised that after 3.5 years there has still not been any reply on this bug.
Bug#724456: locales: regeneration of locales by locale-gen breaks programs; should be done in a temporary file
Control: found -1 2.13-38+deb7u7 On 2013-09-24 02:07:39 +0200, Vincent Lefevre wrote: The regeneration of all the locales by /usr/sbin/locale-gen is slow, so that it sometimes breaks programs. It currently removes the /usr/lib/locale/locale-archive file to rebuild it, and until the used locales are available, various programs (e.g. executed by cron) break. [...] This still occurs: on a computation server, glibc was upgraded yesterday, and one of my programs failed with the following error. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = en_US.UTF-8, LC_TIME = en_DK, LC_COLLATE = POSIX, LC_CHARMAP = UTF-8, LANG = POSIX are supported and installed on your system. perl: warning: Falling back to the standard locale (C). and locale: Cannot set LC_CTYPE to default locale: Too many levels of symbolic links in a program started by the Perl script. -- Vincent Lefèvre vinc...@vinc17.net - Web: https://www.vinc17.net/ 100% accessible validated (X)HTML - Blog: https://www.vinc17.net/blog/ Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#724456: locales: regeneration of locales by locale-gen breaks programs; should be done in a temporary file
Package: locales Version: 2.17-93 Severity: normal The regeneration of all the locales by /usr/sbin/locale-gen is slow, so that it sometimes breaks programs. It currently removes the /usr/lib/locale/locale-archive file to rebuild it, and until the used locales are available, various programs (e.g. executed by cron) break. Instead the new locales should be built in a temporary file, say /usr/lib/locale/locale-archive.tmp, and a mv should be done at the end. I can see 2 solutions (untested): 1. Create a temporary directory and use the --prefix localedef option. This is rather inelegant, though (IMHO). 2. Modify localedef to add a new option to be able to provide a new archive file name, and use this option. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.10-3-amd64 (SMP w/2 CPU cores) Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages locales depends on: ii debconf [debconf-2.0] 1.5.51 ii libc6 [glibc-2.17-1] 2.17-93 locales recommends no packages. locales suggests no packages. -- debconf information: * locales/default_environment_locale: en_US.UTF-8 * locales/locales_to_be_generated: All locales -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org