mail-client/thunderbird: force at least MAKEOPTS=-j2
authorThomas Deutschmann <whissi@gentoo.org>
Tue, 8 Oct 2019 21:09:36 +0000 (23:09 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Tue, 8 Oct 2019 21:13:57 +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>
mail-client/thunderbird/thunderbird-60.9.0.ebuild
mail-client/thunderbird/thunderbird-68.1.1.ebuild

index 8c928066e9c6ee574688cda179d6dd2d709f50b2..b0f5a33a9ef4526bd735315ae89382df69c9c847 100644 (file)
@@ -34,7 +34,7 @@ MOZ_P="${PN}-${MOZ_PV}"
 
 LLVM_MAX_SLOT=8
 
-inherit check-reqs flag-o-matic toolchain-funcs gnome2-utils llvm mozcoreconf-v6 pax-utils xdg-utils autotools mozlinguas-v2
+inherit check-reqs flag-o-matic toolchain-funcs gnome2-utils llvm mozcoreconf-v6 pax-utils xdg-utils autotools mozlinguas-v2 multiprocessing
 
 DESCRIPTION="Thunderbird Mail Client"
 HOMEPAGE="https://www.mozilla.org/thunderbird"
@@ -277,6 +277,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 0610d908962fdb445ed8af8aeb185b5fa7eba38d..c9c1852c2d38985d3390afd36af3733d797a1a6f 100644 (file)
@@ -56,7 +56,7 @@ SRC_URI="${SRC_URI}
 
 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
 
 CDEPEND="
        >=dev-libs/nss-3.44.1
@@ -263,6 +263,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" \