Package: calendar / 2.04-1

0001-Add-BUILD_DATE-variable-to-Makefile-for-reproducible.patch Patch series | 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
From: Stephane Glondu <steph@glondu.net>
Date: Tue, 19 May 2015 10:56:26 +0200
Subject: Add BUILD_DATE variable to Makefile (for reproducible builds)

---
 Makefile.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 9eb3026..cc86483 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -46,6 +46,7 @@ HAS_NATDYNLINK=@HAS_NATDYNLINK@
 NAME	= calendar
 NAMELIB = calendarLib
 VERSION	= 2.04
+BUILD_DATE = `date`
 
 LIBDIR	= target
 
@@ -117,7 +118,7 @@ $(LIBDIR)/$(NAMELIB).cmxs: $(LIBDIR)/$(NAMELIB).cmxa
 
 src/version.ml: Makefile
 	echo "let version = \"$(VERSION)\"" > $@
-	echo "let date = \"`date`\"" >> $@
+	echo "let date = \"$(BUILD_DATE)\"" >> $@
 
 META: Makefile
 	echo "name = \"$(NAME)\"" > $@
--