File: 05-reproducible-build.patch

package info (click to toggle)
irsim 9.7.104-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,716 kB
  • sloc: ansic: 24,751; sh: 7,499; makefile: 416; csh: 269; tcl: 88
file content (35 lines) | stat: -rw-r--r-- 1,052 bytes parent folder | download | duplicates (2)
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
33
34
35
From: Roland Stigge <stigge@antcom.de>
Date: Sun, 2 Sep 2018 23:36:29 +0200
Subject: Make it reproducible

---
 irsim/Makefile | 2 +-
 tcltk/Makefile | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/irsim/Makefile b/irsim/Makefile
index 5fed03b..973ddec 100644
--- a/irsim/Makefile
+++ b/irsim/Makefile
@@ -8,7 +8,7 @@ EXTRA_LIBS = ${IRSIMDIR}/analyzer/libanalyzer.o \
 	     ${IRSIMDIR}/base/libbase.o \
 	     ${MAIN_EXTRA_LIBS}
 
-DFLAGS += -DIRSIM_DATE="\"`date`\""
+DFLAGS += -DIRSIM_DATE="\"`dpkg-parsechangelog -l../debian/changelog --show-field Date`\""
 
 CFLAGS += -I${IRSIMDIR}/base
 LIBS += ${GR_LIBS} -lm
diff --git a/tcltk/Makefile b/tcltk/Makefile
index 1ff6caf..0c5c713 100644
--- a/tcltk/Makefile
+++ b/tcltk/Makefile
@@ -7,7 +7,7 @@ include ${IRSIMDIR}/defs.mak
 
 EXTRA_LIBS = ${MAIN_EXTRA_LIBS}
 
-DFLAGS += -DIRSIM_DATE="\"`date`\""
+DFLAGS += -DIRSIM_DATE="\"`dpkg-parsechangelog -l../debian/changelog --show-field Date`\""
 LIBS += ${GR_LIBS} -lm
 CLEANS += irsim.sh irsim.tcl irsimexec
 SRCS += ${GR_SRCS}