All of lore.kernel.org
 help / color / mirror / Atom feed
* [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian
@ 2018-03-19 22:48 Guilherme Campos Camargo
  2018-03-20 20:44 ` Tim.Bird
  0 siblings, 1 reply; 6+ messages in thread
From: Guilherme Campos Camargo @ 2018-03-19 22:48 UTC (permalink / raw)
  To: fuego

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@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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian
  2018-03-19 22:48 [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian Guilherme Campos Camargo
@ 2018-03-20 20:44 ` Tim.Bird
  2018-03-20 21:23   ` Guilherme Camargo
  0 siblings, 1 reply; 6+ messages in thread
From: Tim.Bird @ 2018-03-20 20:44 UTC (permalink / raw)
  To: guicc, fuego

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@lists.linuxfoundation.org [mailto:fuego-
> bounces@lists.linuxfoundation.org] On Behalf Of Guilherme Campos
> Camargo
> Sent: Monday, March 19, 2018 3:48 PM
> To: fuego@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@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@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian
  2018-03-20 20:44 ` Tim.Bird
@ 2018-03-20 21:23   ` Guilherme Camargo
  0 siblings, 0 replies; 6+ messages in thread
From: Guilherme Camargo @ 2018-03-20 21:23 UTC (permalink / raw)
  To: Bird, Timothy; +Cc: fuego

[-- Attachment #1: Type: text/plain, Size: 4124 bytes --]

​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@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@lists.linuxfoundation.org [mailto:fuego-
> > bounces@lists.linuxfoundation.org] On Behalf Of Guilherme Campos
> > Camargo
> > Sent: Monday, March 19, 2018 3:48 PM
> > To: fuego@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@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@lists.linuxfoundation.org
> > https://lists.linuxfoundation.org/mailman/listinfo/fuego
>

[-- Attachment #2: Type: text/html, Size: 9723 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian
  2018-03-19 20:10 ` Tim.Bird
@ 2018-03-19 22:50   ` Guilherme Camargo
  0 siblings, 0 replies; 6+ messages in thread
From: Guilherme Camargo @ 2018-03-19 22:50 UTC (permalink / raw)
  To: Bird, Timothy; +Cc: fuego

[-- Attachment #1: Type: text/plain, Size: 3625 bytes --]

​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​


On Mon, Mar 19, 2018 at 5:10 PM, <Tim.Bird@sony.com> 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
>
>
> > -----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.
> >
> >
> > Signed-off-by: Guilherme Campos Camargo <guicc@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
> >
> > _______________________________________________
> > Fuego mailing list
> > Fuego@lists.linuxfoundation.org
> > https://lists.linuxfoundation.org/mailman/listinfo/fuego
>

[-- Attachment #2: Type: text/html, Size: 5678 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian
  2018-03-19 17:23 Guilherme Campos Camargo
@ 2018-03-19 20:10 ` Tim.Bird
  2018-03-19 22:50   ` Guilherme Camargo
  0 siblings, 1 reply; 6+ messages in thread
From: Tim.Bird @ 2018-03-19 20:10 UTC (permalink / raw)
  To: guicc, fuego

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


> -----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.
> 
> 
> Signed-off-by: Guilherme Campos Camargo <guicc@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
> 
> _______________________________________________
> Fuego mailing list
> Fuego@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian
@ 2018-03-19 17:23 Guilherme Campos Camargo
  2018-03-19 20:10 ` Tim.Bird
  0 siblings, 1 reply; 6+ messages in thread
From: Guilherme Campos Camargo @ 2018-03-19 17:23 UTC (permalink / raw)
  To: fuego

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@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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-03-20 21:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19 22:48 [Fuego] [PATCH] Install crosstoolchains from debian unstable instead of emdebian Guilherme Campos Camargo
2018-03-20 20:44 ` Tim.Bird
2018-03-20 21:23   ` Guilherme Camargo
  -- strict thread matches above, loose matches on Subject: below --
2018-03-19 17:23 Guilherme Campos Camargo
2018-03-19 20:10 ` Tim.Bird
2018-03-19 22:50   ` Guilherme Camargo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.