--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2019-09-06 08:46:15.792081807 +0100 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2019-09-06 + +--- libnbd-1.0.0.orig/podwrapper.pl.in ++++ libnbd-1.0.0/podwrapper.pl.in +@@ -227,7 +227,7 @@ if (!$date && -d $filename) { + $date = $1 if /^(\d+-\d+-\d+)\s/; + } + if (!$date) { +- my ($day, $month, $year) = (localtime)[3,4,5]; ++ my ($day, $month, $year) = (gmtime($ENV{SOURCE_DATE_EPOCH} || time))[3,4,5]; + $date = sprintf ("%04d-%02d-%02d", $year+1900, $month+1, $day); + } + --- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/series 2019-09-06 08:46:14.824072014 +0100 @@ -0,0 +1 @@ +reproducible-build.patch