Source: mapivi
Version: 0.9.7-1.1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bui...@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
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 <dh...@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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to