sstate objects should not contain TMPDIR paths. Detect this and error if found as the side effects are quite problematic.
[YOCTO #16281] Signed-off-by: Richard Purdie <[email protected]> --- meta/classes-global/sstate.bbclass | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/meta/classes-global/sstate.bbclass b/meta/classes-global/sstate.bbclass index ce9baf58165..90d80b6f282 100644 --- a/meta/classes-global/sstate.bbclass +++ b/meta/classes-global/sstate.bbclass @@ -654,10 +654,15 @@ def sstate_package(ss, d): continue bb.error("sstate found an absolute path symlink %s pointing at %s. Please replace this with a relative link." % (srcpath, link)) exit = True + for dir in dirs: + dir = os.path.join(walkroot, dir).removeprefix(state[1]) + if tmpdir in dir: + bb.error("sstate found a tmpdir path reference in installation directiory %s which must be removed." % dir) + exit = True bb.debug(2, "Preparing tree %s for packaging at %s" % (state[1], sstatebuild + state[0])) bb.utils.rename(state[1], sstatebuild + state[0]) if exit: - bb.fatal("Failing task due to absolute path symlinks") + bb.fatal("Failing task due to absolute path symlinks or tmpdir path reference") workdir = d.getVar('WORKDIR') sharedworkdir = os.path.join(d.getVar('TMPDIR'), "work-shared")
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#237013): https://lists.openembedded.org/g/openembedded-core/message/237013 Mute This Topic: https://lists.openembedded.org/mt/119306066/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
