From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EBB4A138334 for ; Mon, 29 Jul 2019 20:10:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B1B28E086C; Mon, 29 Jul 2019 20:10:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 97158E086C for ; Mon, 29 Jul 2019 20:10:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9A12E348F59 for ; Mon, 29 Jul 2019 20:10:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 10CDE759 for ; Mon, 29 Jul 2019 20:10:25 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1564430427.c7200d139371d5c0cf8b60143a0abb60d8013c00.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_funcs.sh X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: c7200d139371d5c0cf8b60143a0abb60d8013c00 X-VCS-Branch: master Date: Mon, 29 Jul 2019 20:10:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e3aa0f53-9e9e-4dab-ba00-9f12c1a4865c X-Archives-Hash: aa70d33d99e90f9356546afac0025d88 commit: c7200d139371d5c0cf8b60143a0abb60d8013c00 Author: Thomas Deutschmann gentoo org> AuthorDate: Mon Jul 29 00:12:45 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Mon Jul 29 20:00:27 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=c7200d13 gen_funcs.sh: gkbuild(): Export any set CCACHE_* and DISTCC_* variable Signed-off-by: Thomas Deutschmann gentoo.org> gen_funcs.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/gen_funcs.sh b/gen_funcs.sh index cb0763a..e700ae1 100755 --- a/gen_funcs.sh +++ b/gen_funcs.sh @@ -1233,6 +1233,19 @@ gkbuild() { "STRIP='$(tc-getSTRIP)'" ) + local envvar_prefix envvars_to_export envvar_to_export + for envvar_prefix in CCACHE_ DISTCC_ + do + envvars_to_export=$(compgen -A variable | grep "^${envvar_prefix}") + for envvar_to_export in ${envvars_to_export} + do + [ -z "${envvar_to_export}" ] && break + + envvars+=( "${envvar_to_export}='${!envvar_to_export}'" ) + done + done + unset envvar_prefix envvars_to_export envvar_to_export + if [ ${NICE} -ne 0 ] then NICEOPTS="nice -n${NICE} "