Bug#988165: obsolete conffile not removed

2021-05-06 Thread Sébastien Villemot
Le jeudi 06 mai 2021 à 20:57 +0200, Sébastien Villemot a écrit :
> Package: unp
> Version: 2.0~pre8

> In version 2.0~pre8, the bash completion file was moved from /etc to 
> /usr/share.
> 
> However, the obsolete conffile is not properly clean up during the upgrade
> (e.g. from buster to bullseye):

Actually I realize that the conffile is removed from the postinst
script.

However, this is not sufficient, since the file still appears in the
dpkg database (and is marked there as obsolete). I guess this is
because the removal was done with an ad hoc shell snippet, instead of
using the appropriate tooling from dh_installdeb / .maintscript.

-- 
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄  https://www.debian.org



signature.asc
Description: This is a digitally signed message part


Bug#988165: obsolete conffile not removed

2021-05-06 Thread Sébastien Villemot
Package: unp
Version: 2.0~pre8
Severity: normal
User: debian...@lists.debian.org
Usertags: obsolete-conffile adequate

Dear Maintainer,

In version 2.0~pre8, the bash completion file was moved from /etc to /usr/share.

However, the obsolete conffile is not properly clean up during the upgrade
(e.g. from buster to bullseye):

$ adequate unp
unp: obsolete-conffile /etc/bash_completion.d/unp
$ dpkg-query -W -f='${Conffiles}\n' unp | grep obsolete$
 /etc/bash_completion.d/unp 325011df902bf38dcf2ab188fb28f961 obsolete

Please use the dpkg-maintscript-helper support provided by
dh_installdeb to remove this obsolete conffile on upgrade.

https://www.debian.org/doc/debian-policy/ch-files.html#s-config-files
https://manpages.debian.org/man/1/dh_installdeb

Thanks for your work,

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.12.1 (SMP w/16 CPU threads)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages unp depends on:
ii  perl  5.32.1-4

unp recommends no packages.

Versions of packages unp suggests:
ii  bzip2   1.0.8-4
ii  cabextract  1.9-3
ii  lhasa   0.3.1-3
pn  orange  
ii  p7zip   16.02+dfsg-8
ii  p7zip-full  16.02+dfsg-8
pn  unrar | unrar-free  
ii  unzip   6.0-26
pn  xdms

-- Configuration Files:
/etc/bash_completion.d/unp [Errno 2] Aucun fichier ou dossier de ce type: 
'/etc/bash_completion.d/unp'

-- no debconf information

--
⢀⣴⠾⠻⢶⣦⠀  Sébastien Villemot
⣾⠁⢠⠒⠀⣿⡁  Debian Developer
⢿⡄⠘⠷⠚⠋⠀  https://sebastien.villemot.name
⠈⠳⣄  https://www.debian.org