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:
parent
426ac8f2e1
commit
5001a57afc
2 changed files with 3 additions and 4 deletions
|
@ -27,7 +27,7 @@ suite=stable
|
||||||
|
|
||||||
# this is a duplicate if the suite is the same as the toolchain.
|
# this is a duplicate if the suite is the same as the toolchain.
|
||||||
[Debian]
|
[Debian]
|
||||||
packages=dpkg-dev binutils-multiarch build-essential
|
packages=dpkg-dev binutils-multiarch build-essential dpkg-cross
|
||||||
source=http://ftp.uk.debian.org/debian
|
source=http://ftp.uk.debian.org/debian
|
||||||
keyring=debian-archive-keyring
|
keyring=debian-archive-keyring
|
||||||
suite=unstable
|
suite=unstable
|
||||||
|
|
|
@ -47,10 +47,9 @@ fi
|
||||||
# set the value inside the chroot
|
# set the value inside the chroot
|
||||||
echo "#!/bin/sh" > $dir/tmp/set.sh
|
echo "#!/bin/sh" > $dir/tmp/set.sh
|
||||||
echo >> $dir/tmp/set.sh
|
echo >> $dir/tmp/set.sh
|
||||||
echo "export DEBIAN_FRONTEND=noninteractive ".
|
echo "export DEBIAN_FRONTEND=noninteractive DEBCONF_NONINTERACTIVE_SEEN=true LC_ALL=C LANGUAGE=C LANG=C" >> $dir/tmp/set.sh
|
||||||
"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 "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 "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 chroot $dir sh /tmp/set.sh
|
||||||
sudo rm $dir/tmp/set.sh
|
sudo rm $dir/tmp/set.sh
|
||||||
|
|
Loading…
Reference in a new issue