summaryrefslogtreecommitdiffstats
path: root/bitbake
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:44 +0100
commit2fd92929c2f76bb479743860ab8cea0713f30753 (patch)
treec42107af1a649a5040fd139154113de73304d169 /bitbake
parent7c0dd56d2819287af2c876837eb279288a34e128 (diff)
downloadpoky-2fd92929c2f76bb479743860ab8cea0713f30753.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: 943701ee8cb55307996545f0237721413edfb168) 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>
Diffstat (limited to 'bitbake')
-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)