Skip to contentSkip to conversation

Install crosstoolchains from debian unstable instead of emdebian

PATCH In review Guilherme Campos Camargo 2 participants 3 messages Mar 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Install crosstoolchains from debian unstable instead of emdebian

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.

---
 Dockerfile | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
Dockerfile +10 -5
index f918ff7..213c046 100644
@@ -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
 
 
 # ==============================================================================
Signature · 1 line
2.16.2
#1 lore raw

Guilherme,

Thank you very much for your research into this bug, and for the proposed fix. As stated in my other e-mail, I think I'd like to remove the default installation of ARM toolchains from the initial container build.

Could you possibly put these lines into:
fuego-ro/toolchains/install_cross_toolchain.sh
to replace the ones there that install emdebian toolchains?

Sorry, NAK on this particular patch, but I like switching to the toolchain packages from unstable (at least in the short run).

Thanks,
-- Tim

Quoted 66 lines

-----Original Message-----
From: Guilherme Campos Camargo

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.

---
 Dockerfile | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
Dockerfile +0 -0
index f918ff7..213c046 100644
@@ -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

Dockerfile +0 -2
-RUN dpkg --add-architecture armhf
-RUN curl http://emdebian.org/tools/debian/emdebian-toolchain-

archive.key | sudo apt-key add -

Dockerfile +0 -2
-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

Dockerfile +10 -0
+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

_______________________________________________
Fuego mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fuego

#2 lore raw

​Sure, np, Tim.

I added those lines into the install script, tested and it seems to be working fine.
Please see the new patch I just sent to the list.

Thanks

--
Guilherme​

Quoted 85 lines · On Mon, Mar 19, 2018 at 5:10 PM, <[email protected]> wrote:

Guilherme,

Thank you very much for your research into this bug, and for the proposed fix. As stated in my other e-mail, I think I'd like to remove the default installation of ARM toolchains from the initial container build.

Could you possibly put these lines into:
fuego-ro/toolchains/install_cross_toolchain.sh
to replace the ones there that install emdebian toolchains?

Sorry, NAK on this particular patch, but I like switching to the toolchain packages from unstable (at least in the short run).

Thanks,
-- Tim

Quoted 30 lines

-----Original Message-----
From: Guilherme Campos Camargo

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.

---
 Dockerfile | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
Dockerfile +0 -0
index f918ff7..213c046 100644
@@ -125,11 +125,16 @@ RUN ln -s /fuego-ro/scripts/fuego-lava-target-
Quoted 2 lines

teardown /usr/local/bin
#RUN echo "fuego-create-node --board raspberrypi3" >>

/root/firststart.sh

Quoted 34 lines

#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

Dockerfile +0 -2
-RUN dpkg --add-architecture armhf
-RUN curl http://emdebian.org/tools/debian/emdebian-toolchain-

archive.key | sudo apt-key add -

Dockerfile +0 -2
-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

Dockerfile +10 -0
+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

_______________________________________________
Fuego mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fuego