Source: eximdoc4
Version: 4.84-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 eximdoc4 could not be built reproducibly.

The attached patch removes timestamps from the build system. Once
applied, eximdoc4 can be built reproducibly in our reproducible
toolchain.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
diff -urNad 
eximdoc4.orig/eximdoc4-4.84/debian/patches/0030-reproducible-build.diff 
eximdoc4/eximdoc4-4.84/debian/patches/0030-reproducible-build.diff
--- eximdoc4.orig/eximdoc4-4.84/debian/patches/0030-reproducible-build.diff     
1970-01-01 01:00:00.000000000 +0100
+++ eximdoc4/eximdoc4-4.84/debian/patches/0030-reproducible-build.diff  
2015-04-27 09:56:49.833798816 +0100
@@ -0,0 +1,11 @@
+--- eximdoc4-4.84.orig/doc-docbook/GenLocalParams
++++ eximdoc4-4.84/doc-docbook/GenLocalParams
+@@ -3,7 +3,7 @@
+ output="${1:-local_params}"
+ : ${EXIM_VER:?Need the EXIM_VER environment variable}
+ 
+-nicedate="$(date +"%d %b %Y")"
++nicedate="$(date --utc +"%d %b %Y")"
+ 
+ exec > "$output"
+ cat <<EOTEMPLATE
diff -urNad eximdoc4.orig/eximdoc4-4.84/debian/patches/series 
eximdoc4/eximdoc4-4.84/debian/patches/series
--- eximdoc4.orig/eximdoc4-4.84/debian/patches/series   2015-04-27 
09:51:00.990589316 +0100
+++ eximdoc4/eximdoc4-4.84/debian/patches/series        2015-04-27 
09:56:44.485565712 +0100
@@ -2,3 +2,4 @@
 0002-info-direntry-description-and-infodir-category.patch
 0003-Set-info-filename.patch
 0020-clean-revision.diff
+0030-reproducible-build.diff

Reply via email to