From c3232ed2daff693d4e4075c6d87ea8d0387e8df4 Mon Sep 17 00:00:00 2001 From: Zhai Edwin Date: Wed, 25 Aug 2010 16:05:13 +0800 Subject: base.bbclass: Add xz-native as depends when finding *.xz in SRCURI Just adding xz-native as DEPENDS in one bb file could not make its unpack run after xz-native build done. Signed-off-by: Zhai Edwin --- meta/classes/base.bbclass | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 843c380a9..6824f8e51 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -516,6 +516,13 @@ python () { depends = depends + " shasum-native:do_populate_sysroot" bb.data.setVarFlag('do_fetch', 'depends', depends, d) + # *.xz should depends on xz-native for unpacking + # Not endswith because of "*.patch.xz;patch=1". Need bb.decodeurl in future + if '.xz' in srcuri: + depends = bb.data.getVarFlag('do_unpack', 'depends', d) or "" + depends = depends + " xz-native:do_populate_sysroot" + bb.data.setVarFlag('do_unpack', 'depends', depends, d) + # 'multimachine' handling mach_arch = bb.data.getVar('MACHINE_ARCH', d, 1) pkg_arch = bb.data.getVar('PACKAGE_ARCH', d, 1) -- cgit v1.2.3