adguardhome: use committime instead of buildtime
authorGeorge Sapkin <[email protected]>
Fri, 11 Apr 2025 15:18:25 +0000 (18:18 +0300)
committerTianling Shen <[email protected]>
Thu, 24 Apr 2025 11:34:19 +0000 (19:34 +0800)
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 <[email protected]>
net/adguardhome/Makefile

index bd1c0b43c5bb8e2b29f77a95bf4548539a5c0698..a238e85a7ef90aa2e73193892b87fd9f8e7eba79 100644 (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)