--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible-build.patch 2020-02-15 09:13:42.840879272 +0000 @@ -0,0 +1,16 @@ +Description: Make the build reproducible +Author: Chris Lamb +Last-Update: 2020-02-15 + +--- mate-desktop-1.24.0.orig/configure.ac ++++ mate-desktop-1.24.0/configure.ac +@@ -62,6 +62,9 @@ AC_DEFINE(MATE_MINOR, [mate_minor], [Def + AC_DEFINE(MATE_MICRO, [mate_micro], [Define to the micro version]) + + RELEASE_YEAR=`date +%Y` ++if test "x$SOURCE_DATE_EPOCH" != "x"; then ++ RELEASE_YEAR=`date -u -d "@$SOURCE_DATE_EPOCH" +%Y 2>/dev/null || date -u -r $SOURCE_DATE_EPOCH +%Y || date -u +%Y` ++fi + AC_SUBST([RELEASE_YEAR]) + + AC_ARG_ENABLE(deprecation_flags, --- a/debian/patches/series 2020-02-15 09:06:22.606417590 +0000 --- b/debian/patches/series 2020-02-15 09:13:40.864798339 +0000 @@ -1 +1,2 @@ 2001_prefer-x-terminal-emulator.patch +reproducible-build.patch