adguardhome: use committime instead of buildtime

buildtime has been replaced with committime upstream for better
reproducible builds.

Link: https://github.com/AdguardTeam/AdGuardHome/commit/d17c6c6bb3ae5b7c775c53ebb04b9b089dcf0490#diff-82ef468ec5547f1ed424776755a7f87dfec4eba9838d2c2ac02c9881bb67d737L68-R70
Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
George Sapkin
2025-04-11 18:18:25 +03:00
committed by Tianling Shen
parent 6746398cb4
commit 3d5ea7f92b
+1 -2
View File
@@ -30,11 +30,10 @@ PKG_BUILD_FLAGS:=no-mips16
GO_PKG:=github.com/AdguardTeam/AdGuardHome
GO_PKG_BUILD_PKG:=github.com/AdguardTeam/AdGuardHome
AGH_BUILD_TIME:=$(shell date -d @$(SOURCE_DATE_EPOCH) +%FT%TZ%z)
AGH_VERSION_PKG:=github.com/AdguardTeam/AdGuardHome/internal/version
GO_PKG_LDFLAGS_X:=$(AGH_VERSION_PKG).channel=release \
$(AGH_VERSION_PKG).version=$(PKG_VERSION) \
$(AGH_VERSION_PKG).buildtime=$(AGH_BUILD_TIME) \
$(AGH_VERSION_PKG).committime=$(SOURCE_DATE_EPOCH) \
$(AGH_VERSION_PKG).goarm=$(GO_ARM) \
$(AGH_VERSION_PKG).gomips=$(GO_MIPS)