Bug#420799: libc6: postinst fails on awk during cdebootstrap (i386, sparc)
Package: libc6
Version: 2.5-4
Severity: normal
If you attempt to cdebootstrap sid on i386 it fails on the libc6 postinst.
O: Selecting previously deselected package mawk.
O: dpkg: regarding .../mawk_1.3.3-11_i386.deb containing mawk,
pre-dependency problem:
O: mawk pre-depends on libc6 (>= 2.3.1-1)
O: libc6 is unpacked, but has never been configured.
O: dpkg: warning - ignoring pre-dependency problem !
O: Unpacking mawk (from .../mawk_1.3.3-11_i386.deb) ...
P: Unpacking package mawk
....
O: Setting up libc6 (2.5-4) ...
P: Configuring package libc6
O: /var/lib/dpkg/info/libc6.postinst: line 176: awk: command not found
As mawk has not been configured it has not set up the alternatives to
provide awk.
..../CHROOT# ls etc/alternatives/
README
This means that the postinst will fail with cdebootstrap on any arch which
sets $hwcappkgs (e.g. I believe sparc and kfreebsd-i386 are also impacted).
if [ -n "$hwcappkgs" ]; then
for pkg in $hwcappkgs ; then
ver=$(dpkg -l $pkg 2>/dev/null | awk '/^i/ { print $3 }')
-- System Information:
Debian Release: 4.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.20.1-slh-smp-2 (SMP w/2 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
-- no debconf information
Reply to: