[Reproducible-builds] Bug#796376: mapivi: please make the build reproducible
Dhole
dhole at openmailbox.org
Fri Aug 21 15:29:32 UTC 2015
Source: mapivi
Version: 0.9.7-1.1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org
Hi,
While working on the "reproducible builds" effort [1], we have noticed
that mapivi could not be built reproducibly.
The attached patch sets the embedded date in the man pages generated by
podman to the latest debian/changelog entry timestamp instead of local
date. Once applied, mapivi can be built reproducibly in our current
experimental framework.
[1]: https://wiki.debian.org/ReproducibleBuilds
Regards,
--
Dhole
-------------- next part --------------
diff -u mapivi-0.9.7/debian/changelog mapivi-0.9.7/debian/changelog
--- mapivi-0.9.7/debian/changelog
+++ mapivi-0.9.7/debian/changelog
@@ -1,3 +1,12 @@
+mapivi (0.9.7-1.2) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Export POD_MAN_DATE with the latest debian/changelog entry timestamp
+ so that the man pages get a deterministic date to make the package build
+ reproducibly.
+
+ -- Eduard Sanou <dhole at openmailbox.org> Fri, 21 Aug 2015 17:06:06 +0200
+
mapivi (0.9.7-1.1) unstable; urgency=low
* Non-maintainer upload.
diff -u mapivi-0.9.7/debian/rules mapivi-0.9.7/debian/rules
--- mapivi-0.9.7/debian/rules
+++ mapivi-0.9.7/debian/rules
@@ -9,7 +9,8 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
-
+export SOURCE_DATE_EPOCH = $(shell date -d "$$(dpkg-parsechangelog --count 1 -SDate)" +%s)
+export POD_MAN_DATE = $(shell date -u +"%Y-%m-%d" --date="@$(SOURCE_DATE_EPOCH)")
CFLAGS = -Wall -g
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20150821/fa0bf0d7/attachment.sig>
More information about the Reproducible-builds
mailing list