mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-22 06:52:36 +01:00
Merge bitcoin/bitcoin#22685: clientversion: No suffix #if CLIENT_VERSION_IS_RELEASE
5100deee58
clientversion: No suffix #if CLIENT_VERSION_IS_RELEASE (Carl Dong) Pull request description: ``` Previously, building from a release source tarball would result in a version string like v22.0.0-<commithash>, but we expect just v22.0.0. This commit solves this problem. Also use PACKAGE_VERSION instead of reconstructing it. ``` Fixes the underlying problem of #22623 ACKs for top commit: achow101: ACK5100deee58
fanquake: ACK5100deee58
- tested that prior the output of `src/bitcoind -version` on the `22.x` branch was `Bitcoin Core version v22.0.0-d3bd5410f64e`, and with this commit cherry-picked it is `Bitcoin Core version v22.0.0rc2`. Tree-SHA512: 78705e285ff1271d5012e888837049044db4d11d66c252c6b964685892ef078c56fe122f12daa87c71532f4352f695d1e88a228665adcd7afe3ddce3f209b49f
This commit is contained in:
commit
3facf0a8ae
1 changed files with 4 additions and 2 deletions
|
@ -30,8 +30,10 @@ const std::string CLIENT_NAME("Satoshi");
|
|||
#define BUILD_DESC BUILD_GIT_TAG
|
||||
#define BUILD_SUFFIX ""
|
||||
#else
|
||||
#define BUILD_DESC "v" STRINGIZE(CLIENT_VERSION_MAJOR) "." STRINGIZE(CLIENT_VERSION_MINOR) "." STRINGIZE(CLIENT_VERSION_BUILD)
|
||||
#ifdef BUILD_GIT_COMMIT
|
||||
#define BUILD_DESC "v" PACKAGE_VERSION
|
||||
#if CLIENT_VERSION_IS_RELEASE
|
||||
#define BUILD_SUFFIX ""
|
||||
#elif defined(BUILD_GIT_COMMIT)
|
||||
#define BUILD_SUFFIX "-" BUILD_GIT_COMMIT
|
||||
#elif defined(GIT_COMMIT_ID)
|
||||
#define BUILD_SUFFIX "-g" GIT_COMMIT_ID
|
||||
|
|
Loading…
Add table
Reference in a new issue