From: Changqing Li <[email protected]>

With TMPDIR set to 400, gtk+3-native compile failed with failure:
ninja: fatal: posix_spawn: Argument list too long

Refer [1], one of the meson.build of gtk3, the list of files is long,
and with a long path, there files list will make arguments huge for
ninja. Refer [2], the open issue for ninja, meson need to improve
to make this work, and there is a fix for this, refer [3], but we can
still reproduce this issue with poky, I open an new issue for meson,
refer [4], and meantime, change our TMPDIR limit to 300 to avoid
this kind of issue. I also tested with 350, not works.

[1] https://github.com/gooroom/gtk3/blob/gooroom-3.0/gtk/meson.build
[2] https://github.com/ninja-build/ninja/issues/1261
[3] https://github.com/mesonbuild/meson/pull/7245
[4] https://github.com/mesonbuild/meson/issues/15423

Signed-off-by: Changqing Li <[email protected]>
---
 meta/classes-global/sanity.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes-global/sanity.bbclass 
b/meta/classes-global/sanity.bbclass
index c89ff2c51f..376f6e66af 100644
--- a/meta/classes-global/sanity.bbclass
+++ b/meta/classes-global/sanity.bbclass
@@ -803,8 +803,8 @@ def check_sanity_version_change(status, d):
     if not oes_bb_conf:
         status.addresult('You are not using the OpenEmbedded version of 
conf/bitbake.conf. This means your environment is misconfigured, in particular 
check BBPATH.\n')
 
-    # The length of TMPDIR can't be longer than 400
-    status.addresult(check_path_length(tmpdir, "TMPDIR", 400))
+    # The length of TMPDIR can't be longer than 300
+    status.addresult(check_path_length(tmpdir, "TMPDIR", 300))
 
     # Check that TOPDIR does not contain non ascii chars (perl_5.40.0, 
Perl-native and shadow-native build failures)
     status.addresult(check_non_ascii(topdir, "TOPDIR"))
-- 
2.34.1

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

  • [OE-core] [PATCH] sanity.bbcl... Changqing Li via lists.openembedded.org

Reply via email to