]> code.ossystems Code Review - openembedded-core.git/commitdiff
dpkg: Avoid automatic target architecture detection
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Mon, 8 Aug 2016 09:56:09 +0000 (11:56 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 10 Aug 2016 09:45:32 +0000 (10:45 +0100)
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>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/dpkg/dpkg.inc

index 58978015bd452579a9aedf82d23e33476aa73a4d..52a9bd7e2a7401b23685ff7a762d0cff838dc7a9 100644 (file)
@@ -33,6 +33,7 @@ EXTRA_OECONF = "\
                "
 
 EXTRA_OECONF += "TAR=tar"
+EXTRA_OECONF += "DEB_HOST_ARCH=${DPKG_ARCH}"
 
 do_configure () {
     echo >> ${S}/m4/compiler.m4