mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Merge bitcoin/bitcoin#22578: [0.21] Additional backports
55e941f5df
test: Fix intermittent feature_taproot issue (MarcoFalke)681f728a35
ci: Build with --enable-werror by default, and document exceptions (Hennadii Stepanov)89426c43fb
ci: Fix macOS brew install command (Hennadii Stepanov) Pull request description: This backports a few changes to fix CI failures we are seeing with the 0.21 branch. Backports #21663, this might be the easiest way to fix the macOS CI failures we're seeing. i.e in #22569. The underlying issue is that the older CI images are using a version of brew that without running `brew update` first, is trying to download packages like Boost, from bintray (which no-longer works). This also includes #20182, as by fixing macOS failure, via running `brew upgrade`, we end up using a newer version of miniupnpc, which emits a GNU extension related warning, and causes the build to fail, because we use `-Werror`. Backporting #20535 should fix #22581. ACKs for top commit: hebasto: ACK55e941f5df
, I verified changes by backporting locally. Tree-SHA512: 3ab2c5c73c707d0f5b862264f3a0179cdeee30ae55aae872f3c3e0bb81d71a5027c39ba830210c99a21f98cc86c4167c4f215e24d1a8891ec79ce512debf82df
This commit is contained in:
commit
068ac69b56
7 changed files with 18 additions and 6 deletions
|
@ -131,8 +131,9 @@ task:
|
||||||
|
|
||||||
task:
|
task:
|
||||||
name: 'macOS 10.14 native [GOAL: install] [GUI] [no depends]'
|
name: 'macOS 10.14 native [GOAL: install] [GUI] [no depends]'
|
||||||
macos_brew_addon_script:
|
brew_install_script:
|
||||||
- brew install boost libevent berkeley-db4 qt miniupnpc ccache zeromq qrencode sqlite libtool automake pkg-config gnu-getopt
|
- brew update
|
||||||
|
- brew install boost libevent berkeley-db4 qt@5 miniupnpc ccache zeromq qrencode sqlite libtool automake pkg-config gnu-getopt
|
||||||
<< : *GLOBAL_TASK_TEMPLATE
|
<< : *GLOBAL_TASK_TEMPLATE
|
||||||
osx_instance:
|
osx_instance:
|
||||||
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
|
# Use latest image, but hardcode version to avoid silent upgrades (and breaks)
|
||||||
|
|
|
@ -25,4 +25,4 @@ export RUN_FUNCTIONAL_TESTS=false
|
||||||
export GOAL="install"
|
export GOAL="install"
|
||||||
# -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1"
|
# -Wno-psabi is to disable ABI warnings: "note: parameter passing for argument of type ... changed in GCC 7.1"
|
||||||
# This could be removed once the ABI change warning does not show up by default
|
# This could be removed once the ABI change warning does not show up by default
|
||||||
export BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports CXXFLAGS=-Wno-psabi --enable-werror --with-boost-process"
|
export BITCOIN_CONFIG="--enable-glibc-back-compat --enable-reduce-exports CXXFLAGS=-Wno-psabi --with-boost-process"
|
||||||
|
|
|
@ -15,4 +15,4 @@ export XCODE_BUILD_ID=11C505
|
||||||
export RUN_UNIT_TESTS=false
|
export RUN_UNIT_TESTS=false
|
||||||
export RUN_FUNCTIONAL_TESTS=false
|
export RUN_FUNCTIONAL_TESTS=false
|
||||||
export GOAL="deploy"
|
export GOAL="deploy"
|
||||||
export BITCOIN_CONFIG="--with-gui --enable-reduce-exports --enable-werror --with-boost-process"
|
export BITCOIN_CONFIG="--with-gui --enable-reduce-exports --with-boost-process"
|
||||||
|
|
|
@ -9,7 +9,7 @@ export LC_ALL=C.UTF-8
|
||||||
export HOST=x86_64-apple-darwin16
|
export HOST=x86_64-apple-darwin16
|
||||||
export PIP_PACKAGES="zmq"
|
export PIP_PACKAGES="zmq"
|
||||||
export GOAL="install"
|
export GOAL="install"
|
||||||
export BITCOIN_CONFIG="--with-gui --enable-reduce-exports --enable-werror --with-boost-process"
|
export BITCOIN_CONFIG="--with-gui --enable-reduce-exports --with-boost-process"
|
||||||
export CI_OS_NAME="macos"
|
export CI_OS_NAME="macos"
|
||||||
export NO_DEPENDS=1
|
export NO_DEPENDS=1
|
||||||
export OSX_SDK=""
|
export OSX_SDK=""
|
||||||
|
|
|
@ -14,3 +14,7 @@ export RUN_FUNCTIONAL_TESTS=false
|
||||||
export RUN_SECURITY_TESTS="true"
|
export RUN_SECURITY_TESTS="true"
|
||||||
export GOAL="deploy"
|
export GOAL="deploy"
|
||||||
export BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests --without-boost-process"
|
export BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests --without-boost-process"
|
||||||
|
|
||||||
|
# Compiler for MinGW-w64 causes false -Wreturn-type warning.
|
||||||
|
# See https://sourceforge.net/p/mingw-w64/bugs/306/
|
||||||
|
export NO_WERROR=1
|
||||||
|
|
|
@ -6,7 +6,10 @@
|
||||||
|
|
||||||
export LC_ALL=C.UTF-8
|
export LC_ALL=C.UTF-8
|
||||||
|
|
||||||
BITCOIN_CONFIG_ALL="--disable-dependency-tracking --prefix=$DEPENDS_DIR/$HOST --bindir=$BASE_OUTDIR/bin --libdir=$BASE_OUTDIR/lib"
|
BITCOIN_CONFIG_ALL="--enable-suppress-external-warnings --disable-dependency-tracking --prefix=$DEPENDS_DIR/$HOST --bindir=$BASE_OUTDIR/bin --libdir=$BASE_OUTDIR/lib"
|
||||||
|
if [ -z "$NO_WERROR" ]; then
|
||||||
|
BITCOIN_CONFIG_ALL="${BITCOIN_CONFIG_ALL} --enable-werror"
|
||||||
|
fi
|
||||||
DOCKER_EXEC "ccache --zero-stats --max-size=$CCACHE_SIZE"
|
DOCKER_EXEC "ccache --zero-stats --max-size=$CCACHE_SIZE"
|
||||||
|
|
||||||
BEGIN_FOLD autogen
|
BEGIN_FOLD autogen
|
||||||
|
|
|
@ -1441,6 +1441,10 @@ class TaprootTest(BitcoinTestFramework):
|
||||||
self.nodes[1].generate(101)
|
self.nodes[1].generate(101)
|
||||||
self.test_spenders(self.nodes[1], spenders_taproot_active(), input_counts=[1, 2, 2, 2, 2, 3])
|
self.test_spenders(self.nodes[1], spenders_taproot_active(), input_counts=[1, 2, 2, 2, 2, 3])
|
||||||
|
|
||||||
|
# Re-connect nodes in case they have been disconnected
|
||||||
|
self.disconnect_nodes(0, 1)
|
||||||
|
self.connect_nodes(0, 1)
|
||||||
|
|
||||||
# Transfer value of the largest 500 coins to pre-taproot node.
|
# Transfer value of the largest 500 coins to pre-taproot node.
|
||||||
addr = self.nodes[0].getnewaddress()
|
addr = self.nodes[0].getnewaddress()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue