www-client/firefox: force at least MAKEOPTS=-j2
authorThomas Deutschmann <whissi@gentoo.org>
Tue, 8 Oct 2019 21:06:26 +0000 (23:06 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Tue, 8 Oct 2019 21:13:55 +0000 (23:13 +0200)
Bug: https://bugs.gentoo.org/687028
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
www-client/firefox/firefox-60.9.0.ebuild
www-client/firefox/firefox-68.1.0.ebuild
www-client/firefox/firefox-69.0.2.ebuild

index dbac97b227d2a05d8d9f14276df3a443aadbca4d..92a177f882da1246a76b2401b8487f93ba34dcfb 100644 (file)
@@ -37,7 +37,8 @@ MOZCONFIG_OPTIONAL_WIFI=1
 LLVM_MAX_SLOT=9
 
 inherit check-reqs flag-o-matic toolchain-funcs eutils gnome2-utils llvm \
-               mozconfig-v6.60 pax-utils xdg-utils autotools mozlinguas-v2
+               mozconfig-v6.60 pax-utils xdg-utils autotools mozlinguas-v2 \
+               multiprocessing
 
 DESCRIPTION="Firefox Web Browser"
 HOMEPAGE="https://www.mozilla.com/firefox"
@@ -185,6 +186,12 @@ src_prepare() {
        # Allow user to apply any additional patches without modifing ebuild
        eapply_user
 
+       local n_jobs=$(makeopts_jobs)
+       if [[ ${n_jobs} == 1 ]]; then
+               einfo "Building with MAKEOPTS=-j1 is known to fail (bug #687028); Forcing MAKEOPTS=-j2 ..."
+               export MAKEOPTS=-j2
+       fi
+
        # Autotools configure is now called old-configure.in
        # This works because there is still a configure.in that happens to be for the
        # shell wrapper configure script
index e392249aee6a74d1e8f9c64c32b29dddeae90dcb..ac1e779e823d3b953770472fb5906f1247596975 100644 (file)
@@ -42,7 +42,7 @@ LLVM_MAX_SLOT=9
 
 inherit check-reqs eapi7-ver flag-o-matic toolchain-funcs eutils \
                gnome2-utils llvm mozcoreconf-v6 pax-utils xdg-utils \
-               autotools mozlinguas-v2 virtualx
+               autotools mozlinguas-v2 virtualx multiprocessing
 
 DESCRIPTION="Firefox Web Browser"
 HOMEPAGE="https://www.mozilla.com/firefox"
@@ -266,6 +266,12 @@ src_prepare() {
        # Allow user to apply any additional patches without modifing ebuild
        eapply_user
 
+       local n_jobs=$(makeopts_jobs)
+       if [[ ${n_jobs} == 1 ]]; then
+               einfo "Building with MAKEOPTS=-j1 is known to fail (bug #687028); Forcing MAKEOPTS=-j2 ..."
+               export MAKEOPTS=-j2
+       fi
+
        # Enable gnomebreakpad
        if use debug ; then
                sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \
index b39b1fb4f0b33b044694bbb55191541585f4c9f0..4821919cb2eb5f0e8e66124e6a81874df65f65ee 100644 (file)
@@ -42,7 +42,7 @@ LLVM_MAX_SLOT=9
 
 inherit check-reqs eapi7-ver flag-o-matic toolchain-funcs eutils \
                gnome2-utils llvm mozcoreconf-v6 pax-utils xdg-utils \
-               autotools mozlinguas-v2 virtualx
+               autotools mozlinguas-v2 virtualx multiprocessing
 
 DESCRIPTION="Firefox Web Browser"
 HOMEPAGE="https://www.mozilla.com/firefox"
@@ -270,6 +270,12 @@ src_prepare() {
        # Allow user to apply any additional patches without modifing ebuild
        eapply_user
 
+       local n_jobs=$(makeopts_jobs)
+       if [[ ${n_jobs} == 1 ]]; then
+               einfo "Building with MAKEOPTS=-j1 is known to fail (bug #687028); Forcing MAKEOPTS=-j2 ..."
+               export MAKEOPTS=-j2
+       fi
+
        # Enable gnomebreakpad
        if use debug ; then
                sed -i -e "s:GNOME_DISABLE_CRASH_DIALOG=1:GNOME_DISABLE_CRASH_DIALOG=0:g" \