Skip to contentSkip to conversation

Add PATCHRESOLVE to excluded vars for generating sstate-cache

PATCH Applied Matthew McClintock 2 participants 2 messages Nov 17, 2011 – Nov 25, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add PATCHRESOLVE to excluded vars for generating sstate-cache

The method of resolving the patch should not effect the sstate-cache signature.

---
I'm not 100% sure about this one either - should we even generate sstate-cache at all if we have a scenario where we try to resolve a patch?

 meta/classes/patch.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
meta/classes/patch.bbclass +1 -1
index 7622163..5f9765c 100644
@@ -138,7 +138,7 @@ python patch_do_patch() {
 			raise bb.build.FuncFailed(str(sys.exc_value))
 		resolver.Resolve()
 }
-patch_do_patch[vardepsexclude] = "DATE SRCDATE"
+patch_do_patch[vardepsexclude] = "DATE SRCDATE PATCHRESOLVE"
 
 addtask patch after do_unpack
 do_patch[dirs] = "${WORKDIR}"
Signature · 1 line
1.7.6.1
#1 lore raw
Quoted 11 lines · Matthew McClintock

The method of resolving the patch should not effect the sstate-cache signature.

---
I'm not 100% sure about this one either - should we even generate sstate-cache at all if we have a scenario where we try to resolve a patch?

 meta/classes/patch.bbclass |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Merged to master, thanks.

In answer to the question, there clearly shouldn't be a dependency on this variable. We can depend on the variable even if the conditional code using it doesn't actually use the code as the dependency analysis doesn't account for conditional code paths.

Cheers,

Richard