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

Guilherme Campos Camargo guicc at profusion.mobi
Mon Mar 19 17:23:03 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
repositories.

As pointed out in the mailing list, this may not be the best approach,
given that some dependencies, that might be common with other packages',
have been upgraded to their unstable version.


Signed-off-by: Guilherme Campos Camargo <guicc at profusion.mobi>
---
 Dockerfile | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index f918ff7..213c046 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -125,11 +125,16 @@ RUN ln -s /fuego-ro/scripts/fuego-lava-target-teardown /usr/local/bin
 #RUN echo "fuego-create-node --board raspberrypi3" >> /root/firststart.sh
 #RUN echo "fuego-create-jobs --board raspberrypi3 --testplan testplan_docker --distrib nosyslogd.dist" >> /root/firststart.sh
 
-RUN echo "deb http://emdebian.org/tools/debian/ jessie main" > /etc/apt/sources.list.d/crosstools.list
-RUN dpkg --add-architecture armhf
-RUN curl http://emdebian.org/tools/debian/emdebian-toolchain-archive.key | sudo apt-key add -
-RUN DEBIAN_FRONTEND=noninteractive apt-get update
-RUN DEBIAN_FRONTEND=noninteractive apt-get -yV install crossbuild-essential-armhf cpp-arm-linux-gnueabihf gcc-arm-linux-gnueabihf binutils-arm-linux-gnueabihf
+RUN echo deb http://deb.debian.org/debian unstable main > \
+        /etc/apt/sources.list.d/crosstools.list && \
+    dpkg --add-architecture armhf && \
+    DEBIAN_FRONTEND=noninteractive apt-get update && \
+    DEBIAN_FRONTEND=noninteractive apt-get -yV install \
+        binutils-arm-linux-gnueabihf \
+        cpp-arm-linux-gnueabihf \
+        crossbuild-essential-armhf \
+        gcc-arm-linux-gnueabihf && \
+    rm -f /etc/apt/sources.list.d/crosstools.list
 
 
 # ==============================================================================
-- 
2.16.2



More information about the Fuego mailing list