Package: gawk
Version: 1:3.1.6.dfsg-3
Severity: important
Tags: patch

I receive following output during gawk installation:

====
Setting up gawk (1:3.1.6.dfsg-3) ...
update-alternatives: error: alternative nawk can't be slave of awk: it is a 
master alternative.
dpkg: error processing gawk (--configure):
 subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of geda-gnetlist:
 geda-gnetlist depends on gawk; however:
  Package gawk is not configured yet.
dpkg: error processing geda-gnetlist (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of geda:
 geda depends on geda-gnetlist; however:
  Package geda-gnetlist is not configured yet.
dpkg: error processing geda (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 gawk
 geda-gnetlist
 geda
E: Sub-process /usr/bin/dpkg returned an error code (1)
====

This probably comes from some restructuring in the alternatives system.

Removing the nawk references in debian/postinst let me install without errors.
However, I am not sure if this is the correct solution.


meillo

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

Kernel: Linux 2.6.26-1-686-bigmem (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gawk depends on:
ii  libc6                         2.9-14     GNU C Library: Shared libraries

gawk recommends no packages.

gawk suggests no packages.

-- no debconf information
--- debian/postinst     2009-06-18 22:07:56.000000000 +0200
+++ ../../gawk-3.1.6.dfsg/debian/postinst       2009-06-18 21:53:31.000000000 
+0200
@@ -1,10 +1,8 @@
 #!/bin/sh -e
 
 update-alternatives --quiet --install /usr/bin/awk awk /usr/bin/gawk 10 \
-  --slave /usr/share/man/man1/awk.1.gz awk.1.gz /usr/share/man/man1/gawk.1.gz \
-  --slave /usr/bin/nawk nawk /usr/bin/gawk \
-  --slave /usr/share/man/man1/nawk.1.gz nawk.1.gz /usr/share/man/man1/gawk.1.gz
-for badlink in /usr/man/man1/awk.1 /usr/man/man1/nawk.1; do
+  --slave /usr/share/man/man1/awk.1.gz awk.1.gz /usr/share/man/man1/gawk.1.gz
+for badlink in /usr/man/man1/awk.1; do
   if [ -L $badlink ]; then
     if ! ls -l $(ls -l $badlink | cut -d">" -f2) >/dev/null 2>&1; then
       rm -f $badlink; fi; fi; done

Reply via email to