[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1011515: marked as done (libnss-gw-name uses perl in postrm script)



Your message dated Wed, 23 Nov 2022 13:19:18 +0000
with message-id <E1oxpeo-007uLa-RQ@fasolo.debian.org>
and subject line Bug#1011515: fixed in libnss-gw-name 0.3-5
has caused the Debian Bug report #1011515,
regarding libnss-gw-name 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 owner@bugs.debian.org
immediately.)


-- 
1011515: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1011515
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---

Package: libnss-gw-name
Version: 0.3-4
Tags: patch

Dear maintainers of libnss-gw-name,

the current postrm script of `libnss-gw-name` requires Perl.

Using `perl` in maintscripts is problematic because Perl may no longer
be installed in the future by the time the user purges the `libnss-gw-name` package.

The specific use of `perl` in this maintscript can be replaced
with an equivalent `sed` invocation, as in the following patch (also
available at
<https://salsa.debian.org/gioele/libnss-gw-name/-/commit/f2d709d3>)


diff --git a/debian/postrm b/debian/postrm
index 1d20d42..d72984a 100644
--- a/debian/postrm
+++ b/debian/postrm
@@ -16,19 +16,7 @@ remove_nss_entry() {
         log "Could not find /etc/nsswitch.conf."
         return
     fi
-    perl -i -pe '
-        my @remove=(
-            "gw_name",
-        );
-        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+gw_name//g'
 }

 action="$1"

--
Gioele Barabucci

--- End Message ---
--- Begin Message ---
Source: libnss-gw-name
Source-Version: 0.3-5
Done: Gioele Barabucci <gioele@svario.it>

We believe that the bug you reported is fixed in the latest version of
libnss-gw-name, 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 1011515@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Gioele Barabucci <gioele@svario.it> (supplier of updated libnss-gw-name 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Wed, 23 Nov 2022 07:50:02 +0100
Source: libnss-gw-name
Architecture: source
Version: 0.3-5
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Gioele Barabucci <gioele@svario.it>
Closes: 1011515
Changes:
 libnss-gw-name (0.3-5) unstable; urgency=medium
 .
   * QA upload
   * d/patches: Cherry-pick PR#1 from upstream
   * d/control: Bump Standards-Version to 4.6.1 (no changes needed)
   * d/control: Point Vcs-* to salsa.d.o
   * d/nss: Install NSS service via dh_installnss (Closes: #1011515)
Checksums-Sha1:
 49b505d28e2badae61879fcebbc57d92b07aca94 1705 libnss-gw-name_0.3-5.dsc
 597ceb085af0ffa0a866fae6e6e8bcd4897fcdd3 3440 libnss-gw-name_0.3-5.debian.tar.xz
 86b2747c4babab9691961c986285c4bdc11bd477 5817 libnss-gw-name_0.3-5_source.buildinfo
Checksums-Sha256:
 2dcd0d745821a1a97f7a7ec2705943a9679f918b94bb74dbf8a45f30ea8ce84f 1705 libnss-gw-name_0.3-5.dsc
 e90ab823de597446ddf5bce61d58a4d4799b3b56653d7e5a5eff990710a5b54d 3440 libnss-gw-name_0.3-5.debian.tar.xz
 d7f58b3a1ee608e50545994a85d9b7f5500de82818bb7f957e6baa9b68cb58af 5817 libnss-gw-name_0.3-5_source.buildinfo
Files:
 cf3ed8071ce410a9349974be23396371 1705 admin optional libnss-gw-name_0.3-5.dsc
 30e584e9cc18d9401a4cd2cb787c8ded 3440 admin optional libnss-gw-name_0.3-5.debian.tar.xz
 a9a6d79d9a8171a72bdc59deab3f8d13 5817 admin optional libnss-gw-name_0.3-5_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQHEBAEBCgAuFiEEQGIgyLhVKAI3jM5BH1x6i0VWQxQFAmN+GbYQHGJhZ2VAZGVi
aWFuLm9yZwAKCRAfXHqLRVZDFI7+C/42yg7B2JCuXm7rCHbSQMauiwdnGPHAMWAO
d4AbGC/m+IAHDLBePOCFlTyxedLgEeh42zz7iz0gUSS0jt9rhDm5Wx6AabAJFyd5
gBCoouPwvUFY4HAiLdNWRfR5K5mGRbOG3cJmXaq2IacbmMdLq5S72Zt/gjJGt+6K
i8gFpVTl23glrZX5PzSj6vtXKkjhqL7PmMOcwvT7J9kGYFvQW/+Js2sHlcAjS847
ILLCAupe5ShOqQBHSK9X7mK7VOgJCLar6u+6ii0t7oc4iXFJzubNFKoZ2EoT30ng
+/33Dv8pxFk9nECKlx3pNfMdoV3CCPGWNlKirSNYdh0iWbpWkAYzb2zxb6Adf7sN
+bV3mf2/yRdHUSkXMmN39Q70IJfBYkqEvxwcrOqrSHW+JiTxZ1H1svgdDy4/hFJ3
8RS+AonsYmuZxXWyVHa4XgOQbVXMyddWgWlMNENF3eFH25aL/MAN3Qxsc6/dJm1u
torMtdlIZRpzuDWe3a5EgCw5Z7erygo=
=3cIO
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: