diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-03-03 15:45:57 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-07 14:49:32 +0000 |
commit | 229bcde8e445344bd6906cc8fab0088123ba6add (patch) | |
tree | fb16b2b9a8b65a88f6a09efdbe285956b740c9c0 /meta/classes | |
parent | 0f96a831bca57ee2fd1b3aa3face0989716a5848 (diff) | |
download | poky-229bcde8e445344bd6906cc8fab0088123ba6add.tar.gz |
classes/buildhistory: fix task signatures changing
Fix task signatures for recipes that add to SSTATEPOSTINSTFUNCS changing
when adding and removing INHERIT += "buildhistory" (really this time!)
This relies on the BitBake vardepvalueexclude feature, however it will
not fail without it - signatures will be changed in that case though.
Part of the fix for [YOCTO #5897].
(From OE-Core rev: 27c8a9a282358b9a8a330252ee2104b250777b38)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index ef4135b1fd..1a0e35d58b 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -18,8 +18,10 @@ BUILDHISTORY_COMMIT_AUTHOR ?= "buildhistory <buildhistory@${DISTRO}>" | |||
18 | BUILDHISTORY_PUSH_REPO ?= "" | 18 | BUILDHISTORY_PUSH_REPO ?= "" |
19 | 19 | ||
20 | SSTATEPOSTINSTFUNCS += "buildhistory_emit_pkghistory" | 20 | SSTATEPOSTINSTFUNCS += "buildhistory_emit_pkghistory" |
21 | # We want to avoid influence the signatures of sstate tasks | 21 | # We want to avoid influence the signatures of sstate tasks - first the function itself: |
22 | SSTATEPOSTINSTFUNCS[vardepvalue] := "${@d.getVar('SSTATEPOSTINSTFUNCS', False).replace(' buildhistory_emit_pkghistory', '')}" | 22 | sstate_install[vardepsexclude] += "buildhistory_emit_pkghistory" |
23 | # then the value added to SSTATEPOSTINSTFUNCS: | ||
24 | SSTATEPOSTINSTFUNCS[vardepvalueexclude] .= "| buildhistory_emit_pkghistory" | ||
23 | 25 | ||
24 | # | 26 | # |
25 | # Write out metadata about this package for comparision when writing future packages | 27 | # Write out metadata about this package for comparision when writing future packages |