Limit cores used for find-debuginfo (thanks kalev)

As suggested by Kalev Lember:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/7CX676QRC2QVZATX34WTCF2GL26AAWCL/
try using %limit_build to use only one CPU core per 32G of RAM
for find-debuginfo, to try and avoid builds failing due to lack
of memory:
https://bugzilla.redhat.com/show_bug.cgi?id=2241690
This commit is contained in:
Adam Williamson 2023-10-04 10:47:03 -07:00
parent 0115959c8c
commit 35e6001e2e

View File

@ -450,7 +450,7 @@ and translations langpack add-ons.
%global uname_m %(uname -m)
%global symbols_file_name %{name}-%{version}.en-US.%{_os}-%{uname_m}.crashreporter-symbols.zip
%global symbols_file_path %{moz_debug_dir}/%{symbols_file_name}
%global _find_debuginfo_opts -p %{symbols_file_path} -o debugcrashreporter.list
%global _find_debuginfo_opts %{limit_build -m 32768} -p %{symbols_file_path} -o debugcrashreporter.list
%global crashreporter_pkg_name mozilla-crashreporter-%{name}-debuginfo
%package -n %{crashreporter_pkg_name}
Summary: Debugging symbols used by Mozilla's crash reporter servers