aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2019-09-30 01:18:34 +0200
committerThomas Deutschmann <whissi@gentoo.org>2019-09-30 01:23:50 +0200
commit074b43e3ede4b1c161a64937f32c815fcee4d8c8 (patch)
tree7ced878df7f9d5c7e9e14e81c227ae19850311c2 /gkbuilds
parentgkbuild.sh: Add possibility to disable distcc usage per gkbuild (diff)
downloadgenkernel-074b43e3ede4b1c161a64937f32c815fcee4d8c8.tar.gz
genkernel-074b43e3ede4b1c161a64937f32c815fcee4d8c8.tar.bz2
genkernel-074b43e3ede4b1c161a64937f32c815fcee4d8c8.zip
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@gentoo.org>
Diffstat (limited to 'gkbuilds')
-rw-r--r--gkbuilds/boost-build.gkbuild4
-rw-r--r--gkbuilds/boost.gkbuild4
2 files changed, 8 insertions, 0 deletions
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