File: reproducible.patch

package info (click to toggle)
supertux 0.6.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 264,124 kB
  • sloc: cpp: 113,426; ansic: 9,654; sh: 4,483; cs: 1,296; makefile: 407; yacc: 398; python: 382; lisp: 285; objc: 248; csh: 219; lex: 140; perl: 118; xml: 53; ruby: 36
file content (27 lines) | stat: -rw-r--r-- 1,119 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Author: Reiner Herrmann <reiner@reiner-h.de>
Description: remove code that embeds the build path
 Embedding the build path (BUILD_DATA_DIR, BUILD_CONFIG_DATA_DIR) into the
 binary makes the build unreproducible.
 The small check was only needed for running supertux from within the source
 directory. As this does not make sense for the distributed packages, this can
 be safely removed.
 If you are working on the code and need to run supertux from the source
 directory, either set SUPERTUX2_DATA_DIR or unapply this patch.
Forwarded: not-needed

--- a/src/supertux/main.cpp
+++ b/src/supertux/main.cpp
@@ -204,13 +204,6 @@
     std::string basepath = basepath_c ? basepath_c : "./";
     SDL_free(basepath_c);
 
-    if (FileSystem::exists(FileSystem::join(BUILD_DATA_DIR, "credits.stxt")))
-    {
-      datadir = BUILD_DATA_DIR;
-      // Add config dir for supplemental files
-      PHYSFS_mount(boost::filesystem::canonical(BUILD_CONFIG_DATA_DIR).string().c_str(), nullptr, 1);
-    }
-    else
     {
       // if the game is not run from the source directory, try to find
       // the global install location