--- a/debian/patches/0002-Reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/0002-Reproducible-build.patch 2021-08-10 11:33:28.947652513 +0100 @@ -0,0 +1,15 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2021-08-10 + +--- pytsk-20200117.orig/class_parser.py ++++ pytsk-20200117/class_parser.py +@@ -914,7 +914,7 @@ uint64_t integer_object_copy_to_uint64(P + self.initialise_class(class_name, out, done) + + # Add the constants in here +- for constant, type in self.constants: ++ for constant, type in sorted(self.constants): + if type == "integer": + out.write( + " tmp = PyLong_FromUnsignedLongLong((uint64_t) {0:s});\n".format(constant)) --- a/debian/patches/series 2021-08-10 11:29:42.852085888 +0100 --- b/debian/patches/series 2021-08-10 11:33:28.139656520 +0100 @@ -1,2 +1,3 @@ 0001-Link-system-tsk-statically-talloc-dynamically-instea.patch change-lexer.patch +0002-Reproducible-build.patch