]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
dpkg: fix host contamination
authorDan McGregor <dan.mcgregor@usask.ca>
Thu, 15 Jan 2015 15:41:14 +0000 (09:41 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Jan 2015 10:37:53 +0000 (10:37 +0000)
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 <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-devtools/dpkg/dpkg.inc

index c3c51ebe80bff8a4ef51d5504e33ae6a741dab07..11d0eea2427cc611ea9ca89314b808d90b549ddf 100644 (file)
@@ -36,6 +36,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