From: Thomas Kunze Date: Tue, 24 Apr 2007 20:15:45 +0000 (+0000) Subject: base.bbclass: fix depency problem, closes #2137 (and some others) X-Git-Tag: Release-2010-05/1~8868^2~660^2~53 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed8a6dd0ff4503b51e1eb2bf94cec518f2ba0fe2;p=openembedded.git base.bbclass: fix depency problem, closes #2137 (and some others) --- diff --git a/classes/base.bbclass b/classes/base.bbclass index 1dd3a488b3..36ccbd6438 100644 --- a/classes/base.bbclass +++ b/classes/base.bbclass @@ -804,6 +804,8 @@ def base_after_parse(d): if this_machine and not re.match(need_machine, this_machine): raise bb.parse.SkipPackage("incompatible with machine %s" % this_machine) + + pn = bb.data.getVar('PN', d, 1) use_nls = bb.data.getVar('USE_NLS_%s' % pn, d, 1) @@ -874,7 +876,7 @@ def base_oldbitbake_workarounds(d): if bb.data.inherits_class('package_deb', d): depends = "dpkg-native " + depends if bb.data.inherits_class('package', d): - depends = "${PACKAGE_DEPENDS} fakeroot-native" + depends + depends = "${PACKAGE_DEPENDS} fakeroot-native " + depends bb.data.setVar('DEPENDS', depends, d)