From: Dan McGregor Date: Thu, 15 Jan 2015 15:41:14 +0000 (-0600) Subject: dpkg: fix host contamination X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f512c196cc80ae46b29c7956d9a97a4fe055141e;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git dpkg: fix host contamination Force dpkg to use "tar" on the target. The dpkg configure script looks for gnutar, gtar, and tar in order. If it finds gnutar or gtar on the host it expects to use that as its tar program on the target. Without this, if gtar exists (as it does on my system) then dpkg will consistently fail on the target with an error about gtar not being found. Signed-off-by: Dan McGregor Signed-off-by: Ross Burton --- diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index 929906dfd84..92d40202763 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc @@ -37,6 +37,8 @@ EXTRA_OECONF = "\ --without-selinux \ " +EXTRA_OECONF_append_class-target = " TAR=tar" + do_configure () { echo >> ${S}/m4/compiler.m4 sed -i -e 's#PERL_LIBDIR=.*$#PERL_LIBDIR="${libdir}/perl"#' ${S}/configure