summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorChristopher Larson <kergoth@gmail.com>2014-01-06 10:17:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-01-06 17:35:48 +0000
commit97e1d84e2d1a74791ce6af88ddc27963bc0e1bec (patch)
treec3733eed8dce52e806b1db268468033da11c0e9a /meta/classes/base.bbclass
parent1094983ff87a8b745a5bc7bfe9514433ee3c4ad2 (diff)
downloadopenembedded-core-97e1d84e2d1a74791ce6af88ddc27963bc0e1bec.tar.gz
openembedded-core-97e1d84e2d1a74791ce6af88ddc27963bc0e1bec.tar.bz2
openembedded-core-97e1d84e2d1a74791ce6af88ddc27963bc0e1bec.zip
base.bbclass: pull in file-native for src.rpm
Unpacking an src.rpm uses rpm2cpio.sh, which requires 'file'. Without this, builds of rpm on a host without 'file' installed will fail with very strange messages. Signed-off-by: Christopher Larson <kergoth@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 73920fde47..2e5217b147 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -582,6 +582,10 @@ python () {
if ".zip" in srcuri:
d.appendVarFlag('do_unpack', 'depends', ' unzip-native:do_populate_sysroot')
+ # file is needed by rpm2cpio.sh
+ if ".src.rpm" in srcuri:
+ d.appendVarFlag('do_unpack', 'depends', ' file-native:do_populate_sysroot')
+
set_packagetriplet(d)
# 'multimachine' handling