From 80e01c6f67cd5ee619f976bd1f3c02fcfac55297 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Fri, 2 Apr 2021 23:15:14 -0300 Subject: [PATCH] firefox: decrease memory requirements for 32bit builders. Flags pulled from Alpine build. Failure can be seen in https://build.voidlinux.org/builders/i686_builder/builds/31550/steps/shell_3/logs/stdio > 79:15.36 cargo:warning=virtual memory exhausted: Cannot allocate memory --- srcpkgs/firefox/template | 2 ++ 1 file changed, 2 insertions(+) diff --git a/srcpkgs/firefox/template b/srcpkgs/firefox/template index 013422c663b..58cc021a39d 100644 --- a/srcpkgs/firefox/template +++ b/srcpkgs/firefox/template @@ -135,6 +135,8 @@ do_build() { # work around large debug symbols on 32-bit hosts if [ "$XBPS_WORDSIZE" = "32" ]; then + echo "ac_add_options --disable-debug-symbols" >>.mozconfig + echo "ac_add_options --disable-debug" >>.mozconfig export LDFLAGS+=" -Wl,--no-keep-memory" # patch the rust debug level, this is hardcoded vsed -i 's/debug_info = "2"/debug_info = "0"/' \