summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2012-12-07 17:59:12 +0000
committerMichał Górny <mgorny@gentoo.org>2012-12-07 17:59:12 +0000
commit53d1ce8995e3bab0012a8165d40dd4ac64aad3fc (patch)
tree2544ada0ba1ad971fba51e8cff83264b58cb34d4 /eclass
parentStable for x86, wrt bug #441154 (diff)
downloadgentoo-2-53d1ce8995e3bab0012a8165d40dd4ac64aad3fc.tar.gz
gentoo-2-53d1ce8995e3bab0012a8165d40dd4ac64aad3fc.tar.bz2
gentoo-2-53d1ce8995e3bab0012a8165d40dd4ac64aad3fc.zip
Write split build logs for easier debugging.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ChangeLog5
-rw-r--r--eclass/distutils-r1.eclass8
2 files changed, 10 insertions, 3 deletions
diff --git a/eclass/ChangeLog b/eclass/ChangeLog
index f40180f641eb..59a52e700d4c 100644
--- a/eclass/ChangeLog
+++ b/eclass/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for eclass directory
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.549 2012/12/07 17:57:46 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.550 2012/12/07 17:59:12 mgorny Exp $
+
+ 07 Dec 2012; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
+ Write split build logs for easier debugging.
07 Dec 2012; Michał Górny <mgorny@gentoo.org> distutils-r1.eclass:
Use multiprocessing post-fork wait mode to avoid early output when all jobs
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index cdce6939c122..bb58d59d8f58 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.27 2012/12/07 17:57:46 mgorny Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/distutils-r1.eclass,v 1.28 2012/12/07 17:59:12 mgorny Exp $
# @ECLASS: distutils-r1
# @MAINTAINER:
@@ -382,7 +382,11 @@ distutils-r1_run_phase() {
if [[ ${DISTUTILS_NO_PARALLEL_BUILD} ]]; then
"${@}"
else
- multijob_child_init --post "${@}"
+ (
+ multijob_child_init
+ "${@}" 2>&1 | tee -a "${T}/build-${EPYTHON}.log"
+ ) &
+ multijob_post_fork
fi
if [[ ${DISTUTILS_IN_SOURCE_BUILD} ]]; then