Skip to contentSkip to conversation

base.bbclass: add automatic dependency on xz-native for .deb SRC_URI

PATCH New Dariusz Pelowski 1 participant 1 message Jan 13, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 base.bbclass: add automatic dependency on xz-native for .deb SRC_URI

FetchMethod.unpack requires xz for unpacking of embedded data.tar.xz

---
 meta/classes/base.bbclass | 4 ++++
 1 file changed, 4 insertions(+)
meta/classes/base.bbclass +4 -0
index 6fe611489f..912e81e002 100644
@@ -628,6 +628,10 @@ python () {
         elif path.endswith('.rpm'):
             d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot')
 
+        # *.deb should DEPEND on xz-native for unpacking
+        elif path.endswith('.deb'):
+            d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot')
+
     if needsrcrev:
         d.setVar("SRCPV", "${@bb.fetch2.get_srcrev(d)}")
 
Signature · 1 line
2.15.1