From 747f2b282b34ccec67062f9bac47a6d4cb4bb274 Mon Sep 17 00:00:00 2001 From: Gyorgy Sarvari Date: Mon, 10 Feb 2025 16:45:14 +0100 Subject: mozjs-128: keep persistent state directory in WORKDIR Mozilla projects (built from Firefox tarball) keep some content around for the build process, for example Python virtual environments, which is reused between the tasks. This folder is by default in $HOME, unless it is overriden by the MOZBUILD_STATE_PATH environment variable. Having this content in the $HOME folder can be problematic, as it can contaminate the build machine. As different example, when using kas, it creates a new temporary $HOME with each invokation, which is deleted upon exiting the kas process. This can fail the build if for example do_compile and do_install were called in different kas sessions, as the tools and data stored in this folder are deleted between the runs. To solve this, set the MOZBUILD_STATE_PATH environment variable to a folder inside the $TMPDIR, so this semi-persistent data can be contained in a known path. Signed-off-by: Gyorgy Sarvari Signed-off-by: Khem Raj --- meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb | 1 + 1 file changed, 1 insertion(+) diff --git a/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb b/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb index 0edfbe73fc..4b56a17f84 100644 --- a/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb +++ b/meta-oe/recipes-extended/mozjs/mozjs-128_128.5.2.bb @@ -57,6 +57,7 @@ export HOST_CXXFLAGS = "${BUILD_CXXFLAGS}" export AS = "${CC}" +export MOZBUILD_STATE_PATH = "${WORKDIR}/mozbuild_state" export RUSTFLAGS JIT ?= "" -- cgit v1.2.3-54-g00ecf