Skip to content

Commit 1d3af69

Browse files
committed
Merge #14612: Include full version number in released file names
75a4bf6 Update release-process.md to include RC version bumping (Andrew Chow) 04b0bc7 build: include rc number in version number (Andrew Chow) 895e6bb build: if VERSION_BUILD is non-zero, include it in the package version (Andrew Chow) Pull request description: As noted on IRC, the filenames of the gitian build results do not contain the 4th digit of the version number if it has one, e.g. 0.17.0.1 produces files with the number 0.17.0. Furthermore, when RC's are built, the resulting filenames are of the release version and do not include `rc` in them. This occurs because `configure.ac` is written to create version numbers of the form `major.minor.rev` instead of `major.minor.rev.build` and without any rc version as it does not handle rc numbers. This PR changes `configure.ac` to include the build number if it is greater than 0. It will also include the rc number if it is greater than 0. So the filenames of the gitian builds will now contain the full version number. This behavior can be tested by setting `_CLIENT_VERSION_BUILD` and `_CLIENT_VERSION_RC` to non-zero values and then doing `make dist`. A tar file should be created with the correct versioning. Tree-SHA512: b77990485f2c7770be897dc136737cd805306afff9882ebef7170741f363203587356ccf8bec83163268ace1bd77433fbd2ba8c213f993677bfb867d99a0bbe7
2 parents e3a1b74 + 75a4bf6 commit 1d3af69

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@ define(_CLIENT_VERSION_MAJOR, 0)
44
define(_CLIENT_VERSION_MINOR, 17)
55
define(_CLIENT_VERSION_REVISION, 99)
66
define(_CLIENT_VERSION_BUILD, 0)
7+
define(_CLIENT_VERSION_RC, 0)
78
define(_CLIENT_VERSION_IS_RELEASE, false)
89
define(_COPYRIGHT_YEAR, 2018)
910
define(_COPYRIGHT_HOLDERS,[The %s developers])
1011
define(_COPYRIGHT_HOLDERS_SUBSTITUTION,[[Bitcoin Core]])
11-
AC_INIT([Bitcoin Core],[_CLIENT_VERSION_MAJOR._CLIENT_VERSION_MINOR._CLIENT_VERSION_REVISION],[https://github.com/bitcoin/bitcoin/issues],[bitcoin],[https://bitcoincore.org/])
12+
AC_INIT([Bitcoin Core],m4_join([.], _CLIENT_VERSION_MAJOR, _CLIENT_VERSION_MINOR, _CLIENT_VERSION_REVISION, m4_if(_CLIENT_VERSION_BUILD, [0], [], _CLIENT_VERSION_BUILD))m4_if(_CLIENT_VERSION_RC, [0], [], [rc]_CLIENT_VERSION_RC),[https://github.com/bitcoin/bitcoin/issues],[bitcoin],[https://bitcoincore.org/])
1213
AC_CONFIG_SRCDIR([src/validation.cpp])
1314
AC_CONFIG_HEADERS([src/config/bitcoin-config.h])
1415
AC_CONFIG_AUX_DIR([build-aux])

doc/release-process.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ Before every release candidate:
66
* Update translations (ping wumpus on IRC) see [translation_process.md](https://github.com/bitcoin/bitcoin/blob/master/doc/translation_process.md#synchronising-translations).
77

88
* Update manpages, see [gen-manpages.sh](https://github.com/bitcoin/bitcoin/blob/master/contrib/devtools/README.md#gen-manpagessh).
9+
* Update release candidate version in `configure.ac` (`CLIENT_VERSION_RC`)
910

1011
Before every minor and major release:
1112

1213
* Update [bips.md](bips.md) to account for changes since the last release.
13-
* Update version in `configure.ac` (don't forget to set `CLIENT_VERSION_IS_RELEASE` to `true`)
14+
* Update version in `configure.ac` (don't forget to set `CLIENT_VERSION_IS_RELEASE` to `true`) (don't forget to set `CLIENT_VERSION_RC` to `0`)
1415
* Write release notes (see below)
1516
* Update `src/chainparams.cpp` nMinimumChainWork with information from the getblockchaininfo rpc.
1617
* Update `src/chainparams.cpp` defaultAssumeValid with information from the getblockhash rpc.

0 commit comments

Comments
 (0)