summarylogtreecommitdiffstats
path: root/20-reproducible.patch
diff options
context:
space:
mode:
authorMike Swanson2017-08-26 14:49:08 -0700
committerMike Swanson2017-08-26 14:58:21 -0700
commitc3d7bf13209f076a455eae343e515570fbc723a3 (patch)
tree57d48405ea0d8bb07d6b360bf959850323d386cc /20-reproducible.patch
parent0412e49c1c8ff3f85e96b204038ab801f02cdf0b (diff)
downloadaur-c3d7bf13209f076a455eae343e515570fbc723a3.tar.gz
Update to a git snapshot
Builds with GCC 7.1.1 and some other libraries, via patches from Debian
Diffstat (limited to '20-reproducible.patch')
-rw-r--r--20-reproducible.patch70
1 files changed, 70 insertions, 0 deletions
diff --git a/20-reproducible.patch b/20-reproducible.patch
new file mode 100644
index 000000000000..f74b78d623ba
--- /dev/null
+++ b/20-reproducible.patch
@@ -0,0 +1,70 @@
+Description: Make rbdoom3bfg reproducible
+ by removing the usages of __TIME__ and __DATE__
+Author: Tobias Frost <tobi@debian.org>
+Forwarded: https://github.com/RobertBeckebans/RBDOOM-3-BFG/pull/250
+Last-Update: 2015-11-02
+---
+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
+@@ -317,7 +317,6 @@
+
+ Printf( "--------- Initializing Game ----------\n" );
+ Printf( "gamename: %s\n", GAME_VERSION );
+- 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,13 @@
+ */
+
+ 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 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() );
+ }
+
+ /*
+--- a/neo/framework/Console.cpp
++++ b/neo/framework/Console.cpp
+@@ -1189,7 +1189,7 @@
+
+ // RB begin
+ //idStr version = va( "%s.%i.%i", ENGINE_VERSION, BUILD_NUMBER, BUILD_NUMBER_MINOR );
+- idStr version = va( "%s %s %s %s", ENGINE_VERSION, BUILD_STRING, __DATE__, __TIME__ );
++ idStr version = va( "%s %s", ENGINE_VERSION, BUILD_STRING);
+ //idStr version = com_version.GetString();
+ // RB end
+