diff options
author | Dan McGregor <dan.mcgregor@usask.ca> | 2015-01-15 09:41:14 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-11 17:40:07 +0000 |
commit | f7ba14a571d6f0c0489afd7f1e14254ff2a171c6 (patch) | |
tree | dc9827aabea390e8572408e0d4317b3526b1af9d /meta | |
parent | bf32370c5eb0c2119af280f5eb1b5b8c11d822f0 (diff) | |
download | poky-f7ba14a571d6f0c0489afd7f1e14254ff2a171c6.tar.gz |
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)
(From OE-Core rev: 781d7e7fdff9d41dc962b7d35809396051a47303)
Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index 929906dfd8..92d4020276 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
@@ -37,6 +37,8 @@ EXTRA_OECONF = "\ | |||
37 | --without-selinux \ | 37 | --without-selinux \ |
38 | " | 38 | " |
39 | 39 | ||
40 | EXTRA_OECONF_append_class-target = " TAR=tar" | ||
41 | |||
40 | do_configure () { | 42 | do_configure () { |
41 | echo >> ${S}/m4/compiler.m4 | 43 | echo >> ${S}/m4/compiler.m4 |
42 | sed -i -e 's#PERL_LIBDIR=.*$#PERL_LIBDIR="${libdir}/perl"#' ${S}/configure | 44 | sed -i -e 's#PERL_LIBDIR=.*$#PERL_LIBDIR="${libdir}/perl"#' ${S}/configure |