[Debian-ha-maintainers] Bug#896441: corosync: please make the build reproducible
Chris Lamb
lamby at debian.org
Sat Apr 21 07:07:49 BST 2018
Source: corosync
Version: 2.4.4-1
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 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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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 <lamby at 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
More information about the Debian-ha-maintainers
mailing list