Source: hibernate Version: 2.0+15+g88d54a8-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, Whilst working on the "reproducible builds" effort [0], we noticed that hibernate could not be built reproducibly. Patch attached. It can probably be sent upstream. [0] https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible-build.patch 1970-01-01 02:00:00.000000000 +0200 --- b/debian/patches/reproducible-build.patch 2016-07-13 23:12:55.556184935 +0200 @@ -0,0 +1,10 @@ +--- hibernate-2.0+15+g88d54a8.orig/gen-manpages.sh ++++ hibernate-2.0+15+g88d54a8/gen-manpages.sh +@@ -1,6 +1,6 @@ + #!/bin/sh + +-THE_DATE="`date \"+%B %Y\"`" ++THE_DATE="$(LC_ALL=C date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" "+%B %Y")" + + # Define some dummy functions from the API. + --- a/debian/patches/series 2016-07-13 23:09:25.159121887 +0200 --- b/debian/patches/series 2016-07-13 23:12:51.992166329 +0200 @@ -8,3 +8,4 @@ fix-s2ram-options.patch fix-grub-config-name.patch fix-typos.patch +reproducible-build.patch