File: strip-build-date-to-enable-reproducible-.patch

package info (click to toggle)
elvis-tiny 1.4-25
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,104 kB
  • sloc: ansic: 13,810; sh: 25; makefile: 13
file content (24 lines) | stat: -rw-r--r-- 633 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
From: Reiner Herrmann <reiner@reiner-h.de>
Date: Tue, 5 Jul 2016 21:25:37 +0200
X-Dgit-Generated: 1.4-24.1 a916d656222970d87859c16014646663d51286e1
Subject: Strip build date to enable reproducible building

(Closes: #829755)

If DATE is not defined, the C file doesn't embed it, so no change is
required there.

---

diff --git a/Makefile.mix b/Makefile.mix
index 38f2774..bd7a8d0 100644
--- a/Makefile.mix
+++ b/Makefile.mix
@@ -49,7 +49,6 @@ CFLAGS=	-O2 -DM_SYSV -DCRUNCH -DNO_MKEXRC -DNO_CURSORSHAPE -DNO_CHARATTR \
 	-fsigned-char $(EXTRA_CFLAGS)
 OF=	-o 
 RF=	-c
-DATE=	-DDATE=\'\"`date`\"\'
 EVAL=	eval 
 PROGS=	elvis
 CHMEM=