Package: multistrap
Version: 2.1.14
Severity: important

Using following command:

| fakeroot /usr/sbin/multistrap -d $PWD/rootfs -f ./armel.conf

with following armel.conf inspired from shipped one:

|[General]
|arch=armel
|omitrequired=false
|configscript=
|setupscript=/usr/share/multistrap/setcrossarch.sh
|debootstrap=Debian
|aptsources=Debian
|cleanup=false
|noauth=false
|
|[Debian]
|packages=
|source=http://ftp.fr.debian.org/debian
|keyring=debian-archive-keyring
|suite=squeeze
|omitdebsrc=true

Stops with:

|I: Unpacking complete.
|Setting debconf dpkg-cross/default-arch to armel
|ERROR: ld.so: object 'libfakeroot-sysv.so' from LD_PRELOAD cannot be 
preloaded: ignored.
|[sudo] password for yann: 
|chroot: failed to run command `sh': Exec format error
|setupscript '/usr/share/multistrap/setcrossarch.sh' returned 126.

The setcrossarch.sh script does really try to run foreign sh and
debconf-set-selections !  Shouldn't this be done after initial target
boot instead ?  It would also remove the need for sudo, giving a
chance to unpriviledged rootfs build...

|# set the value inside the chroot
|echo "#!/bin/sh" > $dir/tmp/set.sh
|echo >> $dir/tmp/set.sh
|echo "export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true 
LC_ALL=C LANGUAGE=C LANG=C" >> $dir/tmp/set.sh
|echo "echo debconf dpkg-cross/default-arch select 
$CROSSARCH|debconf-set-selections" >> $dir/tmp/set.sh
|echo "Setting debconf dpkg-cross/default-arch to $CROSSARCH"
|sudo chroot $dir sh /tmp/set.sh
|sudo rm $dir/tmp/set.sh


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'oldstable'), (500, 'unstable'), (500, 
'stable'), (101, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38.4 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages multistrap depends on:
ii  apt                           0.8.14.1   Advanced front-end for dpkg
ii  libconfig-auto-perl           0.34-1     magical config file parser
ii  libparse-debian-packages-perl 0.01-2     parse the data from a Debian Packa
ii  perl                          5.12.3-7   Larry Wall's Practical Extraction 

Versions of packages multistrap recommends:
ii  emdebian-archive-keyring      2.0.1      GnuPG archive keys for the emdebia

Versions of packages multistrap suggests:
ii  fakeroot                      1.15.1-1   tool for simulating superuser priv

-- no debconf information



-- 
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