--- a/debian/patches/05-reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/05-reproducible-build.patch 2016-08-22 23:27:24.462377093 +0100 @@ -0,0 +1,29 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2016-08-22 + +--- h2database-1.4.192.orig/src/tools/org/h2/dev/fs/FileShell.java ++++ h2database-1.4.192/src/tools/org/h2/dev/fs/FileShell.java +@@ -14,6 +14,9 @@ import java.io.InputStreamReader; + import java.io.OutputStream; + import java.io.PrintStream; + import java.nio.channels.FileChannel; ++import java.nio.file.attribute.FileTime; ++import java.nio.file.Files; ++import java.nio.file.Paths; + import java.sql.SQLException; + import java.sql.Timestamp; + import java.util.ArrayList; +@@ -351,9 +354,12 @@ public class FileShell extends Tool { + if (FileUtils.isDirectory(fileName)) { + continue; + } ++ FileTime filetime = Files.getLastModifiedTime(Paths.get(f)); + f = f.substring(base.length()); + f = BackupCommand.correctFileName(f); + ZipEntry entry = new ZipEntry(f); ++ entry.setLastModifiedTime(filetime); ++ entry.setLastAccessTime(filetime); + zipOut.putNextEntry(entry); + InputStream in = null; + try { --- a/debian/patches/series 2016-08-22 22:30:11.893639254 +0100 --- b/debian/patches/series 2016-08-22 22:43:41.967232983 +0100 @@ -1,3 +1,4 @@ 01-use-jar-files-from-debian.patch 03-osgi-compatibility.patch 04-reproducible-javadoc.patch +05-reproducible-build.patch