ensure dpkg-cross is available inside the chroot

git-svn-id: http://emdebian.org/svn/current@7175 563faec7-e20c-0410-992a-a66f704d0ccd
This commit is contained in:
codehelp 2010-05-03 18:44:41 +00:00
parent 426ac8f2e1
commit 5001a57afc
2 changed files with 3 additions and 4 deletions

View file

@ -27,7 +27,7 @@ suite=stable
# this is a duplicate if the suite is the same as the toolchain.
[Debian]
packages=dpkg-dev binutils-multiarch build-essential
packages=dpkg-dev binutils-multiarch build-essential dpkg-cross
source=http://ftp.uk.debian.org/debian
keyring=debian-archive-keyring
suite=unstable

View file

@ -47,10 +47,9 @@ fi
# 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 "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 "dpkg-reconfigure dpkg-cross" >> $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