File: reproducible_build

package info (click to toggle)
ifmail 2.14tx8.10-32
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,056 kB
  • sloc: ansic: 30,328; perl: 4,955; yacc: 839; makefile: 716; sh: 424; cpp: 235; lex: 206; awk: 24
file content (31 lines) | stat: -rw-r--r-- 1,138 bytes parent folder | download | duplicates (5)
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
Author: Chris Lamb <lamby@debian.org>
Last-Update: 2016-07-17

--- ifmail-2.14tx8.10.orig/ifcico/Makefile
+++ ifmail-2.14tx8.10/ifcico/Makefile
@@ -168,7 +168,11 @@ config:
 version.c:	${SRCS} ${HDRS} flaglex.l flagexp.y lastmtime ../CONFIG
 	echo 'char *version=${VERSION};' >version.c
 	echo 'char *copyright=${COPYRIGHT};' >>version.c
+ifdef SOURCE_DATE_EPOCH
+	echo "char *reldate=\"$(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)" +%c)\";" >>version.c
+else
 	echo "char *reldate=\"`./lastmtime ${SRCS} ${HDRS} flaglex.l flagexp.y`\";" >>version.c
+endif
 
 depend:	version.c
 	@mv -f Makefile Makefile.bak; \
--- ifmail-2.14tx8.10.orig/ifgate/Makefile
+++ ifmail-2.14tx8.10/ifgate/Makefile
@@ -126,7 +126,11 @@ config:
 version.c:	${SRCS} ${HDRS} lastmtime ../CONFIG
 	echo 'char *version=${VERSION};' >version.c
 	echo 'char *copyright=${COPYRIGHT};' >>version.c
+ifdef SOURCE_DATE_EPOCH
+	echo "char *reldate=\"$(shell LC_ALL=C date --utc --date="@$(SOURCE_DATE_EPOCH)" +%c)\";" >>version.c
+else
 	echo "char *reldate=\"`./lastmtime ${SRCS} ${HDRS}`\";" >>version.c
+endif
 
 depend:	version.c
 	@rm -f Makefile.bak; \