[oolite] 02/06: patches/avoid_date_cpp_macro.diff: for reproducible builds.

Nicolas Boulenguez nicolas.boulenguez at free.fr
Thu Sep 3 17:36:34 UTC 2015


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

nicobou-guest pushed a commit to branch master
in repository oolite.

commit 56ca51a9b99c7ae8276eb6ca885bc9cd2c92bd8b
Author: Nicolas Boulenguez <nicolas.boulenguez at free.fr>
Date:   Wed Sep 2 23:04:14 2015 +0200

    patches/avoid_date_cpp_macro.diff: for reproducible builds.
---
 debian/changelog                         |  1 +
 debian/patches/avoid_date_cpp_macro.diff | 27 +++++++++++++++++++++++++++
 debian/patches/series                    |  1 +
 3 files changed, 29 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index bff2ff6..99ce730 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,7 @@ oolite (1.82-1) UNRELEASED; urgency=medium
   * Provide a writable XDG_CONFIG_HOME to libreoffice when converting .odt
     to PDF, lowering the severity of #730893.
   * allow -Werror=format-security, default with gcc-5. Closes: #778039.
+  * patches/avoid_date_cpp_macro.diff: for reproducible builds.
 
  -- Nicolas Boulenguez <nicolas at debian.org>  Mon, 24 Aug 2015 15:44:03 +0200
 
diff --git a/debian/patches/avoid_date_cpp_macro.diff b/debian/patches/avoid_date_cpp_macro.diff
new file mode 100644
index 0000000..ee6c0ca
--- /dev/null
+++ b/debian/patches/avoid_date_cpp_macro.diff
@@ -0,0 +1,27 @@
+Description: avoid __DATE__ C pre-processor macro for build reproducibility
+ The version string should be sufficient for the intended purpose as I
+ understand it.
+ .
+ See
+ https://wiki.debian.org/ReproducibleBuilds/About#Why_do_we_want_reproducible_builds.
+ and https://wiki.debian.org/ReproducibleBuilds/TimestampsProposal.
+Author: Nicolas Boulenguez <nicolas at debian.org>
+
+--- a/src/SDL/MyOpenGLView.m
++++ b/src/SDL/MyOpenGLView.m
+@@ -195,13 +195,9 @@
+ 
+ 	[OOSound setUp];
+ 
+-	// Generate the window caption, containing the version number and the date the executable was compiled.
+-	static char windowCaption[128];
++	// Generate the window caption, containing the version number.
+ 	NSString *versionString = [NSString stringWithFormat:@"Oolite v%@", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"]];
+-
+-	strcpy (windowCaption, [versionString UTF8String]);
+-	strcat (windowCaption, " - "__DATE__);
+-	SDL_WM_SetCaption (windowCaption, "Oolite");	// Set window title.
++	SDL_WM_SetCaption ([versionString UTF8String], "Oolite");	// Set window title.
+ 
+ #if OOLITE_WINDOWS
+ 	// needed for enabling system window manager events, which is needed for handling window movement messages
diff --git a/debian/patches/series b/debian/patches/series
index b9dd6ff..ce06cab 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -4,3 +4,4 @@ generate_planet_data.diff
 add_keywords_to_desktop_file.diff
 secure-format-log-string.diff
 # gnustep_app_builder.diff
+avoid_date_cpp_macro.diff

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/oolite.git



More information about the Pkg-games-commits mailing list