Source: corosync Version: 2.4.4-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that corosync could not be built reproducibly. This is because, whilst it uses SOURCE_DATE_EPOCH, the output varies depending on the timezone. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2018-04-21 08:01:32.243876562 +0200 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb <la...@debian.org> +Last-Update: 2018-04-21 + +--- corosync-2.4.4.orig/man/Makefile.am ++++ corosync-2.4.4/man/Makefile.am +@@ -166,7 +166,7 @@ HTML_DOCS = $(dist_man_MANS:%=%.html) + %.3: %.3.in $(autogen_common) + @echo Generating $@ man page && \ + rm -f $@-t-t $@-t $@ && \ +- date="$$(LC_ALL=C date "+%F" $${SOURCE_DATE_EPOCH+-d @$$SOURCE_DATE_EPOCH})" && \ ++ date="$$(LC_ALL=C date -u "+%F" $${SOURCE_DATE_EPOCH+-d @$$SOURCE_DATE_EPOCH})" && \ + awk "{print}(\$$1 ~ /@COMMONIPCERRORS@/){exit 0}" ${top_srcdir}/man/$@.in > $@-t-t && \ + cat ${top_srcdir}/man/$(autogen_common) >> $@-t-t && \ + awk -v p=0 "(\$$1 ~ /@COMMONIPCERRORS@/){p = 1} {if(p==1)print}" ${top_srcdir}/man/$@.in >> $@-t-t && \ --- a/debian/patches/series 2018-04-21 07:52:25.589212835 +0200 --- b/debian/patches/series 2018-04-21 08:01:31.479872821 +0200 @@ -15,3 +15,4 @@ Fix-typo-sucesfully-successfully.patch qnetd-stay-with-the-DBM-NSS-DB-format.patch Fix-typo-defualt-default.patch +reproducible-build.patch