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

The attached patch removes timestamps from the build system. Once
applied, bup 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 --no-dereference -urNad bup.orig/bup-0.27/debian/gen_version_py.sh 
bup/bup-0.27/debian/gen_version_py.sh
--- bup.orig/bup-0.27/debian/gen_version_py.sh  2015-07-17 12:40:22.278600508 
+0100
+++ bup/bup-0.27/debian/gen_version_py.sh       2015-07-17 12:44:05.764799639 
+0100
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 VERSION="$(dpkg-parsechangelog | grep-dctrl -ensVersion -FSource .)"
-DATE="$(date '+%Y-%m-%d %H:%M:%S %z')"
+DATE="$(date --utc --date="`dpkg-parsechangelog -SDate`" '+%Y-%m-%d %H:%M:%S 
%z')"
 
 echo
 echo "COMMIT=''"

Reply via email to