You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
7071330 scripted-diff: Rename `PACKAGE_*` variables to `CLIENT_*` (Hennadii Stepanov)
332655c build: Rename `PACKAGE_*` variables to `CLIENT_*` (Hennadii Stepanov)
e6e29e3 scripted-diff: Clarify "user agent" variable name (Hennadii Stepanov)
Pull request description:
The use of `PACKAGE_NAME` for the project's variable name is problematic, as this name is commonly used in CMake's [interface variables](https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-version-selection). If third-party CMake code handles with scopes improperly, our `PACKAGE_NAME` variable could end up with an unexpected value.
This PR avoids such conflicts by renaming all `PACKAGE_*` variables to `CLIENT_*`.
The code in the master branch works correctly only incidentally. It is definitely broken in bitcoin/bitcoin#30997.
ACKs for top commit:
TheCharlatan:
Re-ACK 7071330
Tree-SHA512: f0992fb9a1ac4a41125b223f97bcaae50f521c813f334e606693dd0113a4732f12451bbcfb158df8bed44f34b37dadac478b2f5661e8b2588b401f43ae4bc1a4
LogPrintf("banlist.dat ignored because it can only be read by "PACKAGE_NAME" version 22.x. Remove %s to silence this warning.\n", fs::quoted(fs::PathToString(m_banlist_dat)));
153
+
LogPrintf("banlist.dat ignored because it can only be read by "CLIENT_NAME" version 22.x. Remove %s to silence this warning.\n", fs::quoted(fs::PathToString(m_banlist_dat)));
154
154
}
155
155
// If the JSON banlist does not exist, then recreate it
return util::Error{strprintf(_("Invalid or corrupt peers.dat (%s). If you believe this is a bug, please report it to %s. As a workaround, you can move the file (%s) out of the way (rename, move, or delete) to have a new one created on the next start."),
Copy file name to clipboardExpand all lines: src/bitcoin-cli-res.rc
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -15,14 +15,14 @@ BEGIN
15
15
BLOCK "040904E4" // U.S. English - multilingual (hex)
16
16
BEGIN
17
17
VALUE "CompanyName", "Bitcoin"
18
-
VALUE "FileDescription", "bitcoin-cli (JSON-RPC client for " PACKAGE_NAME ")"
19
-
VALUE "FileVersion", PACKAGE_VERSION
18
+
VALUE "FileDescription", "bitcoin-cli (JSON-RPC client for " CLIENT_NAME ")"
19
+
VALUE "FileVersion", CLIENT_VERSION_STRING
20
20
VALUE "InternalName", "bitcoin-cli"
21
21
VALUE "LegalCopyright", COPYRIGHT_STR
22
22
VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php."
0 commit comments