Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/genkernel:master commit in: /
Date: Mon, 29 Jul 2019 20:10:34
Message-Id: 1564430427.c7200d139371d5c0cf8b60143a0abb60d8013c00.whissi@gentoo
1 commit: c7200d139371d5c0cf8b60143a0abb60d8013c00
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jul 29 00:12:45 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Mon Jul 29 20:00:27 2019 +0000
6 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c7200d13
7
8 gen_funcs.sh: gkbuild(): Export any set CCACHE_* and DISTCC_* variable
9
10 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
11
12 gen_funcs.sh | 13 +++++++++++++
13 1 file changed, 13 insertions(+)
14
15 diff --git a/gen_funcs.sh b/gen_funcs.sh
16 index cb0763a..e700ae1 100755
17 --- a/gen_funcs.sh
18 +++ b/gen_funcs.sh
19 @@ -1233,6 +1233,19 @@ gkbuild() {
20 "STRIP='$(tc-getSTRIP)'"
21 )
22
23 + local envvar_prefix envvars_to_export envvar_to_export
24 + for envvar_prefix in CCACHE_ DISTCC_
25 + do
26 + envvars_to_export=$(compgen -A variable | grep "^${envvar_prefix}")
27 + for envvar_to_export in ${envvars_to_export}
28 + do
29 + [ -z "${envvar_to_export}" ] && break
30 +
31 + envvars+=( "${envvar_to_export}='${!envvar_to_export}'" )
32 + done
33 + done
34 + unset envvar_prefix envvars_to_export envvar_to_export
35 +
36 if [ ${NICE} -ne 0 ]
37 then
38 NICEOPTS="nice -n${NICE} "