[Reproducible-builds] Bug#831331: wit: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Jul 14 16:19:29 UTC 2016


Source: wit
Version: 2.31a-2
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,

Whilst working on the "reproducible builds" effort [0], we noticed
that wit could not be built reproducibly.

Patch attached. It can probably be sent upstream.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/patches/0001-Reproducible-build.patch	1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/0001-Reproducible-build.patch	2016-07-14 17:17:36.921795790 +0200
@@ -0,0 +1,14 @@
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-07-14
+
+--- wit-2.31a.orig/setup.sh
++++ wit-2.31a/setup.sh
+@@ -16,7 +16,7 @@ revision_num="${revision//[!0-9]/}"
+ revision_next=$revision_num
+ [[ $revision = $revision_num ]] || let revision_next++
+ 
+-tim=($(date '+%s %Y-%m-%d %T'))
++tim=($(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" '+%s %Y-%m-%d %T'))
+ defines=
+ 
+ have_fuse=0
--- a/debian/patches/series	2016-07-14 17:13:25.515286931 +0200
--- b/debian/patches/series	2016-07-14 17:17:22.921655950 +0200
@@ -1,3 +1,4 @@
 use-libbz2-and-mhash.patch
 fix-usr-local.patch
 0003-Don-t-link-wfuse-against-libdl.patch
+0001-Reproducible-build.patch


More information about the Reproducible-builds mailing list