diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-02-27 21:02:59 +0000 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-02-27 21:02:59 +0000 |
commit | b4ac256d85f7fd85f07793bec878385fcd1dff50 (patch) | |
tree | d92b9dfaac485d046feba0fadc6f27035e9c0469 /eclass/python-r1.eclass | |
parent | Added 1.2.12 and stablized 1.2.2 (diff) | |
download | historical-b4ac256d85f7fd85f07793bec878385fcd1dff50.tar.gz historical-b4ac256d85f7fd85f07793bec878385fcd1dff50.tar.bz2 historical-b4ac256d85f7fd85f07793bec878385fcd1dff50.zip |
Revert the log teeing changes as they cause unexpected kind of breakage.
Diffstat (limited to 'eclass/python-r1.eclass')
-rw-r--r-- | eclass/python-r1.eclass | 70 |
1 files changed, 3 insertions, 67 deletions
diff --git a/eclass/python-r1.eclass b/eclass/python-r1.eclass index 310859ee36e0..2849270a44e4 100644 --- a/eclass/python-r1.eclass +++ b/eclass/python-r1.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.43 2013/02/26 14:35:13 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/python-r1.eclass,v 1.44 2013/02/27 21:02:59 mgorny Exp $ # @ECLASS: python-r1 # @MAINTAINER: @@ -173,14 +173,6 @@ _python_set_globals() { } _python_set_globals -# @ECLASS-VARIABLE: DISTUTILS_JOBS -# @DEFAULT_UNSET -# @DESCRIPTION: -# The number of parallel jobs to run for distutils-r1 parallel builds. -# If unset, the job-count in ${MAKEOPTS} will be used. -# -# This variable is intended to be set in make.conf. - # @FUNCTION: _python_validate_useflags # @INTERNAL # @DESCRIPTION: @@ -620,17 +612,8 @@ python_foreach_impl() { local BUILD_DIR=${bdir%%/}-${impl} export EPYTHON PYTHON - einfo "${EPYTHON}: running ${@}" \ - | tee -a "${T}/build-${EPYTHON}.log" - - # _python_parallel() does redirection internally. - # note: this is a hidden API to avoid writing python_foreach_impl - # twice. do *not* even think of using it anywhere else. - if [[ ${1} == _python_parallel ]]; then - "${@}" - else - "${@}" 2>&1 | tee -a "${T}/build-${EPYTHON}.log" - fi + einfo "${EPYTHON}: running ${@}" + "${@}" lret=${?} [[ ${ret} -eq 0 && ${lret} -ne 0 ]] && ret=${lret} @@ -640,53 +623,6 @@ python_foreach_impl() { return ${ret} } -# @FUNCTION: python_parallel_foreach_impl -# @USAGE: <command> [<args>...] -# @DESCRIPTION: -# Run the given command for each of the enabled Python implementations. -# If additional parameters are passed, they will be passed through -# to the command. -# -# The function will return 0 status if all invocations succeed. -# Otherwise, the return code from first failing invocation will -# be returned. -# -# For each command being run, EPYTHON, PYTHON and BUILD_DIR are set -# locally, and the former two are exported to the command environment. -# -# Multiple invocations of the command will be run in parallel, up to -# DISTUTILS_JOBS (defaulting to '-j' option argument from MAKEOPTS). -python_parallel_foreach_impl() { - debug-print-function ${FUNCNAME} "${@}" - - local ret lret - - _python_parallel() { - ( - multijob_child_init - "${@}" 2>&1 | tee -a "${T}/build-${EPYTHON}.log" - exit ${PIPESTATUS[0]} - ) & - multijob_post_fork - } - - local opts - if [[ ${DISTUTILS_JOBS} ]]; then - opts=-j${DISTUTILS_JOBS} - else - opts=${MAKEOPTS} - fi - - multijob_init "${opts}" - python_foreach_impl _python_parallel "${@}" - ret=${?} - multijob_finish - lret=${?} - - [[ ${ret} -eq 0 ]] && ret=${lret} - return ${ret} -} - # @FUNCTION: python_export_best # @USAGE: [<variable>...] # @DESCRIPTION: |