/[gentoo-x86]/eclass/multilib-build.eclass
Gentoo

Diff of /eclass/multilib-build.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.3
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.2 2013/02/10 11:44:00 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.3 2013/02/26 14:42:24 mgorny Exp $
4 4
5# @ECLASS: multilib-build.eclass 5# @ECLASS: multilib-build.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Michał Górny <mgorny@gentoo.org> 7# Michał Górny <mgorny@gentoo.org>
8# @BLURB: flags and utility functions for building multilib packages 8# @BLURB: flags and utility functions for building multilib packages
98 local initial_dir=${BUILD_DIR:-${S}} 98 local initial_dir=${BUILD_DIR:-${S}}
99 99
100 local ABI 100 local ABI
101 for ABI in $(multilib_get_enabled_abis); do 101 for ABI in $(multilib_get_enabled_abis); do
102 multilib_toolchain_setup "${ABI}" 102 multilib_toolchain_setup "${ABI}"
103 BUILD_DIR=${initial_dir%%/}-${ABI} "${@}" 103 local BUILD_DIR=${initial_dir%%/}-${ABI}
104 "${@}" | tee -a "${T}/build-${ABI}.log"
104 done 105 done
105} 106}
106 107
107# @FUNCTION: multilib_parallel_foreach_abi 108# @FUNCTION: multilib_parallel_foreach_abi
108# @USAGE: <argv>... 109# @USAGE: <argv>...
125 for ABI in $(multilib_get_enabled_abis); do 126 for ABI in $(multilib_get_enabled_abis); do
126 ( 127 (
127 multijob_child_init 128 multijob_child_init
128 129
129 multilib_toolchain_setup "${ABI}" 130 multilib_toolchain_setup "${ABI}"
130 BUILD_DIR=${initial_dir%%/}-${ABI} 131 local BUILD_DIR=${initial_dir%%/}-${ABI}
131 "${@}" 132 "${@}" 2>&1 | tee -a "${T}/build-${ABI}.log"
132 ) & 133 ) &
133 134
134 multijob_post_fork 135 multijob_post_fork
135 done 136 done
136 137

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20