Package: dash
Version: 0.5.7-3
Severity: normal

Dear Maintainer,

I am installing a fresh minimal system using multistrap. During the
configure phase, setting up dash fails with the following messages:
        Setting up dash (0.5.7-3) ...
        No diversion 'diversion of /bin/sh by dash', none removed.
        This should never be reached
The configure phase then fails.

My impression is, that the problem is caused by the fact that no diversion
exists yet for /bin/sh. This causes 'diverter' in 'check_divert' to be
empty, which then causes the failure.

The system I am installing is an armel system, with debian distribution
testing. After multistrap has unpacked everything, I copy qemu-arm-static
to the new directory tree, I mount /proc, /sys and /dev, and I run the
following command to configure:
        DEBIAN_FRONTEND=noninteractive \
        DEBCONF_NONINTERACTIVE_SEEN=true \
        LC_ALL=C \
        LANGUAGE=C \
        LANG=C \
        chroot "$root" dpkg --configure -a

I have added a 'set -x' to the postinst script. The output is attached.

Kind regards

Rogier.

Output of 'dpkg --configure -a', with 'set -x' added to
dash postinst script:
------------------------------------------
Setting up dash (0.5.7-3) ...
+ debconf=
+ [ -f /usr/share/debconf/confmodule ]
+ . /usr/share/debconf/confmodule
+ [ !  ]
+ PERL_DL_NONLAZY=1
+ export PERL_DL_NONLAZY
+ [  ]
+ exec /usr/share/debconf/frontend /var/lib/dpkg/info/dash.postinst configure 
+ debconf=
+ [ -f /usr/share/debconf/confmodule ]
+ . /usr/share/debconf/confmodule
+ [ ! 1 ]
+ [ -z  ]
+ exec
+ [  ]
+ exec
+ DEBCONF_REDIR=1
+ export DEBCONF_REDIR
+ debconf=yes
+ [ configure = configure ]
+ [ -z  ]
+ check_divert ash /bin/sh dash  ash
+ dfile=/bin/sh
+ ltarget=dash
+ distrib=/bin/sh.distrib
+ dpkg-divert --listpackage /bin/sh
+ diverter=
+ dpkg-divert --truename /bin/sh
+ truename=/bin/sh
+ dpkg-divert --list /bin/sh
+ div=
+ check_divert ash /usr/share/man/man1/sh.1.gz dash.1.gz 
/usr/share/man/man1/sh.distrib.1.gz ash.1.gz
+ dfile=/usr/share/man/man1/sh.1.gz
+ ltarget=dash.1.gz
+ distrib=/usr/share/man/man1/sh.distrib.1.gz
+ dpkg-divert --listpackage /usr/share/man/man1/sh.1.gz
+ diverter=
+ dpkg-divert --truename /usr/share/man/man1/sh.1.gz
+ truename=/usr/share/man/man1/sh.1.gz
+ dpkg-divert --list /usr/share/man/man1/sh.1.gz
+ div=
+ add_shell
+ type add-shell
+ add-shell /bin/dash
+ [ yes ]
+ db_get dash/sh
+ _db_cmd GET dash/sh
+ _db_internal_IFS=     

+ IFS= 
+ printf %s\n GET dash/sh
+ IFS=  

+ IFS=
 read -r _db_internal_line
+ RET=true
+ return 0
+ check_divert true /bin/sh dash
+ dfile=/bin/sh
+ ltarget=dash
+ distrib=/bin/sh.distrib
+ dpkg-divert --listpackage /bin/sh
+ diverter=
+ dpkg-divert --truename /bin/sh
+ truename=/bin/sh
+ [  != dash ]
+ [  = bash ]
+ dpkg-divert --package dash --remove /bin/sh
No diversion 'diversion of /bin/sh by dash', none removed.
+ echo This should never be reached
This should never be reached
+ exit 1
dpkg: error processing dash (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of bash:
 bash depends on dash (>= 0.5.5.1-2.2); however:
  Package dash is not configured yet.

dpkg: error processing bash (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 dash
 bash
------------------------------------------


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to