From: Dariusz Pelowski Date: Sat, 13 Jan 2018 10:58:10 +0000 (+0100) Subject: base.bbclass: add automatic dependency on xz-native for .deb SRC_URI X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~19092 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f0a4ee29b9fc15749a9d42fdf01718a7099c2d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git base.bbclass: add automatic dependency on xz-native for .deb SRC_URI FetchMethod.unpack requires xz for unpacking of embedded data.tar.xz Signed-off-by: Dariusz Pelowski Signed-off-by: Richard Purdie --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 6fe611489f8..912e81e0027 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -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)}")