commit:     074b43e3ede4b1c161a64937f32c815fcee4d8c8
Author:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 29 23:18:34 2019 +0000
Commit:     Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
CommitDate: Sun Sep 29 23:23:50 2019 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=074b43e3

gkbuilds/boost{,-build}: Disable distcc usage

It's known that distcc cannot really compile boost: It will always
fallback to local processing -- even in pump mode.

However, when user normally uses distcc, user has probably set higher
parallel jobs (MAKEOPTS) than available processing units which could
kill the system running genkernel.

DISABLE_DISTCC=yes will limit distcc to localhost and adjust MAKEOPTS
if necessary only for this gkbuild.

Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>

 gkbuilds/boost-build.gkbuild | 4 ++++
 gkbuilds/boost.gkbuild       | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/gkbuilds/boost-build.gkbuild b/gkbuilds/boost-build.gkbuild
index b2883ed..baf1811 100644
--- a/gkbuilds/boost-build.gkbuild
+++ b/gkbuilds/boost-build.gkbuild
@@ -1,6 +1,10 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+# distcc is known to fail compiling boost and will fallback
+# to local processing; Even when using distcc pump mode.
+DISABLE_DISTCC=yes
+
 MY_PV="${PV//./_}"
 S="${WORKDIR}/boost_${MY_PV}/tools/build/src"
 QA_IGNORE_DYNAMICALLY_LINKED_PROGRAM='(bjam|b2)$'

diff --git a/gkbuilds/boost.gkbuild b/gkbuilds/boost.gkbuild
index 8b1012b..a796e0f 100644
--- a/gkbuilds/boost.gkbuild
+++ b/gkbuilds/boost.gkbuild
@@ -1,6 +1,10 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
+# distcc is known to fail compiling boost and will fallback
+# to local processing; Even when using distcc pump mode.
+DISABLE_DISTCC=yes
+
 create_user-config.jam() {
        local user_config_jam="${S}"/user-config.jam
        if [[ -s ${user_config_jam} ]]; then

Reply via email to