git: 0135101e23f9 - main - meta.autodep.mk do not override start_utc

From: Simon J. Gerraty <sjg_at_FreeBSD.org>
Date: Wed, 24 Apr 2024 19:27:05 UTC
The branch main has been updated by sjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=0135101e23f98205157928dc819ef3bc993a4276

commit 0135101e23f98205157928dc819ef3bc993a4276
Author:     Simon J. Gerraty <sjg@FreeBSD.org>
AuthorDate: 2024-04-24 19:25:42 +0000
Commit:     Simon J. Gerraty <sjg@FreeBSD.org>
CommitDate: 2024-04-24 19:25:42 +0000

    meta.autodep.mk do not override start_utc
    
    Update meta.autodep.mk
    If included at level 0 it is important not to override start_utc
---
 share/mk/meta.autodep.mk | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/share/mk/meta.autodep.mk b/share/mk/meta.autodep.mk
index 9824570ecc43..55f2d66e56aa 100644
--- a/share/mk/meta.autodep.mk
+++ b/share/mk/meta.autodep.mk
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: BSD-2-Clause
 #
-# $Id: meta.autodep.mk,v 1.62 2024/02/17 17:26:57 sjg Exp $
+# $Id: meta.autodep.mk,v 1.63 2024/04/24 18:56:41 sjg Exp $
 
 #
 #	@(#) Copyright (c) 2010, Simon J. Gerraty
@@ -308,7 +308,9 @@ CLEANFILES += *.meta filemon.* *.db
 
 # these make it easy to gather some stats
 now_utc ?= ${%s:L:localtime}
+.if !defined(start_utc)
 start_utc := ${now_utc}
+.endif
 
 meta_stats= meta=${empty(.MAKE.META.FILES):?0:${.MAKE.META.FILES:[#]}} \
 	created=${empty(.MAKE.META.CREATED):?0:${.MAKE.META.CREATED:[#]}}