File: 0001-Make-the-build-reproducible.patch

package info (click to toggle)
ibus-input-pad 1.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 344 kB
  • sloc: ansic: 1,493; makefile: 162; sh: 27; xml: 6
file content (32 lines) | stat: -rw-r--r-- 1,186 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Chris Lamb <lamby@debian.org>
Date: Tue, 2 Nov 2021 09:34:15 +0000
Subject: Make the build reproducible

Last-Update: 2021-04-07
Bug-Debian: https://bugs.debian.org/998312
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index acde72e..41b75bf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,7 +26,7 @@ m4_define([ibus_minor_version], [4])
 m4_define([ibus_micro_version], [0])
 m4_define([pad_abi_current], [1])
 m4_define(ibus_maybe_datestamp,
-    m4_esyscmd([if test x]ibus_released[ != x1; then date +.%Y%m%d | tr -d '\n\r'; fi]))
+    m4_esyscmd([if test x]ibus_released[ != x1; then date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" '+.%Y%m%d' | tr -d '\n\r'; fi]))
 
 m4_define([ibus_version],
     ibus_major_version.ibus_minor_version.ibus_micro_version[]ibus_maybe_datestamp)
@@ -56,7 +56,7 @@ IT_PROG_INTLTOOL([0.35.0])
 
 dnl - For dislpay Date
 m4_define(ibus_datedisplay,
-    m4_esyscmd(date '+%a %b %d %Y' | tr -d '\n\r'))
+    m4_esyscmd(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" '+%a %b %d %Y' | tr -d '\n\r'))
 DATE_DISPLAY="ibus_datedisplay"
 AC_SUBST(DATE_DISPLAY)