commit: 3a7cdd9a5bd767ad195fb20d2fd2fb4e7097a40a
Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 28 07:38:16 2022 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Jan 28 07:45:17 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a7cdd9a
www-client/firefox: Make cargo respect MAKEOPTS
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
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 626ac54e86e6..e2b258aa159d 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 8d7e2c1c0e9e..8b24b1dfafe2 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)/" \