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 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: src:debianutils
severity: serious
version: 4.11.2
tag: patch

debianutil's add-shell script uses awk, but awk is not an
Essential:yes package.  For systems where awk is not yet installed
(chroots), installation of dash will currently fail since it's
postinst calls add-shell from debianutils.

A simple fix seems possible, just change add-shell to use cat, which
is in coreutils (Essential:yes).  Proposed update attached.

Best wishes,
Mike
--- debianutils-4.11.2/add-shell	2020-05-22 20:00:40.000000000 -0400
+++ debianutils-4.11.3/add-shell	2021-02-07 21:47:27.000000000 -0500
@@ -17,7 +17,7 @@
 }
 trap cleanup EXIT
 
-if ! awk '{print}' "$file" > "$tmpfile"
+if ! cat "$file" > "$tmpfile"
 then
         cat 1>&2 <<EOF
 Either another instance of $0 is running, or it was previously interrupted.

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

--- End Message ---

Reply via email to