Skip to contentSkip to conversation

base.bbclass: pull in file-native for src.rpm

PATCH New Christopher Larson 1 participant 1 message Jan 6, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 meta/classes/base.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
meta/classes/base.bbclass +4 -0
index 73920fd..2e5217b 100644
@@ -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
Signature · 1 line
1.8.3.4