[Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian

Guilherme Campos Camargo guicc at profusion.mobi
Mon Mar 19 22:48:25 UTC 2018

Emdebian has reportedly ceased to publish updates to its packages since
the beginning of 2015 causing some of them to be outdated and to
conflict with other packages in Debian Jessie.

The arm crosstoolchains that we were fetching from emdebian are
currently conflicting with the newest packages from debian/security,
what prevents the build to succeed.

On this patch, we remove emdebian sources and add debian unstable to apt
sources in order to install those packages from debian official

Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
 fuego-ro/toolchains/install_cross_toolchain.sh | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/fuego-ro/toolchains/install_cross_toolchain.sh b/fuego-ro/toolchains/install_cross_toolchain.sh
index 86d3973..4d43605 100755
--- a/fuego-ro/toolchains/install_cross_toolchain.sh
+++ b/fuego-ro/toolchains/install_cross_toolchain.sh
@@ -25,11 +25,10 @@ if [ -d /tmp/toolchain_install ] ; then
 mkdir -p /tmp/toolchain_install
-echo deb http://emdebian.org/tools/debian/ jessie main > /etc/apt/sources.list.d/crosstools.list
-dpkg --add-architecture $ARCH
-curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -
+echo deb http://deb.debian.org/debian unstable main > /etc/apt/sources.list.d/crosstools.list
+dpkg --add-architecture "${ARCH}"
 DEBIAN_FRONTEND=noninteractive apt-get update
-DEBIAN_FRONTEND=noninteractive apt-get -yV install crossbuild-essential-$ARCH
+DEBIAN_FRONTEND=noninteractive apt-get -yV install "crossbuild-essential-${ARCH}"
 # libaio is needed for LTP
 DEBIAN_FRONTEND=noninteractive apt-get -yV install libaio1:$ARCH
@@ -52,3 +51,4 @@ cp -vd usr/lib/${toolchain_dir}libaio.* /usr/lib/${toolchain_dir}
 # clean up
 rm -rf /tmp/toolchain_install
+rm -f /etc/apt/sources.list.d/crosstools.list

More information about the Fuego mailing list