File: 04-reproducible_build.patch

package info (click to toggle)
codeblocks 16.01%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 85,352 kB
  • sloc: cpp: 665,947; ansic: 48,306; sh: 32,198; xml: 29,690; makefile: 6,054; asm: 3,827; python: 3,251; f90: 1,202; pascal: 839; yacc: 291; perl: 261; sed: 16
file content (57 lines) | stat: -rw-r--r-- 2,664 bytes parent folder | download | duplicates (3)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Description: Make the build reproducible (enforce reproducible timestamps)
Author: Fabian Wolff <fabi.wolff@arcor.de>
Forwarded: https://sourceforge.net/p/codeblocks/tickets/356/
Last-Update: 2016-05-20

--- a/src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp
+++ b/src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp
@@ -2854,7 +2854,7 @@
             #else
                 wxT("Scintilla 1.70"),
             #endif
-                wxString::FromAscii(__DATE__).wx_str(), // no need to show time
+                wxString::FromAscii(BUILD_DATE).wx_str(), // no need to show time
                 buildStr.wx_str()
                 );
 
--- a/src/sdk/cbexception.cpp
+++ b/src/sdk/cbexception.cpp
@@ -44,7 +44,7 @@
                  "build: %s %s)"),
                File.c_str(), Line, Message.c_str(),
                ConfigManager::GetRevisionNumber(), gccvers.c_str(),
-               wxT(__DATE__), wxT(__TIME__));
+               wxT(BUILD_DATE), wxT(BUILD_TIME));
     if (safe)
         wxSafeShowMessage(title, err);
     else
--- a/src/sdk/configmanager.cpp
+++ b/src/sdk/configmanager.cpp
@@ -250,12 +250,12 @@
 #ifndef __GNUC__
     info.Printf(_T( " application info:\n"
                     "\t svn_revision:\t%u\n"
-                    "\t build_date:\t%s, %s "), ConfigManager::GetRevisionNumber(), wxT(__DATE__), wxT(__TIME__));
+                    "\t build_date:\t%s, %s "), ConfigManager::GetRevisionNumber(), wxT(BUILD_DATE), wxT(BUILD_TIME));
 #else
     info.Printf(_T( " application info:\n"
                     "\t svn_revision:\t%u\n"
                     "\t build_date:\t%s, %s\n"
-                    "\t gcc_version:\t%d.%d.%d "), ConfigManager::GetRevisionNumber(), wxT(__DATE__), wxT(__TIME__),
+                    "\t gcc_version:\t%d.%d.%d "), ConfigManager::GetRevisionNumber(), wxT(BUILD_DATE), wxT(BUILD_TIME),
                 __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__);
 #endif
 
--- a/src/src/appglobals.cpp
+++ b/src/src/appglobals.cpp
@@ -63,8 +63,8 @@
     const wxString bit_type              = wxT(" - 32 bit");
 #endif
 
-    const wxString AppBuildTimestamp     = (  wxString(wxT(__DATE__)) + wxT(", ")
-                                            + wxT(__TIME__) + wxT(" - wx")
+    const wxString AppBuildTimestamp     = (  wxString(wxT(BUILD_DATE)) + wxT(", ")
+                                            + wxT(BUILD_TIME) + wxT(" - wx")
                                             + wxString(wxT(wxVERSION_NUM_DOT_STRING))
                                             + wxT(" (") + AppPlatform + wxT(", ")
                                             + AppWXAnsiUnicode + wxT(")") + bit_type );