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

tobi pushed a commit to branch master
in repository rbdoom3bfg.

commit d8645da4571b76b4e583927695a2763ffa20332a
Author: Tobias Frost <[email protected]>
Date:   Sat Jul 4 15:00:50 2015 +0200

    Work towards reprdoucible builds
---
 debian/changelog                     |  1 +
 debian/patches/20-reproducible.patch | 61 ++++++++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 3 files changed, 63 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index c50f3c3..edcfdef 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ rbdoom3bfg (1.0.3+repack1+git20150625-1) UNRELEASED; 
urgency=medium
   * Remove 75-local-no-precompiled-header.patch -- applied upstream
   * Refresh patch 80-disable-cpu-features.patch, applied mostly upstream
   * Remove 82-enable-hurd-kfreebsd.patch -- applied upstream
+  * Work towards reprdoucible builds
 
  -- Tobias Frost <[email protected]>  Sat, 04 Jul 2015 10:09:40 +0200
 
diff --git a/debian/patches/20-reproducible.patch 
b/debian/patches/20-reproducible.patch
new file mode 100644
index 0000000..2bfb7cb
--- /dev/null
+++ b/debian/patches/20-reproducible.patch
@@ -0,0 +1,61 @@
+Description: Make rbdoom3bfg reproducible
+ by removing the usages of __TIME__ and __DATE__
+Author: Tobias Frost <[email protected]>
+Forwarded: not yet
+Last-Update: 2015-07-04
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/neo/framework/Common.cpp
++++ b/neo/framework/Common.cpp
+@@ -59,7 +59,7 @@
+ {
+       version_s()
+       {
+-              sprintf( string, "%s.%d%s %s %s %s", ENGINE_VERSION, 
BUILD_NUMBER, BUILD_DEBUG, BUILD_STRING, __DATE__, __TIME__ );
++              sprintf( string, "%s.%d%s %s", ENGINE_VERSION, BUILD_NUMBER, 
BUILD_DEBUG, BUILD_STRING );
+       }
+       char    string[256];
+ } version;
+--- a/neo/d3xp/Game_local.cpp
++++ b/neo/d3xp/Game_local.cpp
+@@ -315,7 +315,7 @@
+       
+       Printf( "--------- Initializing Game ----------\n" );
+       Printf( "gamename: %s\n", GAME_VERSION );
+-      Printf( "gamedate: %s\n", __DATE__ );
++      // Printf( "gamedate: %s\n", __DATE__ );
+       
+       // register game specific decl types
+       declManager->RegisterDeclType( "model",                         
DECL_MODELDEF,          idDeclAllocator<idDeclModelDef> );
+--- a/neo/d3xp/gamesys/SysCvar.cpp
++++ b/neo/d3xp/gamesys/SysCvar.cpp
+@@ -43,14 +43,14 @@
+ */
+ 
+ struct gameVersion_s {
+-      gameVersion_s() { sprintf( string, "%s.%d%s %s %s %s", ENGINE_VERSION, 
BUILD_NUMBER, BUILD_DEBUG, BUILD_STRING, __DATE__, __TIME__ ); }
++      gameVersion_s() { sprintf( string, "%s.%d%s %s", ENGINE_VERSION, 
BUILD_NUMBER, BUILD_DEBUG, BUILD_STRING ); }
+       char    string[256];
+ } gameVersion;
+ 
+ 
+ // noset vars
+ idCVar gamename(                                      "gamename",             
                        GAME_VERSION,   CVAR_GAME | CVAR_ROM, "" );
+-idCVar gamedate(                                      "gamedate",             
                        __DATE__,               CVAR_GAME | CVAR_ROM, "" );
++//idCVar gamedate(                                    "gamedate",             
                        __DATE__,               CVAR_GAME | CVAR_ROM, "" );
+ 
+ idCVar si_map(                                                "si_map",       
                                "-1",                   CVAR_GAME | 
CVAR_SERVERINFO | CVAR_ARCHIVE | CVAR_INTEGER, "default map choice for profile" 
);
+ idCVar si_mode(                                               "si_mode",      
                                "-1",                   CVAR_GAME | 
CVAR_SERVERINFO | CVAR_ARCHIVE | CVAR_INTEGER, "default mode choice for 
profile", -1, GAME_COUNT - 1 );
+--- a/neo/idlib/Parser.cpp
++++ b/neo/idlib/Parser.cpp
+@@ -796,8 +796,8 @@
+ 
+ CONSOLE_COMMAND( TestPreprocessorMacros, "check analyze warning", 0 )
+ {
+-      idLib::Printf( "%s : %s\n", __DATE__, PreProcessorDate().c_str() );
+-      idLib::Printf( "%s : %s\n", __TIME__, PreProcessorTime().c_str() );
++      idLib::Printf( "%s\n", PreProcessorDate().c_str() );
++      idLib::Printf( "%s\n", PreProcessorTime().c_str() );
+ }
+ 
+ /*
diff --git a/debian/patches/series b/debian/patches/series
index 59f554d..476e97d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
 10-lowercase-executeable.patch
+20-reproducible.patch
 65-init-sdl2.patch
 80-disable-cpu-features.patch

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

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to