summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/data.py
diff options
context:
space:
mode:
authorTomasz Dziendzielski <tomasz.dziendzielski@gmail.com>2022-05-13 14:11:16 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-16 23:19:18 +0100
commit76310f35dd0d2c36747060ce99901e3f0d0cc7aa (patch)
treeac920f1acf91d0254e82202f5ce2d7ed1180826a /bitbake/lib/bb/data.py
parentbd66a18eaa463c2eab291fea68039bf0d61c7b8b (diff)
downloadpoky-76310f35dd0d2c36747060ce99901e3f0d0cc7aa.tar.gz
bitbake: data: Do not depend on vardepvalueexclude flag
If SRC_URI contains python function that extends vardepvalueexclude its value is being tracked by sstate-cache, which can lead to rebuilds if value is set dynamically (for example gerrit replicas). Return empty string if vardepvalueexclude is checked to fix this behaviour. (Bitbake rev: f5f9a7b89a7d8321f03184e61ad6d5ed8d0f840e) Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/data.py')
-rw-r--r--bitbake/lib/bb/data.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py
index 62ec214762..c09d9b04bb 100644
--- a/bitbake/lib/bb/data.py
+++ b/bitbake/lib/bb/data.py
@@ -277,6 +277,8 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, ignored_vars, d):
277 try: 277 try:
278 if key[-1] == ']': 278 if key[-1] == ']':
279 vf = key[:-1].split('[') 279 vf = key[:-1].split('[')
280 if vf[1] == "vardepvalueexclude":
281 return deps, ""
280 value, parser = d.getVarFlag(vf[0], vf[1], False, retparser=True) 282 value, parser = d.getVarFlag(vf[0], vf[1], False, retparser=True)
281 deps |= parser.references 283 deps |= parser.references
282 deps = deps | (keys & parser.execs) 284 deps = deps | (keys & parser.execs)