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

Guilherme Camargo guicc at profusion.mobi
Tue Mar 20 21:23:56 UTC 2018


​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


On Tue, Mar 20, 2018 at 5:44 PM, <Tim.Bird at sony.com> 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!
>  -- Tim
>
> > -----Original Message-----
> > From: fuego-bounces at lists.linuxfoundation.org [mailto:fuego-
> > bounces at lists.linuxfoundation.org] On Behalf Of Guilherme Campos
> > Camargo
> > Sent: Monday, March 19, 2018 3:48 PM
> > To: fuego at lists.linuxfoundation.org
> > Subject: [Fuego] [PATCH] 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.
> >
> > 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
> >  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
> > --
> > 2.16.2
> >
> > _______________________________________________
> > Fuego mailing list
> > Fuego at lists.linuxfoundation.org
> > https://lists.linuxfoundation.org/mailman/listinfo/fuego
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfoundation.org/pipermail/fuego/attachments/20180320/d527917c/attachment.html>


More information about the Fuego mailing list