Skip to content

Commit 82398fd

Browse files
committed
Update stripbuildinfo.patch
1 parent 61dfb56 commit 82398fd

File tree

1 file changed

+27
-18
lines changed

1 file changed

+27
-18
lines changed

patches/stripbuildinfo.patch

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/src/bench/bench.h b/src/bench/bench.h
2-
index 22f06d8cb..661a31911 100644
2+
index b0e4006ee3..738b452400 100644
33
--- a/src/bench/bench.h
44
+++ b/src/bench/bench.h
5-
@@ -62,6 +62,6 @@ public:
5+
@@ -63,6 +63,6 @@ public:
66

77
// BENCHMARK(foo) expands to: benchmark::BenchRunner bench_11foo("foo", foo);
88
#define BENCHMARK(n) \
@@ -11,20 +11,20 @@ index 22f06d8cb..661a31911 100644
1111

1212
#endif // BITCOIN_BENCH_BENCH_H
1313
diff --git a/src/clientversion.cpp b/src/clientversion.cpp
14-
index 29c38e2d3..46a042702 100644
14+
index f97e4097e8..e36c5c185f 100644
1515
--- a/src/clientversion.cpp
1616
+++ b/src/clientversion.cpp
17-
@@ -40,7 +40,7 @@ const std::string CLIENT_NAME("Satoshi");
18-
#endif
19-
#endif
20-
21-
-const std::string CLIENT_BUILD(BUILD_DESC BUILD_SUFFIX);
22-
+const std::string CLIENT_BUILD("");
17+
@@ -49,7 +49,7 @@ static std::string FormatVersion(int nVersion)
2318

24-
static std::string FormatVersion(int nVersion)
19+
std::string FormatFullVersion()
2520
{
21+
- static const std::string CLIENT_BUILD(BUILD_DESC BUILD_SUFFIX);
22+
+ static const std::string CLIENT_BUILD("");
23+
return CLIENT_BUILD;
24+
}
25+
2626
diff --git a/src/compat/assumptions.h b/src/compat/assumptions.h
27-
index 5f50cde3f..5feefc79b 100644
27+
index 7a254c3b67..64cc15ea9a 100644
2828
--- a/src/compat/assumptions.h
2929
+++ b/src/compat/assumptions.h
3030
@@ -13,9 +13,6 @@
@@ -38,10 +38,10 @@ index 5f50cde3f..5feefc79b 100644
3838
// Assumption: We assume a C++17 (ISO/IEC 14882:2017) compiler (minimum requirement).
3939
// Example(s): We assume the presence of C++17 features everywhere :-)
4040
diff --git a/src/logging.h b/src/logging.h
41-
index 436f0cd12..bee77fd93 100644
41+
index f46104364c..8749230866 100644
4242
--- a/src/logging.h
4343
+++ b/src/logging.h
44-
@@ -180,7 +180,7 @@ static inline void LogPrintf_(const std::string& logging_function, const std::st
44+
@@ -184,7 +184,7 @@ static inline void LogPrintf_(const std::string& logging_function, const std::st
4545
}
4646
}
4747

@@ -51,7 +51,7 @@ index 436f0cd12..bee77fd93 100644
5151
// Use a macro instead of a function for conditional logging to prevent
5252
// evaluating arguments when logging for the category is not enabled.
5353
diff --git a/src/rest.cpp b/src/rest.cpp
54-
index d41f374c4..b2c89d838 100644
54+
index 3746fd752a..6c5be23670 100644
5555
--- a/src/rest.cpp
5656
+++ b/src/rest.cpp
5757
@@ -84,7 +84,7 @@ static NodeContext* GetNodeContext(const std::any& context, HTTPRequest* req)
@@ -63,11 +63,20 @@ index d41f374c4..b2c89d838 100644
6363
return nullptr;
6464
}
6565
return node_context;
66+
@@ -122,7 +122,7 @@ static ChainstateManager* GetChainman(const std::any& context, HTTPRequest* req)
67+
strprintf("%s:%d (%s)\n"
68+
"Internal bug detected: Chainman disabled or instance not found!\n"
69+
"You may report this issue here: %s\n",
70+
- __FILE__, __LINE__, __func__, PACKAGE_BUGREPORT));
71+
+ __FILE__, 0, __func__, PACKAGE_BUGREPORT));
72+
return nullptr;
73+
}
74+
return node_context->chainman.get();
6675
diff --git a/src/sync.h b/src/sync.h
67-
index 53213c208..fd127d319 100644
76+
index 6ba63d5e4d..e41e701230 100644
6877
--- a/src/sync.h
6978
+++ b/src/sync.h
70-
@@ -78,8 +78,8 @@ void AssertLockNotHeldInternal(const char* pszName, const char* pszFile, int nLi
79+
@@ -80,8 +80,8 @@ void AssertLockNotHeldInternal(const char* pszName, const char* pszFile, int nLi
7180
inline void DeleteLock(void* cs) {}
7281
inline bool LockStackEmpty() { return true; }
7382
#endif
@@ -78,7 +87,7 @@ index 53213c208..fd127d319 100644
7887

7988
/**
8089
* Template mixin that adds -Wthread-safety locking annotations and lock order
81-
@@ -224,28 +224,28 @@ public:
90+
@@ -218,28 +218,28 @@ public:
8291
friend class reverse_lock;
8392
};
8493

@@ -116,7 +125,7 @@ index 53213c208..fd127d319 100644
116125
LeaveCritical(); \
117126
}
118127
diff --git a/src/util/check.h b/src/util/check.h
119-
index bc62da344..d03e544e7 100644
128+
index e60088a2c6..2563012536 100644
120129
--- a/src/util/check.h
121130
+++ b/src/util/check.h
122131
@@ -36,15 +36,12 @@ class NonFatalCheckError : public std::runtime_error

0 commit comments

Comments
 (0)