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 D02B2138334 for ; Wed, 7 Aug 2019 15:46:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F0405E08E8; Wed, 7 Aug 2019 15:46:15 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 B513AE08E8 for ; Wed, 7 Aug 2019 15:46:15 +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 CEC5A349491 for ; Wed, 7 Aug 2019 15:46:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 38EAA76C for ; Wed, 7 Aug 2019 15:46:11 +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: <1565192744.86dcf9aa5faa2ecd11c8303d6e551db858afe7c5.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: / X-VCS-Repository: proj/genkernel X-VCS-Files: gen_determineargs.sh genkernel X-VCS-Directories: / X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 86dcf9aa5faa2ecd11c8303d6e551db858afe7c5 X-VCS-Branch: master Date: Wed, 7 Aug 2019 15:46:11 +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: c6769d6d-2a41-4e6f-b76e-f6e4858da176 X-Archives-Hash: 3b2fe93521fad989d09052b29478e4c1 commit: 86dcf9aa5faa2ecd11c8303d6e551db858afe7c5 Author: Thomas Deutschmann gentoo org> AuthorDate: Wed Aug 7 15:39:40 2019 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Wed Aug 7 15:45:44 2019 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=86dcf9aa gen_determineargs.sh: determine_real_args(): Move GK_TIME_START initialization to genkernel We maybe trigger a failure before determine_real_args() was called and therefore need this value very early. Signed-off-by: Thomas Deutschmann gentoo.org> gen_determineargs.sh | 1 - genkernel | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gen_determineargs.sh b/gen_determineargs.sh index d2fbd86..d3669b8 100755 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -375,7 +375,6 @@ determine_real_args() { small_die "Cannot write to '${LOGFILE}'!" fi - GK_TIME_START=$(date +%s) echo ">>> Started genkernel v${GK_V} on: $(date +"%Y-%m-%d %H:%M:%S")" > "${LOGFILE}" 2>/dev/null || small_die "Could not write to '${LOGFILE}'!" dump_debugcache diff --git a/genkernel b/genkernel index 6db8133..ff79e44 100755 --- a/genkernel +++ b/genkernel @@ -4,6 +4,8 @@ PATH="${PATH}:/sbin:/usr/sbin" GK_V='4.0.0_beta11' +GK_TIME_START=$(date +%s) + TODEBUGCACHE=yes # Until an error occurs or LOGFILE is fully qualified. small_die() {