summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-08 12:26:33 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-05-12 16:44:06 +0100
commit667ea364293a3650de529941b83105b2a522be8c (patch)
tree8a54b000bf6cd8da854e043e2f50c5f25d01f3f6
parent38c8316155fca5d3548b8af84d3fa4cee56750c3 (diff)
downloadpoky-667ea364293a3650de529941b83105b2a522be8c.tar.gz
package: Ensure we track whether PRSERV was active or not
Currently the signatures for do_packagedata don't reflect whether PRServ was active or not. This means that if you have mxiing of PRServ usage and non PRServ usage against the same sstate cache it can rarely become corrupted with one referencing the other. This likely doesn't happen in general but does on the autobuilder as PRServ is tested. Add in some variables to ensure the binary state of PRServ being enabled or disabled is tracked (but not the server value). We continue to assume one PRServ is used per sstate cache. (From OE-Core rev: 4c2f429d6876c29b17931daa039c4899aacd7234) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit dd660e5c3fb74f7c4b7b8e863f7143066ae22813) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 44fbc32df6..62050a18b8 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -662,7 +662,10 @@ def runtime_mapping_rename (varname, pkg, d):
662# Used by do_packagedata (and possibly other routines post do_package) 662# Used by do_packagedata (and possibly other routines post do_package)
663# 663#
664 664
665PRSERV_ACTIVE = "${@bool(d.getVar("PRSERV_HOST"))}"
666PRSERV_ACTIVE[vardepvalue] = "${PRSERV_ACTIVE}"
665package_get_auto_pr[vardepsexclude] = "BB_TASKDEPDATA" 667package_get_auto_pr[vardepsexclude] = "BB_TASKDEPDATA"
668package_get_auto_pr[vardeps] += "PRSERV_ACTIVE"
666python package_get_auto_pr() { 669python package_get_auto_pr() {
667 import oe.prservice 670 import oe.prservice
668 671