* [PATCH] base.bbclass: pull in file-native for src.rpm
@ 2014-01-06 17:17 Christopher Larson
0 siblings, 0 replies; only message in thread
From: Christopher Larson @ 2014-01-06 17:17 UTC (permalink / raw)
To: openembedded-core
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>
---
meta/classes/base.bbclass | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 73920fd..2e5217b 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
--
1.8.3.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-01-06 17:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-06 17:17 [PATCH] base.bbclass: pull in file-native for src.rpm Christopher Larson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox