File: 04-reproducible_build.patch

package info (click to toggle)
codeblocks 25.03%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 93,984 kB
  • sloc: cpp: 695,462; xml: 32,163; ansic: 28,821; sh: 12,117; makefile: 9,126; asm: 3,827; python: 2,289; f90: 1,619; perl: 261; sed: 16; java: 4
file content (67 lines) | stat: -rw-r--r-- 3,251 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
From: Fabian Wolff <fabi.wolff@arcor.de>
Date: Mon, 28 Oct 2019 15:00:00 -1000
Subject: Make the build reproducible (enforce reproducible timestamps)

Forwarded: https://sourceforge.net/p/codeblocks/tickets/356/
Last-Update: 2016-05-20
---
 src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp | 2 +-
 src/sdk/cbexception.cpp                               | 2 +-
 src/sdk/configmanager.cpp                             | 2 +-
 src/src/appglobals.cpp                                | 4 ++--
 4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp b/src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp
index 4a9d1d5..90c5204 100644
--- a/src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp
+++ b/src/plugins/contrib/wxSmithSTC/stedit/src/stedlgs.cpp
@@ -2854,7 +2854,7 @@ void wxSTEditorAboutDialog(wxWindow* parent)
             #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()
                 );
 
diff --git a/src/sdk/cbexception.cpp b/src/sdk/cbexception.cpp
index da1c3e6..06e76ec 100644
--- a/src/sdk/cbexception.cpp
+++ b/src/sdk/cbexception.cpp
@@ -47,7 +47,7 @@ void cbException::ShowErrorMessage(bool safe)
                  "build: %s %s)"),
                File.c_str(), Line, Message.c_str(),
                ConfigManager::GetRevisionNumber(), compilerVersion.c_str(),
-               wxT(__DATE__), wxT(__TIME__));
+               wxT(BUILD_DATE), wxT(BUILD_TIME));
     if (safe)
         wxSafeShowMessage(title, err);
     else
diff --git a/src/sdk/configmanager.cpp b/src/sdk/configmanager.cpp
index 78ab5f9..aa26d8c 100644
--- a/src/sdk/configmanager.cpp
+++ b/src/sdk/configmanager.cpp
@@ -265,7 +265,7 @@ void CfgMgrBldr::SwitchTo(const wxString& fileName)
     wxString info;
     info.Printf(_T(" application info:\n"
                     "\t svn_revision:\t%u\n"
-                    "\t build_date:\t%s, %s\n"), ConfigManager::GetRevisionNumber(), wxT(__DATE__), wxT(__TIME__));
+                    "\t build_date:\t%s, %s\n"), ConfigManager::GetRevisionNumber(), wxT(BUILD_DATE), wxT(BUILD_TIME));
 #if defined(__clang__)
     info += wxString::Format(wxT("\t compiler_version:\tclang %d.%d.%d\n"), __clang_major__,
                              __clang_minor__, __clang_patchlevel__);
diff --git a/src/src/appglobals.cpp b/src/src/appglobals.cpp
index dbff4c0..b339de1 100644
--- a/src/src/appglobals.cpp
+++ b/src/src/appglobals.cpp
@@ -63,8 +63,8 @@ namespace appglobals
     const wxString bit_type              = wxT(" - 32 bit");
 #endif
 
-    const wxString AppBuildTimestamp     = (  wxString(wxT(__DATE__)) + wxT(", ")
-                                            + wxT(__TIME__) + wxT(" - ")
+    const wxString AppBuildTimestamp     = (  wxString(wxT(BUILD_DATE)) + wxT(", ")
+                                            + wxT(BUILD_TIME) + wxT(" - ")
                                             + wxVERSION_STRING
 #if defined(__clang__)
                                             + wxString::Format(wxT(" - clang %d.%d.%d"),