Source: uswsusp Version: 1.0+20120915-6.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 uswsusp 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/13_reproducible_build.patch 1970-01-01 02:00:00.000000000 +0200 --- b/debian/patches/13_reproducible_build.patch 2016-07-14 17:15:18.212410954 +0200 @@ -0,0 +1,14 @@ +Author: Chris Lamb <la...@debian.org> +Last-Update: 2016-07-14 + +--- uswsusp-1.0+20120915.orig/wlcsv2c.pl ++++ uswsusp-1.0+20120915/wlcsv2c.pl +@@ -52,7 +52,7 @@ close(OUF); + + sub print_c_header + { +- ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time); ++ ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=gmtime($ENV{SOURCE_DATE_EPOCH} || time); + + printf OUF "/* whitelist.c\n"; + printf OUF " * whitelist of machines that are known to work somehow\n"; --- a/debian/patches/series 2016-07-14 17:12:46.370896752 +0200 --- b/debian/patches/series 2016-07-14 17:15:05.948288585 +0200 @@ -11,3 +11,4 @@ 10_checksum_buffer_size.patch 11_disable_gcrypt.patch 12_gcc5-ftbfs_c99.diff +13_reproducible_build.patch