Source: zsh-antigen
Version: 2.2.3-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that zsh-antigen could not be built reproducibly.
This is because it uses a timezone-varying date in ANTIGEN_REVISION_DATE.
Patch-to-a-patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
+--- zsh-antigen-2.2.3.orig/Makefile.in
++++ zsh-antigen-2.2.3/Makefile.in
@@ -91,8 +91,8 @@ build:
@echo "-antigen-env-setup" >> ${TARGET}
@echo "${VERSION}" > ${VERSION_FILE}
@@ -17,7 +15,7 @@
- @$(call ised,"s/{{ANTIGEN_REVISION}}/$$(git log -n1 --format=%h --
src)/",${TARGET})
- @$(call ised,"s/{{ANTIGEN_REVISION_DATE}}/$$(git log -n1 --format='%ai'
-- src)/",${TARGET})
+ @$(call ised,"s/{{ANTIGEN_REVISION}}/Debian/",${TARGET})
-+ @$(call ised,"s/{{ANTIGEN_REVISION_DATE}}/$$(date --date
@$$(dpkg-parsechangelog -STimestamp) --rfc-3339=seconds)/",${TARGET})
++ @$(call ised,"s/{{ANTIGEN_REVISION_DATE}}/$$(date --date --utc
@$$(dpkg-parsechangelog -STimestamp) --rfc-3339=seconds)/",${TARGET})
ifeq (${WITH_DEBUG}, no)
@$(call isede,"s/ (WARN|LOG|ERR|TRACE) .*&//",${TARGET})
@$(call isede,"/ (WARN|LOG|ERR|TRACE) .*/d",${TARGET})