Source: tea-cli
Version: 0.11.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timezone
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
tea-cli could not be built reproducibly.
This is because the generation of BUILD_DATE in debian/rules (which ends
up in a manpage) took into account the surrounding timezone which, of
course, can vary.
Patch attached that ensures that BUILD_DATE is always generated in the
"UTC" timezone.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2026-01-15 09:52:02.983632687 -0800
--- b/debian/rules 2026-01-15 11:13:22.953486104 -0800
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
include /usr/share/dpkg/pkg-info.mk
-BUILD_DATE := $(shell date +%F -d @$(SOURCE_DATE_EPOCH))
+BUILD_DATE := $(shell date -u +%F -d @$(SOURCE_DATE_EPOCH))
%:
dh $@ --builddirectory=debian/build --buildsystem=golang --with=golang