Bug#990131: xserver-xorg-video-intel: legacy conffiles leftover
Package: xserver-xorg-video-intel
Version: 2:2.99.917+git20200714-1+b1
Severity: normal
Hi.
Despite #713340 there are still leftover:
# dpkg-query --showformat='${Package}\n${Conffiles}\n' --show | awk '/^[^ ]/{pkg=$1}/ obsolete$/{print pkg,$0}' | cut -d ' ' -f 1-3 | column -t
...
xserver-xorg-video-intel /etc/modprobe.d/i915-kms.conf
Guess the reason is that the version that was used in the maintainer
script seems wrong.
>From dpkg-maintscript-helper(1):
prior-version
Defines the latest version of the package whose upgrade should
trigger the operation. It is important to calculate prior-version
correctly so that the operations are correctly performed even if
the user rebuilt the package with a local version.
...
For example, for a conffile removed in version 2.0-1 of a package,
prior-version should be set to 2.0-1~. This will cause the conffile
to be removed even if the user rebuilt the previous version 1.0-1
as 1.0-1local1. Or a package switching a path from a symlink
(shipped in version 1.0-1) to a directory (shipped in version
2.0-1), but only performing the actual switch in the maintainer
scripts in version 3.0-1, should set prior-version to 3.0-1~.
In postrm you use: 2:2.21.9-1\~
however, according to the changelog, this was only added in 2:2.99.916-1~exp1
so anyone who had upgraded already beyond 2:2.21.9-1\~ is still left with legacy
cruft.
Cheers,
Chris.
Reply to: