From 3a7cdd9a5bd767ad195fb20d2fd2fb4e7097a40a Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Fri, 28 Jan 2022 09:38:16 +0200 Subject: [PATCH] www-client/firefox: Make cargo respect MAKEOPTS Signed-off-by: Joonas Niilola --- www-client/firefox/firefox-91.5.1.ebuild | 3 +++ www-client/firefox/firefox-96.0.3.ebuild | 3 +++ 2 files changed, 6 insertions(+) diff --git a/www-client/firefox/firefox-91.5.1.ebuild b/www-client/firefox/firefox-91.5.1.ebuild index 626ac54e86e61..e2b258aa159db 100644 --- a/www-client/firefox/firefox-91.5.1.ebuild +++ b/www-client/firefox/firefox-91.5.1.ebuild @@ -580,6 +580,9 @@ src_prepare() { # Allow user to apply any additional patches without modifing ebuild eapply_user + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + # Make LTO respect MAKEOPTS sed -i \ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \ diff --git a/www-client/firefox/firefox-96.0.3.ebuild b/www-client/firefox/firefox-96.0.3.ebuild index 8d7e2c1c0e9eb..8b24b1dfafe21 100644 --- a/www-client/firefox/firefox-96.0.3.ebuild +++ b/www-client/firefox/firefox-96.0.3.ebuild @@ -582,6 +582,9 @@ src_prepare() { # Allow user to apply any additional patches without modifing ebuild eapply_user + # Make cargo respect MAKEOPTS + export CARGO_BUILD_JOBS="$(makeopts_jobs)" + # Make LTO respect MAKEOPTS sed -i \ -e "s/multiprocessing.cpu_count()/$(makeopts_jobs)/" \