[xmoto] 01/03: Avoid __DATE__ and __TIME__ to build reproducibly.
Stephen Kitt
skitt at moszumanska.debian.org
Sat Oct 10 17:54:13 UTC 2015
This is an automated email from the git hooks/post-receive script.
skitt pushed a commit to branch master
in repository xmoto.
commit 4d655158df53da99118027e236456b4b1de850c4
Author: Stephen Kitt <steve at sk2.org>
Date: Sat Oct 10 19:49:48 2015 +0200
Avoid __DATE__ and __TIME__ to build reproducibly.
---
debian/changelog | 6 ++++++
debian/patches/reproducible.patch | 24 ++++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 31 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index d0669b1..4d70861 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+xmoto (0.5.11+dfsg-3) UNRELEASED; urgency=medium
+
+ * Avoid __DATE__ and __TIME__ to build reproducibly.
+
+ -- Stephen Kitt <skitt at debian.org> Sat, 10 Oct 2015 19:43:16 +0200
+
xmoto (0.5.11+dfsg-2) unstable; urgency=medium
* src/helpers/utf8.h uses the same guard macro as g++'s new
diff --git a/debian/patches/reproducible.patch b/debian/patches/reproducible.patch
new file mode 100644
index 0000000..606f4ec
--- /dev/null
+++ b/debian/patches/reproducible.patch
@@ -0,0 +1,24 @@
+Description: Avoid __DATE__ and __TIME__ to build reproducibly
+Author: Stephen Kitt <skitt at debian.org>
+
+--- a/src/GameInit.cpp
++++ b/src/GameInit.cpp
+@@ -248,7 +248,6 @@
+ Logger::setActiv(XMSession::instance()->noLog() == false); /* apply log activ mode */
+
+ LogInfo(std::string("X-Moto " + XMBuild::getVersionString(true)).c_str());
+- LogInfo("compiled at "__DATE__" "__TIME__);
+ if(SwapEndian::bigendien) {
+ LogInfo("Systeme is bigendien");
+ } else {
+--- a/src/states/StateOptions.cpp
++++ b/src/states/StateOptions.cpp
+@@ -1233,8 +1233,6 @@
+ int p=25;
+ makeWindowOptions_infos_line(v_window, "Version", "X-Moto " + XMBuild::getVersionString(true), p);
+ p+=20;
+- makeWindowOptions_infos_line(v_window, "Compilation date", __DATE__ " " __TIME__, p);
+- p+=20;
+ makeWindowOptions_infos_line(v_window, "User data directory", XMFS::getUserDir(FDT_DATA), p);
+ p+=20;
+ makeWindowOptions_infos_line(v_window, "User config directory", XMFS::getUserDir(FDT_CONFIG), p);
diff --git a/debian/patches/series b/debian/patches/series
index 1a9307a..55d8c53 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ spelling.patch
gcc-4.7-fixes.patch
sa_restorer-removal.patch
utf8.patch
+reproducible.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/xmoto.git
More information about the Pkg-games-commits
mailing list