summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/archiver.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/archiver.bbclass b/meta/classes/archiver.bbclass
index 31c9b7eb4b..7c3e701e70 100644
--- a/meta/classes/archiver.bbclass
+++ b/meta/classes/archiver.bbclass
@@ -98,9 +98,12 @@ python () {
98 98
99 # There is a corner case with "gcc-source-${PV}" recipes, they don't have 99 # There is a corner case with "gcc-source-${PV}" recipes, they don't have
100 # the "do_configure" task, so we need to use "do_preconfigure" 100 # the "do_configure" task, so we need to use "do_preconfigure"
101 if pn.startswith("gcc-source-"): 101 def hasTask(task):
102 return bool(d.getVarFlag(task, "task", False)) and not bool(d.getVarFlag(task, "noexec", False))
103
104 if hasTask("do_preconfigure"):
102 d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_preconfigure' % pn) 105 d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_preconfigure' % pn)
103 else: 106 elif hasTask("do_configure"):
104 d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_configure' % pn) 107 d.appendVarFlag('do_ar_configured', 'depends', ' %s:do_configure' % pn)
105 d.appendVarFlag('do_deploy_archives', 'depends', ' %s:do_ar_configured' % pn) 108 d.appendVarFlag('do_deploy_archives', 'depends', ' %s:do_ar_configured' % pn)
106 109