]> code.ossystems Code Review - openembedded-core.git/commitdiff
dpkg: Only set DEB_HOST_ARCH in target case
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Sep 2016 08:14:55 +0000 (09:14 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Sep 2016 09:15:55 +0000 (10:15 +0100)
If we don't do this, the sstate checksums vary for dpkg-native depending
on which MACHINE is set and this is clearly incorrect. It leads
to dpkg-native rebuilding far too often.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/dpkg/dpkg.inc

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