Upgrade bitcoind to 27.1

Requires a newer C++ compiler
This commit is contained in:
Râu Cao 2024-06-25 13:13:54 +02:00
parent f843a31e03
commit 232601f093
Signed by: raucao
GPG Key ID: 37036C356E56CC51
2 changed files with 7 additions and 6 deletions

View File

@ -1,5 +1,5 @@
node.default['bitcoin']['version'] = '26.0'
node.default['bitcoin']['checksum'] = 'ab1d99276e28db62d1d9f3901e85ac358d7f1ebcb942d348a9c4e46f0fcdc0a1'
node.default['bitcoin']['version'] = '27.1'
node.default['bitcoin']['checksum'] = '0c1051fd921b8fae912f5c2dfd86b085ab45baa05cd7be4585b10b4d1818f3da'
node.default['bitcoin']['username'] = 'satoshi'
node.default['bitcoin']['usergroup'] = 'bitcoin'
node.default['bitcoin']['network'] = 'mainnet'

View File

@ -12,8 +12,9 @@ if node["bitcoin"]["blocksdir_mount_type"]
include_recipe "kosmos-bitcoin::blocksdir-mount"
end
%w{ libtool autotools-dev make automake cmake curl g++-multilib libtool
binutils-gold bsdmainutils pkg-config python3 patch }.each do |pkg|
%w{
libtool autotools-dev make automake cmake curl g++-10-multilib
binutils-gold bsdmainutils pkg-config python3 patch }.each do |pkg|
apt_package pkg
end
@ -26,7 +27,7 @@ end
execute "compile_bitcoin-core_dependencies" do
cwd "/usr/local/bitcoind/depends"
command "make NO_QT=1"
command "make CC=gcc-10 CXX=g++-10 NO_QT=1"
action :nothing
notifies :run, 'bash[compile_bitcoin-core]', :immediately
end
@ -35,7 +36,7 @@ bash "compile_bitcoin-core" do
cwd "/usr/local/bitcoind"
code <<-EOH
./autogen.sh
./configure --prefix=$PWD/depends/x86_64-pc-linux-gnu
./configure CC=gcc-10 CXX=g++-10 --prefix=$PWD/depends/x86_64-pc-linux-gnu
make
EOH
action :nothing