Source: ipsvd
Version: 1.0.0-3
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the “reproducible builds” effort [1], we have noticed
that ipsvd could not be built reproducibly.

The attached patch sets the mtimes of all files which are modified
during the built to the date of the last changelog entry in order to
produce files with reproducible metadata.

Cheers,
akira

[1]: https://wiki.debian.org/ReproducibleBuilds


diff -u ipsvd-1.0.0/debian/changelog ipsvd-1.0.0/debian/changelog
--- ipsvd-1.0.0/debian/changelog
+++ ipsvd-1.0.0/debian/changelog
@@ -1,3 +1,10 @@
+ipsvd (1.0.0-3.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix mtimes before building binary packages to produce reproducible output 
+
+ -- akira <marival...@gmail.com>  Sun, 19 Jul 2015 14:42:34 +0200
+
 ipsvd (1.0.0-3) unstable; urgency=low
 
   * debian/rules: no longer install the sslsvd, sslio programs and man
diff -u ipsvd-1.0.0/debian/rules ipsvd-1.0.0/debian/rules
--- ipsvd-1.0.0/debian/rules
+++ ipsvd-1.0.0/debian/rules
@@ -14,6 +14,8 @@
 
 DIR =$(shell pwd)/debian/ipsvd
 
+BUILD_DATE := $(shell dpkg-parsechangelog --show-field Date)
+
 patch: deb-checkdir patch-stamp
 patch-stamp:
        for i in `ls -1 debian/diff/*.diff || :`; do \
@@ -68,6 +70,8 @@
 binary-arch: install ipsvd.deb
        test '$(CC)' != 'gcc' || dpkg-shlibdeps '$(DIR)'/usr/bin/*
        dpkg-gencontrol -isp -pipsvd -P'$(DIR)'
+       find '$(DIR)' -newermt '$(BUILD_DATE)' -print0 | \
+               xargs -0r touch --no-dereference --date='$(BUILD_DATE)'
        dpkg -b '$(DIR)' ..
 
 binary: binary-indep binary-arch
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to