Install crosstoolchains from debian unstable instead of emdebian
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.
--- fuego-ro/toolchains/install_cross_toolchain.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
fuego-ro/toolchains/install_cross_toolchain.sh +4 -4
@@ -25,11 +25,10 @@ if [ -d /tmp/toolchain_install ] ; then fi 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 cd $SAVEDIR rm -rf /tmp/toolchain_install +rm -f /etc/apt/sources.list.d/crosstools.list
Signature · 1 line
2.16.2
Applied and pushed.
I'm still testing. Bonnie had problems compiling with the new compiler. I haven't checked what the compiler version is. Going all the way from Jessie to Sid might be too big of a jump.
Is it possible to use this same approach, but just use Stretch's repository?
Thanks!
-- Tim
Quoted 64 lines
-----Original Message-----
From: [email protected] [mailto:fuego- [email protected]] On Behalf Of Guilherme Campos Camargo
Sent: Monday, March 19, 2018 3:48 PM
To: [email protected]
Subject: [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebianEmdebian 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.
Signed-off-by Guilherme Campos Camargo <[email protected]>--- fuego-ro/toolchains/install_cross_toolchain.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)fuego- renamed from fuego-ro/toolchains/install_cross_toolchain.sh +0
-0
ro/toolchains/install_cross_toolchain.sh
index 86d3973..4d43605 100755fuego-ro/toolchains/install_cross_toolchain.sh +0
-1@@ -25,11 +25,10 @@ if [ -d /tmp/toolchain_install ] ; then fi mkdir -p /tmp/toolchain_install -echo deb http://emdebian.org/tools/debian/ jessie main >
/etc/apt/sources.list.d/crosstools.listfuego-ro/toolchains/install_cross_toolchain.sh +0
-2-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.listfuego-ro/toolchains/install_cross_toolchain.sh +1
-1+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:$ARCHfuego-ro/toolchains/install_cross_toolchain.sh +1
-1@@ -52,3 +51,4 @@ cp -vd usr/lib/${toolchain_dir}libaio.* /usr/lib/${toolchain_dir} # clean up cd $SAVEDIR rm -rf /tmp/toolchain_install +rm -f /etc/apt/sources.list.d/crosstools.list --2.16.2
_______________________________________________
Fuego mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fuego
Hello, Tim.
Probably we can. I can see that at least the armhf toolchain is indeed available on stretch, and its requirements are much less demanding than the ones from sid. See below:
- https://packages.debian.org/stretch/crossbuild-essential-armhf
Package:
crossbuild-essential-armhf (12.3)
Deps:
dep: dpkg-cross
tools for cross compiling Debian packages
dep: g++-arm-linux-gnueabihf (>= 5.3)
GNU C++ compiler for the armhf architecture
dep: gcc-arm-linux-gnueabihf (>= 5.3)
- https://packages.debian.org/sid/crossbuild-essential-armhf
Package:
crossbuild-essential-armhf (12.4)
Deps:
dep: dpkg-cross
tools for cross compiling Debian packages
dep: g++-arm-linux-gnueabihf (>= 7.2)
GNU C++ compiler for the armhf architecture
dep: gcc-arm-linux-gnueabihf (>= 7.2)
GNU C compiler for the armhf architecture
I should have tried the one from stretch first, but for some reason didn't think about that.
I agree that we should try to use the one from stretch then.
Thanks
Quoted 78 lines · On Tue, Mar 20, 2018 at 5:44 PM, <[email protected]> wrote:
Applied and pushed.
I'm still testing. Bonnie had problems compiling with the new compiler. I haven't checked what the compiler version is. Going all the way from Jessie to Sid might be too big of a jump.
Is it possible to use this same approach, but just use Stretch's repository?
Thanks!
-- TimQuoted 42 lines
-----Original Message-----
From: [email protected] [mailto:fuego- [email protected]] On Behalf Of Guilherme Campos Camargo
Sent: Monday, March 19, 2018 3:48 PM
To: [email protected]
Subject: [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebianEmdebian 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.
Signed-off-by Guilherme Campos Camargo <[email protected]>--- fuego-ro/toolchains/install_cross_toolchain.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)fuego- renamed from fuego-ro/toolchains/install_cross_toolchain.sh +0
-0
ro/toolchains/install_cross_toolchain.sh
index 86d3973..4d43605 100755fuego-ro/toolchains/install_cross_toolchain.sh +0
-1@@ -25,11 +25,10 @@ if [ -d /tmp/toolchain_install ] ; then fi mkdir -p /tmp/toolchain_install -echo deb http://emdebian.org/tools/debian/ jessie main >
/etc/apt/sources.list.d/crosstools.listfuego-ro/toolchains/install_cross_toolchain.sh +0
-2-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.listfuego-ro/toolchains/install_cross_toolchain.sh if [ -d /tmp/toolchain_install ] ; then
Quoted 3 lines
fuego-ro/toolchains/install_cross_toolchain.sh +1
-1+dpkg --add-architecture "${ARCH}" DEBIAN_FRONTEND=noninteractive apt-get update -DEBIAN_FRONTEND=noninteractive apt-get -yV installcrossbuild-essential-
Quoted 19 lines
$ARCH
+DEBIAN_FRONTEND=noninteractive apt-get -yV install "crossbuild- essential-${ARCH}"# libaio is needed for LTP DEBIAN_FRONTEND=noninteractive apt-get -yV install libaio1:$ARCHfuego-ro/toolchains/install_cross_toolchain.sh +1
-1@@ -52,3 +51,4 @@ cp -vd usr/lib/${toolchain_dir}libaio.* /usr/lib/${toolchain_dir} # clean up cd $SAVEDIR rm -rf /tmp/toolchain_install +rm -f /etc/apt/sources.list.d/crosstools.list --2.16.2
_______________________________________________
Fuego mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/fuego