debian/patches: Add 2002_reproducible-build.patch. Make builds reproducible. Thanks to Chris Lamb for providing the patch. (Closes: #951357).

This commit is contained in:
Mike Gabriel 2020-02-15 10:40:49 +01:00
parent 87401d346a
commit ba9552b1f6
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
Description: Make the build reproducible
Author: Chris Lamb <lamby@debian.org>
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,

View File

@ -1 +1,2 @@
2001_prefer-x-terminal-emulator.patch
2002_reproducible-build.patch