diff --git a/site-cookbooks/kosmos-bitcoin/attributes/default.rb b/site-cookbooks/kosmos-bitcoin/attributes/default.rb index 8883d71..02b73a1 100644 --- a/site-cookbooks/kosmos-bitcoin/attributes/default.rb +++ b/site-cookbooks/kosmos-bitcoin/attributes/default.rb @@ -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' diff --git a/site-cookbooks/kosmos-bitcoin/recipes/bitcoind.rb b/site-cookbooks/kosmos-bitcoin/recipes/bitcoind.rb index a4991ff..70a6345 100644 --- a/site-cookbooks/kosmos-bitcoin/recipes/bitcoind.rb +++ b/site-cookbooks/kosmos-bitcoin/recipes/bitcoind.rb @@ -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