Le 27/06/2021 à 17:07, Christoph Anton Mitterer a écrit :
On Sun, 2021-06-27 at 16:50 +0200, Ludovic Rousseau wrote:
What is the output of the commmand:
cat /var/lib/dpkg/info/pcscd.conffiles
Just:
/etc/init.d/pcscd
Not sure where dpkg keeps actually track of it's (obsolete) conffiles,
I think it's in:
/var/lib/dpkg/status: /etc/reader.conf.d/0comments
5ca480422c33bfe1fdcf7299289a12c9 obsolete
The "remove-on-upgrade" flag as documented in remove-on-upgrade(5)
may be a better option.
Probably. Maybe this simply creates a dpkg-maintscript-helper line in
the maintainer scripts.
My problem is that the file has been removed from the pcscd package
10 years ago.
So it will be time consuming (on my side) to check the fix is
working. I will need to install a Debian distribution from 10 years
ago (Debian 5.0 Etch) and upgrade it up to the next-Bullseye Debian
12 stable (that should be available in 2-3 years).
Hmm I don't think this is really necessary... or do you see any big
dangers in "blindly" removing an obsolete conffile, that was anyway
just a README file?
Can't you just erase the file from your system?
Well I for my self have already cleaned it up manually... but how many
tens of thousands Debian installations are out there which will have
such legacy cruft lingering around forever?
According to popcon pcscd is installed on 23796 systems.
But 10 years ago it was almost 0 (maybe less than 1000)
https://ludovicrousseau.blogspot.com/2020/04/smart-card-usage-in-debian-popcon.html
Therefore I think it's always good practise to properly clean that up
for the benefit of everyone.
I agree.
I tried conffiles as documented in deb-conffiles(5) and also
dpkg-maintscript-helper but with no success.
After some debug I have in dpkg-maintscript-helper logs:
DEBUG: dpkg-maintscript-helper: File '/etc/reader.conf.d/0comments' not owned
by package 'pcscd:amd64', skipping rm_conffile
So I guess dpkg-maintscript-helper can be used only when you upgrade from a
version of pcscd that provides the file /etc/reader.conf.d/0comments to a newer
version that uses dpkg-maintscript-helper to remove the conf file.
If the file /etc/reader.conf.d/0comments is not owned by the *current* version
of pcscd then it will not be removed on upgrade.
And since the last version of pcscd that owned the /etc/reader.conf.d/0comments
file is 10 years old...
My last option is to force the removal of /etc/reader.conf.d/0comments using something
simple like "rm -f /etc/reader.conf.d/0comments" but I think that is a
dangerous idea.
I should be safer (and simpler) to just keep the file where it is.
Regards,
--
Dr. Ludovic Rousseau