[Pkg-ocaml-maint-commits] [marionnet] 10/19: Add patch from ceridwen.debian.bugs at gmail.com to support building reproducibly. Closes: #818952

Lucas Nussbaum lucas at moszumanska.debian.org
Mon Oct 30 22:28:54 UTC 2017


This is an automated email from the git hooks/post-receive script.

lucas pushed a commit to branch master
in repository marionnet.

commit 15bf7b1af5ecfdc4939d04d59fb13be1b4b8d7f8
Author: Lucas Nussbaum <lucas at debian.org>
Date:   Sun Oct 22 00:09:29 2017 +0200

    Add patch from ceridwen.debian.bugs at gmail.com to support building reproducibly. Closes: #818952
---
 debian/patches/reproducible-build.patch | 23 +++++++++++++++++++++++
 debian/patches/series                   |  1 +
 2 files changed, 24 insertions(+)

diff --git a/debian/patches/reproducible-build.patch b/debian/patches/reproducible-build.patch
new file mode 100644
index 0000000..02115ec
--- /dev/null
+++ b/debian/patches/reproducible-build.patch
@@ -0,0 +1,23 @@
+Description: Dummy out build date and uname to make build reproducible.
+ Marionnet fails to build reproducibly because the Makefile adds
+ information about the build date and the version of the OS it's
+ running on; this information is used to print out a splash screen
+ during initialization.  This patch replaces the build date with the
+ source release date and the uname invocation with "Linux" to make the
+ build reproducible.
+Author: Cara Vinson <ceridwen.debian.bugs+debianbugs at gmail.com>
+Forwarded: no
+
+--- a/Makefile
++++ b/Makefile
+@@ -920,8 +920,8 @@ meta.ml: META CONFIGME
+ 	echo -e "let configurationprefix = \"$$configurationprefix\";;" >> $@ && \
+ 	echo -e "let localeprefix = \"$$localeprefix\";;" >> $@ && \
+ 	echo -e "let documentationprefix = \"$$documentationprefix\";;" >> $@ && \
+-	echo -e "let uname = \"$(shell uname -srvmo)\";;" >> $@ && \
+-	echo -e "let build_date = \"$(shell date '+%Y-%m-%d %k:%M:%S %z')\";;" >> $@ && \
++	echo -e "let uname = \"Linux\";;" >> $@ && \
++	grep "let build_date" <meta.ml.released >> $@ && \
+ 	if [ -d .bzr ]; then \
+ 	echo -e "let revision = \"$$(bzr revno)\";;" >> $@ && \
+ 	echo -e "let source_date = \"$$(bzr info --verbose | /bin/grep 'latest revision' | cut -d: -f2- | cut -d' ' -f3-)\";;" >> $@ && \
diff --git a/debian/patches/series b/debian/patches/series
index 9c83b18..0a1f022 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 0001-Customize-installation-paths-for-Debian-packaging.patch
 0002-Tweak-file-installation-paths-in-marionnet.conf.patch
 0003-Tweak-ocamldep-search-path.patch
+reproducible-build.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/marionnet.git



More information about the Pkg-ocaml-maint-commits mailing list