Your message dated Sun, 29 May 2011 14:38:19 +0200
with message-id <[email protected]>
and subject line Re: Bug#628478: base-files: please remove 'Pre-Depends: awk'
has caused the Debian Bug report #628478,
regarding base-files: please remove 'Pre-Depends: awk'
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.)


-- 
628478: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=628478
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: base-files
Version: 6.4
Severity: wishlist
Tags: patch

The 'Pre-Depends: awk' is superfluous.  Package coreutils:

        Essential: yes
        Priority: required

already privides 'tail' and 'cut' (smaller canons, compared to 'awk') that
can do the same job at a lower cost :)

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-2-686 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages base-files depends on:
ii  gawk [awk]                1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
ii  mawk [awk]                1.3.3-15       a pattern scanning and text proces

base-files recommends no packages.

base-files suggests no packages.

-- no debconf information


Cheers,

-- 
Cristian
--- ./debian/control.orig	2011-05-29 13:19:53.000000000 +0200
+++ ./debian/control	2011-05-29 13:20:30.000000000 +0200
@@ -7,7 +7,6 @@
 Package: base-files
 Provides: base
 Architecture: any
-Pre-Depends: awk
 Essential: yes
 Priority: required
 Replaces: base, miscutils, dpkg (<= 1.15.0)
--- ./debian/current-md5sums.orig	2011-05-29 13:21:48.000000000 +0200
+++ ./debian/current-md5sums	2011-05-29 13:23:33.000000000 +0200
@@ -1,3 +1,3 @@
 #!/bin/sh
-sed -e "s&#OSNAME#&GNU/Linux&" etc/motd | awk 'NR > 2' | md5sum
-sed -e "s&#OSNAME#&GNU/Hurd&"  etc/motd | awk 'NR > 2' | md5sum
+sed -e "s&#OSNAME#&GNU/Linux&" etc/motd | tail -n+3 | md5sum
+sed -e "s&#OSNAME#&GNU/Hurd&"  etc/motd | tail -n+3 | md5sum
--- ./debian/postinst.in.orig	2011-05-29 13:23:53.000000000 +0200
+++ ./debian/postinst.in	2011-05-29 13:30:15.000000000 +0200
@@ -104,12 +104,12 @@
 
 if [ "$1" = "configure" ] && [ "$2" != "" ]; then
   if [ -f /etc/motd ]; then
-    oldmd=`awk 'NR > 2' /etc/motd | md5sum | awk '{print $1}'`
-    newmd=`awk 'NR > 2' /usr/share/base-files/motd | md5sum | awk '{print $1}'`
+    oldmd=`tail -n+3 /etc/motd | md5sum | cut -d' ' -f1`
+    newmd=`tail -n+3 /usr/share/base-files/motd | md5sum | cut -d' ' -f1`
     if [ "$oldmd" != "$newmd" ]; then
       if grep -q "$oldmd" /usr/share/base-files/motd.md5sums; then
-        awk 'NR <= 2' /etc/motd > /etc/motd.new
-        awk 'NR > 2' /usr/share/base-files/motd >> /etc/motd.new
+        head -n2 /etc/motd > /etc/motd.new
+        tail -n+3 /usr/share/base-files/motd >> /etc/motd.new
         mv /etc/motd /etc/motd.old
         mv /etc/motd.new /etc/motd
       fi

--- End Message ---
--- Begin Message ---
El 29/05/11 13:47, Cristian Ionescu-Idbohrn escribió:
Package: base-files
Version: 6.4
Severity: wishlist
Tags: patch

The 'Pre-Depends: awk' is superfluous.

This is not a bug. base-files Pre-Depends on awk precisely to ensure that "awk" is essential.

The essential status of awk was decided more than 13 years ago.


--- End Message ---

Reply via email to