Ionen pointed out that spidermonkey seems to pass -gdwarf-4 by default unless --disable-debug-symbols is passed in EXTRA_ECONF. Looking around, it seems Alpine also passes --disable-debug-symbols as well. We should probably then pass --disable-debug-symbols to reduce the build time a bit and disk space requirements. I imagine FF + TB needs the same?
(In reply to Sam James from comment #0) > I imagine FF + TB needs the same? Seems there's already some handling for this over there, but missing for spidermonkey. if is-flag '-g*' ; then if use clang ; then mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols=$(get-flag '-g*') else mozconfig_add_options_ac 'from CFLAGS' --enable-debug-symbols fi else mozconfig_add_options_ac 'Gentoo default' --disable-debug-symbols fi
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6aad8625f0579570a07e4d437557ca7c7e842f07 commit 6aad8625f0579570a07e4d437557ca7c7e842f07 Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2023-05-10 12:14:25 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2023-05-10 12:14:51 +0000 dev-lang/spidermonkey: add 102.11.0 Closes: https://bugs.gentoo.org/906045 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-lang/spidermonkey/Manifest | 1 + .../files/spidermonkey-102-known-test-failures.txt | 5 + dev-lang/spidermonkey/spidermonkey-102.11.0.ebuild | 413 +++++++++++++++++++++ 3 files changed, 419 insertions(+)
fwiw, these could probably be reduced now if USE=-debug: if use test ; then CHECKREQS_DISK_BUILD="7000M" else CHECKREQS_DISK_BUILD="6000M" fi I only tried with USE="jit -*" (not checked clang/lto/tests) but the gap from the current requirement is rather big: * Final size of build directory: 3314324 KiB ( 3.1 GiB) * Final size of installed tree: 41696 KiB (40.7 MiB) With USE=debug it still seem about right, albeit I did run out of space last time in stable despite 6GB free (maybe it's a bit borderline): * Final size of build directory: 6206668 KiB ( 5.9 GiB) * Final size of installed tree: 897848 KiB (876.8 MiB)
# grep -r "Final size of build directory" /var/tmp/portage/vbslogs/build/* /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-182439.log: * Final size of build directory: 3459448 KiB ( 3.2 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-182029.log: * Final size of build directory: 3443684 KiB ( 3.2 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-182926.log: * Final size of build directory: 3663116 KiB ( 3.4 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-183133.log: * Final size of build directory: 3465816 KiB ( 3.3 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-182310.log: * Final size of build directory: 3458768 KiB ( 3.2 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-182154.log: * Final size of build directory: 3440112 KiB ( 3.2 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-120907.log: * Final size of build directory: 3550248 KiB ( 3.3 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-182600.log: * Final size of build directory: 3617108 KiB ( 3.4 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-182759.log: * Final size of build directory: 3439456 KiB ( 3.2 GiB) /var/tmp/portage/vbslogs/build/dev-lang/spidermonkey-102.11.0:20230510-120740.log: * Final size of build directory: 3458764 KiB ( 3.2 GiB) 3,4 GB is: * USE: abi_x86_64 amd64 elibc_glibc kernel_linux lto userland_GNU guess adjusting makes sense. Funny earlier today when I was testing firefox-esr I was thinking I haven't checked the final size of build directory for _firefox_ in a while now.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf78017747a257d3a64325cf691df3123636edba commit bf78017747a257d3a64325cf691df3123636edba Author: Joonas Niilola <juippis@gentoo.org> AuthorDate: 2023-05-11 05:46:26 +0000 Commit: Joonas Niilola <juippis@gentoo.org> CommitDate: 2023-05-11 07:01:37 +0000 dev-lang/spidermonkey: reduce disk space requirement for 102.11.0 - after disabling debugging symbols from the build. Bug: https://bugs.gentoo.org/906045 Signed-off-by: Joonas Niilola <juippis@gentoo.org> dev-lang/spidermonkey/spidermonkey-102.11.0.ebuild | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)