Bug#911757: zsh-antigen: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Oct 24 13:38:36 BST 2018
Source: zsh-antigen
Version: 2.2.3-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
+--- 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})
More information about the Reproducible-bugs
mailing list