Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: openembedded-devel@lists.openembedded.org
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Subject: Re: [PATCH] dpkg: Avoid automatic target architecture detection
Date: Sun, 7 Aug 2016 22:10:06 +0200	[thread overview]
Message-ID: <20160807201006.GF8132@piout.net> (raw)
In-Reply-To: <CA+chaQfAeAmNb3Dh2YwVgj5nr1p8FBN8_fWBJF3KLp5=QOaDUQ@mail.gmail.com>

On 06/08/2016 at 19:16:41 +0200, Martin Jansa wrote :
> Wrong ML, send it to openembedded-core ML.
> 

Indeed, I'll do that.

> On Sat, Aug 6, 2016 at 5:52 PM, Alexandre Belloni <
> alexandre.belloni@free-electrons.com> wrote:
> 
> > dpkg is using a script (dpkg-architecture.pl) to detect the target
> > architecture automatically.
> > Unfortunately, it is using the cross compiler prefix to do the detection
> > and for ARM, oe-core is using <vendor>-linux-gnueabi for toolchains with
> > and without call-convention hard. The script then always detects
> > 'armel' and never gets 'armhf' for call-convention hard.
> >
> > This solves:
> > dpkg: error processing archive evtest_1.32+0+b8343ec112-r0_armhf.deb
> > (--install):
> >  package architecture (armhf) does not match system (armel)
> >  Errors were encountered while processing:
> >  evtest_1.32+0+b8343ec112-r0_armhf.deb
> >
> > Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
> > ---
> >  meta/recipes-devtools/dpkg/dpkg.inc | 1 +
> >  1 file changed, 1 insertion(+)
> >
> > diff --git a/meta/recipes-devtools/dpkg/dpkg.inc
> > b/meta/recipes-devtools/dpkg/dpkg.inc
> > index 440a500..1f29113 100644
> > --- a/meta/recipes-devtools/dpkg/dpkg.inc
> > +++ b/meta/recipes-devtools/dpkg/dpkg.inc
> > @@ -35,6 +35,7 @@ EXTRA_OECONF = "\
> >                 "
> >
> >  EXTRA_OECONF += "TAR=tar"
> > +EXTRA_OECONF += "DEB_HOST_ARCH=${DPKG_ARCH}"
> >
> >  do_configure () {
> >      echo >> ${S}/m4/compiler.m4
> > --
> > 1.9.1
> >
> > --
> > _______________________________________________
> > Openembedded-devel mailing list
> > Openembedded-devel@lists.openembedded.org
> > http://lists.openembedded.org/mailman/listinfo/openembedded-devel
> >
> -- 
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel

-- 
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


      reply	other threads:[~2016-08-07 20:10 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-06 15:52 [PATCH] dpkg: Avoid automatic target architecture detection Alexandre Belloni
2016-08-06 17:16 ` Martin Jansa
2016-08-07 20:10   ` Alexandre Belloni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160807201006.GF8132@piout.net \
    --to=alexandre.belloni@free-electrons.com \
    --cc=nicolas.ferre@atmel.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox