[Pkg-ocaml-maint-commits] [ocamlweb] 01/01: Make the build reproducible
Mehdi Dogguy
mehdi at moszumanska.debian.org
Fri Jul 17 05:32:35 UTC 2015
This is an automated email from the git hooks/post-receive script.
mehdi pushed a commit to branch master
in repository ocamlweb.
commit 70dabe5bbf7be40d4a0b1668ffa3cf8b2e647bba
Author: Mehdi Dogguy <mehdi at debian.org>
Date: Thu Jul 16 19:40:36 2015 +0000
Make the build reproducible
---
debian/changelog | 8 ++++++++
debian/patches/reproducible | 19 +++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 3 ++-
4 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 072f34d..2644a14 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+ocamlweb (1.39-2) unstable; urgency=medium
+
+ * Team upload.
+ * Make the build reproducible (Closes: #776643). Thanks to Chris Lamb
+ for the patch.
+
+ -- Mehdi Dogguy <mehdi at debian.org> Thu, 16 Jul 2015 19:40:36 +0000
+
ocamlweb (1.39-1) unstable; urgency=low
* New upstream release.
diff --git a/debian/patches/reproducible b/debian/patches/reproducible
new file mode 100644
index 0000000..c4fea36
--- /dev/null
+++ b/debian/patches/reproducible
@@ -0,0 +1,19 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -21,6 +21,7 @@
+ MAJORVN=1
+ MINORVN=39
+ VERSION=$(MAJORVN).$(MINORVN)
++BUILD_DATE="$(shell date)"
+
+ OCAMLBEST=@OCAMLBEST@
+
+@@ -75,7 +76,7 @@
+
+ version.ml: Makefile
+ echo "let version = \""$(VERSION)"\"" > version.ml
+- echo "let date = \""`date`"\"" >> version.ml
++ echo "let date = \""$(BUILD_DATE)"\"" >> version.ml
+
+ install-indep:
+ mkdir -p $(BINDIR)
diff --git a/debian/patches/series b/debian/patches/series
index bc14776..a3b3930 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
manpage-doc
+reproducible
diff --git a/debian/rules b/debian/rules
index 1c12f24..a371ba9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,7 @@
#!/usr/bin/make -f
DEB_DESTDIR=$(CURDIR)/debian/ocamlweb
+BUILD_DATE=$(shell dpkg-parsechangelog --show-field Date)
%:
dh $@ --with ocaml,tex
@@ -15,7 +16,7 @@ override_dh_auto_configure:
# we have decided to build this package as bytecode
override_dh_auto_build:
- $(MAKE) byte
+ $(MAKE) byte BUILD_DATE="$(BUILD_DATE)"
# UPDATETEX: executed after installation of tex files
override_dh_auto_install:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/ocamlweb.git
More information about the Pkg-ocaml-maint-commits
mailing list