Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 May 2023 23:48:36 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 6054513a40b1 - main - games/veloren-weekly: make GIT_DATE consistent in different timezones
Message-ID:  <202305062348.346NmaLW010823@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6054513a40b13b8baaeed468d77f83688a99a432

commit 6054513a40b13b8baaeed468d77f83688a99a432
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-05-06 23:31:49 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-05-06 23:48:08 +0000

    games/veloren-weekly: make GIT_DATE consistent in different timezones
    
    GIT_DATE is advertised by remote servers, mainly for diagnostics.
    https://gitlab.com/veloren/veloren/-/commit/5b716515bb39
---
 games/veloren-weekly/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile
index b02897e7f390..083ac688453e 100644
--- a/games/veloren-weekly/Makefile
+++ b/games/veloren-weekly/Makefile
@@ -53,7 +53,7 @@ post-patch:
 		${WRKSRC}/common/build.rs
 # Extract (snapshot) version from the port instead of empty file
 	@${REINPLACE_CMD} -e '/GIT_HASH/s/=.*/= "${GL_COMMIT:C/(.{8}).*/\1/}";/' \
-		-e "/GIT_DATE.*static/s/=.*/= \"$$(date -r $$(${AWK} '/TIMESTAMP/ { print $$3 }' \
+		-e "/GIT_DATE.*static/s/=.*/= \"$$(TZ=UTC date -r $$(${AWK} '/TIMESTAMP/ { print $$3 }' \
 			${DISTINFO_FILE}) +'%Y-%m-%d-%H:%M')\";/" \
 		${WRKSRC}/common/src/util/mod.rs
 # Respect PREFIX != /usr/local for system assets



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305062348.346NmaLW010823>