Skip to contentSkip to conversation

data: Do not depend on vardepvalueexclude flag

PATCH New Tomasz Dziendzielski 1 participant 1 message May 13, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 lib/bb/data.py | 2 ++
 1 file changed, 2 insertions(+)
lib/bb/data.py +2 -0
index 62ec2147..c09d9b04 100644
@@ -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)
Signature · 1 line
2.36.0