summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Dziendzielski <tomasz.dziendzielski@gmail.com>2022-05-23 04:40:04 -1000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-25 18:00:34 +0100
commit943701ee8cb55307996545f0237721413edfb168 (patch)
tree7fc6120b3e1248c1d102b03447c969790924d281
parent8ac6e09447d884e658c556388d6014279c50f202 (diff)
downloadbitbake-943701ee8cb55307996545f0237721413edfb168.tar.gz
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. Signed-off-by: Tomasz Dziendzielski <tomasz.dziendzielski@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit f5f9a7b89a7d8321f03184e61ad6d5ed8d0f840e) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/data.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py
index 62ec21476..c09d9b04b 100644
--- a/lib/bb/data.py
+++ b/lib/bb/data.py
@@ -277,6 +277,8 @@ def build_dependencies(key, keys, shelldeps, varflagsexcl, ignored_vars, d):
try:
if key[-1] == ']':
vf = key[:-1].split('[')
+ if vf[1] == "vardepvalueexclude":
+ return deps, ""
value, parser = d.getVarFlag(vf[0], vf[1], False, retparser=True)
deps |= parser.references
deps = deps | (keys & parser.execs)