Your message dated Thu, 13 Jul 2023 00:21:27 +0200
with message-id <[email protected]>
and subject line Re: Bug#982275: debianutils: add-shell depends on 
non-essential package
has caused the Debian Bug report #982275,
regarding debianutils: replace use of awk with grep in add-shell
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.)


-- 
982275: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=982275
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debianutils
Version: 4.8.6.1
Severity: wishlist

Dear Maintainer,

add-shell uses the following construct to ensure that the last line of
/etc/shells contains a newline:

if ! awk '{print}' "$file" > "$tmpfile"

I'd like to request that it be changed to

if ! grep '' "$file" > "$tmpfile"

awk causes some issues during bootstrapping a new system as it requires
the use of update-alternatives to create the necessary symlink. grep
doesn't have this issue meaning that, for example, installing dash no
longer depends on awk being configured first.

Additionally doing this would be another step to removing awk from the
Essential: yes set.

Patch against unstable:
diff -urN debianutils.orig/usr/sbin/add-shell debianutils/usr/sbin/add-shell
--- debianutils.orig/usr/sbin/add-shell 2020-09-27 17:25:47.000000000 +0000
+++ debianutils/usr/sbin/add-shell      2021-03-16 11:50:42.941481568 +0000
@@ -17,7 +17,7 @@
 }
 trap cleanup EXIT
 
-if ! awk '{print}' "$file" > "$tmpfile"
+if ! grep '' "$file" > "$tmpfile"
 then
         cat 1>&2 <<EOF
 Either another instance of $0 is running, or it was previously interrupted.


Thanks,

-- System Information:
Debian Release: 10.9
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-16-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages debianutils depends on:
ii  libc6  2.28-10

debianutils recommends no packages.

debianutils suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Version: 5.0-1

--- End Message ---

Reply via email to