From: Wes Lindauer <[email protected]>

The sstate-cache for libecj-bootstrap is not shareable across multiple
machines because the parallelisation configuration of Bitbake is being
embedded into the sstate hash of libecj-bootstrap.

Exclude BB_NUMBER_THREADS from the do_compile sstate hashing to avoid
this issue.

Commit message adapted from a5257d41f32812bc9426183cc8d2b6f07617b0d5.

Signed-off-by: Wes Lindauer <[email protected]>
---
 recipes-core/ecj/libecj-bootstrap.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/recipes-core/ecj/libecj-bootstrap.inc 
b/recipes-core/ecj/libecj-bootstrap.inc
index 8f84fd0..2f3cc97 100644
--- a/recipes-core/ecj/libecj-bootstrap.inc
+++ b/recipes-core/ecj/libecj-bootstrap.inc
@@ -54,6 +54,7 @@ do_compile() {
 
   fastjar -c -C build . -f ${JAR}
 }
+do_compile[vardepsexclude] += "BB_NUMBER_THREADS"
 
 do_install() {
   oe_jarinstall ${JAR} ecj-bootstrap.jar
-- 
2.21.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#89875): 
https://lists.openembedded.org/g/openembedded-devel/message/89875
Mute This Topic: https://lists.openembedded.org/mt/81073015/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to