Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: zmedico@g.o
Subject: Re: [gentoo-dev] [PATCH multilib-build] Tee the build logs to ABI-specific files.
Date: Thu, 21 Feb 2013 17:03:01
Message-Id: 20130221180304.234c0fe3@pomiocik.lan
In Reply to: Re: [gentoo-dev] [PATCH multilib-build] Tee the build logs to ABI-specific files. by Zac Medico
1 On Thu, 21 Feb 2013 08:55:45 -0800
2 Zac Medico <zmedico@g.o> wrote:
3
4 > On 02/21/2013 03:27 AM, Michał Górny wrote:
5 > > This makes reading them a bit easier, especially with phases run
6 > > in parallel.
7 > > ---
8 > > gx86/eclass/multilib-build.eclass | 7 ++++---
9 > > 1 file changed, 4 insertions(+), 3 deletions(-)
10 > >
11 > > diff --git a/gx86/eclass/multilib-build.eclass b/gx86/eclass/multilib-build.eclass
12 > > index feac748..93c4335 100644
13 > > --- a/gx86/eclass/multilib-build.eclass
14 > > +++ b/gx86/eclass/multilib-build.eclass
15 > > @@ -100,7 +100,8 @@ multilib_foreach_abi() {
16 > > local ABI
17 > > for ABI in $(multilib_get_enabled_abis); do
18 > > multilib_toolchain_setup "${ABI}"
19 > > - BUILD_DIR=${initial_dir%%/}-${ABI} "${@}"
20 > > + local BUILD_DIR=${initial_dir%%/}-${ABI}
21 > > + "${@}" | tee -a "${T}/build-${ABI}.log"
22 > > done
23 > > }
24 > >
25 > > @@ -127,8 +128,8 @@ multilib_parallel_foreach_abi() {
26 > > multijob_child_init
27 > >
28 > > multilib_toolchain_setup "${ABI}"
29 > > - BUILD_DIR=${initial_dir%%/}-${ABI}
30 > > - "${@}"
31 > > + local BUILD_DIR=${initial_dir%%/}-${ABI}
32 > > + "${@}" 2>&1 | tee -a "${T}/build-${ABI}.log"
33 > > ) &
34 > >
35 > > multijob_post_fork
36 > >
37 >
38 > Maybe use EBUILD_DEATH_HOOKS to display the locations of the logs?
39
40 Is this documented somewhere?
41
42 --
43 Best regards,
44 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies