[oe-commits] Dan McGregor : dpkg: fix host contamination

git at git.openembedded.org git at git.openembedded.org
Wed Feb 11 17:40:39 UTC 2015


Module: openembedded-core.git
Branch: dizzy
Commit: 781d7e7fdff9d41dc962b7d35809396051a47303
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=781d7e7fdff9d41dc962b7d35809396051a47303

Author: Dan McGregor <dan.mcgregor at usask.ca>
Date:   Thu Jan 15 09:41:14 2015 -0600

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.

(From OE-Core rev: 45bcb1ea92f244df4745aca6f9f9556c43e9b6ce)

Signed-off-by: Dan McGregor <dan.mcgregor at usask.ca>
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808 at gmail.com>

---

 meta/recipes-devtools/dpkg/dpkg.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc
index 929906d..92d4020 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



More information about the Openembedded-commits mailing list