[Pkg-utopia-maintainers] Bug#782281: libnss-mdns: removal in multi-arch installation does not cause nsswitch.conf cleanup
Andreas Beckmann
anbe at debian.org
Thu Apr 9 22:51:45 UTC 2015
Package: libnss-mdns
Version: 0.10-6
Severity: important
User: debian-qa at lists.debian.org
Usertags: piuparts
Control: affects -1 + lib32nss-mdns
Hi,
during a test with piuparts I noticed your package left a modified
/etc/nsswitch.conf after removal in some scenarios:
# apt-get install libnss-mdns:i386 libnss-mdns:amd64
[...]
# dpkg -r libnss-mdns:i386 libnss-mdns:amd64
(Reading database ... 14620 files and directories currently installed.)
Removing libnss-mdns:i386 (0.10-6) ...
libnss-mdns.postrm: Not removing mdns from nsswitch.conf, 1 architecture(s) still installed
Removing libnss-mdns:amd64 (0.10-6) ...
libnss-mdns.postrm: Not removing mdns from nsswitch.conf, 1 architecture(s) still installed
Processing triggers for libc-bin (2.19-17) ...
# dpkg-query -f '${db:Status-Abbrev} ${binary:Package}\n' -W libnss-mdns
rc libnss-mdns:amd64
rc libnss-mdns:i386
# dpkg --purge libnss-mdns:i386 libnss-mdns:amd64
(Reading database ... 14601 files and directories currently installed.)
Removing libnss-mdns:i386 (0.10-6) ...
Purging configuration files for libnss-mdns:i386 (0.10-6) ...
Removing libnss-mdns:amd64 (0.10-6) ...
Purging configuration files for libnss-mdns:amd64 (0.10-6) ...
# grep hosts /etc/nsswitch.conf
hosts: files mdns4_minimal [NOTFOUND=return] dns
Looks like a package in config-files-remaining state is counted as
installed-on-some-architecture.
On the other hand, if the packages get removed+purged at the same
time, this works as planned:
# apt-get install libnss-mdns:i386 libnss-mdns:amd64
[...]
# dpkg --purge libnss-mdns:i386 libnss-mdns:amd64
(Reading database ... 14620 files and directories currently installed.)
Removing libnss-mdns:i386 (0.10-6) ...
libnss-mdns.postrm: Not removing mdns from nsswitch.conf, 1 architecture(s) still installed
Purging configuration files for libnss-mdns:i386 (0.10-6) ...
Removing libnss-mdns:amd64 (0.10-6) ...
libnss-mdns.postrm: Checking NSS setup...
libnss-mdns.postrm: Removing mdns from NSS setup
Purging configuration files for libnss-mdns:amd64 (0.10-6) ...
Processing triggers for libc-bin (2.19-17) ...
# grep hosts /etc/nsswitch.conf
hosts: files dns
Andreas
More information about the Pkg-utopia-maintainers
mailing list