Bug#932708: rewrites comments in /etc/locale.gen

2019-07-22 Thread Aurelien Jarno
On 2019-07-22 07:08, Marc Haber wrote:
> Package: locales
> Version: 2.28-10
> Severity: minor
> 
> Hi,
> 
> a least in buster and later, reconfiguring locales will rewrite
> the comments in /etc/locale.gen which indicate available locales. This
> might confuse file integrity checkers and causes value ping-pong with
> configuration management systems.

This is not something new, basically the postinst script just updates
the file to remove the locales that are not supported anymore and adds
the newly supported ones. The added ones are just added at the end of
the file without modifying the order. Therefore the file is indeed
modified when new locales are added (usually for a new major version),
but for subsequent runs of the posting script, the content should be
left unchanged.

-- 
Aurelien Jarno  GPG: 4096R/1DDD8C9B
aurel...@aurel32.net http://www.aurel32.net



Bug#932708: rewrites comments in /etc/locale.gen

2019-07-21 Thread Marc Haber
Package: locales
Version: 2.28-10
Severity: minor

Hi,

a least in buster and later, reconfiguring locales will rewrite
the comments in /etc/locale.gen which indicate available locales. This
might confuse file integrity checkers and causes value ping-pong with
configuration management systems.

Please consider making the addition of commented-out locale indicators
configurable.

Greetings
Marc

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.2.1-zgws1 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8), LANGUAGE=en 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages locales depends on:
ii  debconf [debconf-2.0]  1.5.72
ii  libc-bin   2.28-10
ii  libc-l10n  2.28-10

locales recommends no packages.

locales suggests no packages.

-- debconf information excluded