Package: localepurge Version: 0.7.3.10
Severity: normal Dear Maintainer, Hi, I am working to fix a reproducible issue happened during system image creation, There, when locale purge configuration is copied before package (localepurge) installation, it produces a debconf cache entry with non-reproducible entries, that is due to 'mktemp' used in postinst script [0], I wanted to know whether we can use other temporary file at [0], which can be reproducible? [0] https://salsa.debian.org/elmig-guest/localepurge/-/blob/master/debian/postinst#L206 steps to verify this issue: 1. create a minimal base image with debootstrap $ sudo debootstrap bullseye rootfs/ http://deb.debian.org/debian/ 2. create a configuration for locale.nopurge $ sudo chroot rootfs /bin/bash -c "echo en > /etc/locale.nopurge" 3. install localepurge $ sudo chroot rootfs /bin/bash -c "apt update && apt install localepurge" 4. Check the debconf cache entry (shown below) that has non-reproducible ``` Name: ucf/changeprompt Template: ucf/changeprompt Value: keep_current Owners: ucf Flags: seen Variables: BASENAME = locale.nopurge FILE = /etc/locale.nopurge NEW = /tmp/tmp.WJBJ9kEpAu ``` Thanks, Venkata. -- System Information: Debian Release: 11.3 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 4.19.0-6-amd64 (SMP w/2 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=C.UTF-8 (charmap=locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory UTF-8), LANGUAGE not set Shell: /bin/sh linked to /usr/bin/dash Init: unable to detect Versions of packages localepurge depends on: ii debconf [debconf-2.0] 1.5.77 ii locales 2.31-13+deb11u3 ii perl 5.32.1-4+deb11u2 ii procps 2:3.3.17-5 ii ucf 3.0043 localepurge recommends no packages. Versions of packages localepurge suggests: pn bleachbit <none> pn debfoster <none> pn deborphan <none> -- debconf information: perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset), LC_CTYPE = "C.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory localepurge/dontbothernew: false * localepurge/remove_no: * localepurge/use-dpkg-feature: true localepurge/verbose: false * localepurge/none_selected: false localepurge/quickndirtycalc: true * localepurge/nopurge: NEEDSCONFIGFIRST localepurge/mandelete: true localepurge/showfreedspace: true