All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] data: Ensure emit_func honours vardeps flag
@ 2012-12-14 16:25 Richard Purdie
  2012-12-14 21:14 ` Chris Larson
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2012-12-14 16:25 UTC (permalink / raw)
  To: bitbake-devel

Currently, calling a shell function using exec_func may result in
dependent functions being missing, if the shell parser can't detect
the dependency, even if it was specified with the vardeps flag.

This patch ensures the function looks at the flag and considers it
when deciding which other functions need to be output.

[YOCTO #3561]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index dc5a425..478a482 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -260,6 +260,7 @@ def emit_func(func, o=sys.__stdout__, d = init()):
 
     emit_var(func, o, d, False) and o.write('\n')
     newdeps = bb.codeparser.ShellParser(func, logger).parse_shell(d.getVar(func, True))
+    newdeps |= set((d.getVarFlag(func, "vardeps", True) or "").split())
     seen = set()
     while newdeps:
         deps = newdeps





^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-12-14 21:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-14 16:25 [PATCH] data: Ensure emit_func honours vardeps flag Richard Purdie
2012-12-14 21:14 ` Chris Larson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.