Your message dated Mon, 15 Aug 2022 19:06:10 +0000
with message-id <[email protected]>
and subject line Bug#1009646: fixed in nss-mdns 0.15.1-2
has caused the Debian Bug report #1009646,
regarding libnss-mdns uses perl in postrm script
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
1009646: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1009646
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: libnss-mdns
Version: 0.15.1-1
Tags: patch
Dear maintainers of libnss-mdns,
the current postrm script of `libnss-mdns` requires Perl. Maintscripts
should not assume the existence of Perl in future systems.
The specific use of `perl` in this maintscript can be replaced
with an equivalent `sed` invocation, as in the following patch (also
available as a merge request at
<https://salsa.debian.org/debian/nss-mdns/-/merge_requests/1>)
diff --git a/debian/libnss-mdns.postrm b/debian/libnss-mdns.postrm
index ef3f90b..93ff69a 100644
--- a/debian/libnss-mdns.postrm
+++ b/debian/libnss-mdns.postrm
@@ -14,27 +14,10 @@ remove_mdns() {
return
fi
log "Removing mdns from NSS setup"
- perl -i -pe '
- my @remove=(
- "mdns4_minimal [NOTFOUND=return]",
- "mdns4_minimal",
- "mdns4",
- "mdns6_minimal [NOTFOUND=return]",
- "mdns6_minimal",
- "mdns6",
- "mdns_minimal [NOTFOUND=return]",
- "mdns_minimal",
- "mdns",
- );
- sub remove {
- my $s=shift;
- foreach my $bit (@remove) {
- $s=~s/\s+\Q$bit\E//g;
- }
- return $s;
- }
- s/^(hosts:)(.*)/$1.remove($2)/e;
- ' /etc/nsswitch.conf
+ sed -E -i /etc/nsswitch.conf \
+ -e '/^hosts:/s/\s+mdns4(_minimal)?(\s+\[NOTFOUND=return\])?//g' \
+ -e '/^hosts:/s/\s+mdns6(_minimal)?(\s+\[NOTFOUND=return\])?//g' \
+ -e '/^hosts:/s/\s+mdns(_minimal)?(\s+\[NOTFOUND=return\])?//g'
}
action="$1"
--
Gioele Barabucci
--- End Message ---
--- Begin Message ---
Source: nss-mdns
Source-Version: 0.15.1-2
Done: Simon McVittie <[email protected]>
We believe that the bug you reported is fixed in the latest version of
nss-mdns, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Simon McVittie <[email protected]> (supplier of updated nss-mdns package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Mon, 15 Aug 2022 17:44:02 +0100
Source: nss-mdns
Architecture: source
Version: 0.15.1-2
Distribution: unstable
Urgency: medium
Maintainer: Utopia Maintenance Team
<[email protected]>
Changed-By: Simon McVittie <[email protected]>
Closes: 1009646
Changes:
nss-mdns (0.15.1-2) unstable; urgency=medium
.
[ Gioele Barabucci ]
* d/libnss-mdns.nss: Install NSS services `mdns*` via dh_installnss
- This avoids using Perl in the postrm (Closes: #1009646)
- This also supports DPKG_ROOT
* d/libnss-mdns.postinst: Drop code that deals with reordering services.
This was only run when upgrading from Debian 9 or older, and direct
upgrades from Debian 9 to this version are no longer supported.
.
[ Simon McVittie ]
* d/tests/*-resolve: Fix regression with systemd >= 251.3-2~exp1.
libnss-resolve now pulls in systemd-resolved, which Recommends
libnss-myhostname, which inserts itself into nsswitch.conf; but our tests
didn't cope gracefully with extra NSS modules.
* Standards-Version: 4.6.1 (no changes required)
Checksums-Sha1:
6bae6323f9776f8ca3e20d889dcedca6d7b9ed41 2266 nss-mdns_0.15.1-2.dsc
febebb7fcc0ee411bbdf215b34bb687e11c4dd31 12428 nss-mdns_0.15.1-2.debian.tar.xz
f3ce932b5016d245190521d775234dd4473dc245 5703
nss-mdns_0.15.1-2_source.buildinfo
Checksums-Sha256:
0d724e423fd215875f3863f599762f87edf56b1e4a14580de6cd2d0959e6da68 2266
nss-mdns_0.15.1-2.dsc
5d4f58465df8339a780776fb9ee4fcf0c327108f13379c54c6bdbdb68a18bb36 12428
nss-mdns_0.15.1-2.debian.tar.xz
503bae0afa8ab8952624713cbd521a598bc38408cc85eff1d714467df120c6a5 5703
nss-mdns_0.15.1-2_source.buildinfo
Files:
2788f0b437ecf3cd5d78d8e8eea4299d 2266 admin optional nss-mdns_0.15.1-2.dsc
cf4b1c6ce59721bfb1e96ec925eac547 12428 admin optional
nss-mdns_0.15.1-2.debian.tar.xz
4a9aa20f6c6917449cafaadd26797055 5703 admin optional
nss-mdns_0.15.1-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCAAdFiEENuxaZEik9e95vv6Y4FrhR4+BTE8FAmL6lEYACgkQ4FrhR4+B
TE82Xw/+LADx4LId5nRasHKWyYJ2AiXDbbe+IPclKIbf1zbZ71DvgoBOZu4Dq/r2
eDsjYqvC/1w4vcoHF1HcZOh5MSBQZBpyyHqt1Hlb5YjInJdAmPjzzYM4tlafBzzo
yjsJj+5MIbdrQhRfd/SDEFrPoEbfD5SsoVt5lK4DjbTqfscBQcWWzV9bWIktZlJY
9IU6dQMbBrO/+7zHs2DEyLB8X3PP617EpKwe29al2l4Iy+KJMfrVCio+ONDJGbyY
5BRxYbL/l42u+56gEvBbO4HDHta2WIwVprXf3mQ7owGELVSJ66vnyeKIOavLnFXV
IZ1pdEW3N1zAWI+6pLBenm5Pj2DCfDHi7aRnuI08NOIZfWllMaz0KOX3y90p0QDl
qwmhGKOPfCsk8FxSuN7AHUd9Yt96lezCjGJvVNQjOPUWuDTghSwpUE5oPlb8ebxX
KCMXLmaA3ypnmip/LaqfGvMo8PuyiBn5dUB1/loQI6uR74zVDik02fbM6/KRt5Tt
80ri6jvZHFK4tpdE0UoN3c6cFuB+tND0SbIYYfMs2bJkXNVFwGLR6SgBZtp5oLtE
tnDIvgafzBoMjyqqHGOFtfShnSWKSObxchRBOYYvySIp9tiqIu8VGZ8MenZIXHhF
ZgYGXVKOUWxIU9LbzMrzDguJj0wyP0fxR17cpg8OJC5HfgY7oJo=
=RkdE
-----END PGP SIGNATURE-----
--- End Message ---
_______________________________________________
Pkg-utopia-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-utopia-maintainers