[Pkg-ocaml-maint-commits] [calendar] 10/12: Add BUILD_DATE variable to Makefile (for reproducible builds)
Stéphane Glondu
glondu at moszumanska.debian.org
Wed May 20 17:36:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
glondu pushed a commit to branch master
in repository calendar.
commit 4323683d958db57a389371da67573510316abcf5
Author: Stephane Glondu <steph at glondu.net>
Date: Tue May 19 10:56:26 2015 +0200
Add BUILD_DATE variable to Makefile (for reproducible builds)
---
...ATE-variable-to-Makefile-for-reproducible.patch | 30 ++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 31 insertions(+)
diff --git a/debian/patches/0001-Add-BUILD_DATE-variable-to-Makefile-for-reproducible.patch b/debian/patches/0001-Add-BUILD_DATE-variable-to-Makefile-for-reproducible.patch
new file mode 100644
index 0000000..7279e26
--- /dev/null
+++ b/debian/patches/0001-Add-BUILD_DATE-variable-to-Makefile-for-reproducible.patch
@@ -0,0 +1,30 @@
+From: Stephane Glondu <steph at 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)\"" > $@
+--
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6a9870a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-Add-BUILD_DATE-variable-to-Makefile-for-reproducible.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/calendar.git
More information about the Pkg-ocaml-maint-commits
mailing list