/[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.4 Revision 1.5
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.4 2013/02/26 21:05:39 mgorny Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.5 2013/02/27 21:02:59 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 local BUILD_DIR=${initial_dir%%/}-${ABI} 103 BUILD_DIR=${initial_dir%%/}-${ABI} "${@}"
104 "${@}" | tee -a "${T}/build-${ABI}.log"
105 done 104 done
106} 105}
107 106
108# @FUNCTION: multilib_parallel_foreach_abi 107# @FUNCTION: multilib_parallel_foreach_abi
109# @USAGE: <argv>... 108# @USAGE: <argv>...
126 for ABI in $(multilib_get_enabled_abis); do 125 for ABI in $(multilib_get_enabled_abis); do
127 ( 126 (
128 multijob_child_init 127 multijob_child_init
129 128
130 multilib_toolchain_setup "${ABI}" 129 multilib_toolchain_setup "${ABI}"
131 local BUILD_DIR=${initial_dir%%/}-${ABI} 130 BUILD_DIR=${initial_dir%%/}-${ABI}
132 "${@}" 2>&1 | tee -a "${T}/build-${ABI}.log" 131 "${@}"
133 ) & 132 ) &
134 133
135 multijob_post_fork 134 multijob_post_fork
136 done 135 done
137 136

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20