summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-13 16:23:26 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-13 16:56:20 +0000
commitbd047935305c872b565f30b46c94b7077e5fb3a2 (patch)
tree988cebf07b7de0be0e30cee916d0987fea2e24f5
parent1d2697e6f00cc3771f39f5a7d4384a22d9696b16 (diff)
downloadopenembedded-core-bd047935305c872b565f30b46c94b7077e5fb3a2.tar.gz
openembedded-core-bd047935305c872b565f30b46c94b7077e5fb3a2.tar.bz2
openembedded-core-bd047935305c872b565f30b46c94b7077e5fb3a2.zip
patch.bbclass: Ensure the DATE and SRCDATE variable exclusions apply to the correct function
People have noticed that sstate is now getting invalidated very readily. The issue is that the code using these variables was factored into a new function but the variable exclusion was not. This patch moves the variable exclusion to the correct place allowing the sstate checksums to work correctly. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/patch.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index 335d02ec71..471c32bce2 100644
--- a/meta/classes/patch.bbclass
+++ b/meta/classes/patch.bbclass
@@ -105,6 +105,8 @@ def should_apply(parm, d):
return True, None
+should_apply[vardepsexclude] = "DATE SRCDATE"
+
python patch_do_patch() {
import oe.patch
@@ -155,7 +157,7 @@ python patch_do_patch() {
bb.fatal(str(exc))
resolver.Resolve()
}
-patch_do_patch[vardepsexclude] = "DATE SRCDATE PATCHRESOLVE"
+patch_do_patch[vardepsexclude] = "PATCHRESOLVE"
addtask patch after do_unpack
do_patch[dirs] = "${WORKDIR}"