Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

erigon 2.58.0 #163629

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions Formula/e/erigon.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Erigon < Formula
desc "Implementation of Ethereum (execution client), on the efficiency frontier"
homepage "https://github.com/ledgerwatch/erigon"
url "https://github.com/ledgerwatch/erigon/archive/refs/tags/v2.55.1.tar.gz"
sha256 "2e340bb5504f565bb9fe8c4d246dea50bd54bfcf6a91e9196aeb4fbda722ae9e"
url "https://github.com/ledgerwatch/erigon/archive/refs/tags/v2.58.0.tar.gz"
sha256 "328bec2af8b3771e81b23a652a94755e948d68c4553bf0dd00b0dfe1d5f41366"
license all_of: ["GPL-3.0-or-later", "LGPL-3.0-or-later"]
head "https://github.com/ledgerwatch/erigon.git", branch: "devel"

Expand All @@ -26,18 +26,29 @@

conflicts_with "ethereum", because: "both install `evm` binaries"

resource "silkworm-go" do
url "https://github.com/erigontech/silkworm-go/archive/refs/tags/v0.12.0.tar.gz"
sha256 "581d0068c132abcc2c9d40cc9e054536d099df39bbdc2b83f7fc148e87304c0d"
end

def install
unless build.head?
ENV["GIT_COMMIT"] = "unknown"
ENV["GIT_COMMIT"] = "Homebrew"
ENV["GIT_BRANCH"] = "release"
ENV["GIT_TAG"] = "v#{version}"
end

resource("silkworm-go").stage buildpath/"silkworm-go"
os = OS.mac? ? "macos" : "linux"
arch = Hardware::CPU.intel? ? "x64" : Hardware::CPU.arch.to_s
suffix = OS.mac? ? "dylib" : "so"
lib.install "silkworm-go/lib/#{os}_#{arch}/libsilkworm_capi.#{suffix}"

system "make", "all"
bin.install Dir["build/bin/*"]
end

test do

Check failure on line 51 in Formula/e/erigon.rb

View workflow job for this annotation

GitHub Actions / macOS 12-arm64

`brew test --verbose erigon` failed on macOS Monterey (12) on Apple Silicon!

/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/bin/bundle clean ==> Testing erigon ==> /opt/homebrew/Cellar/erigon/2.58.0/bin/erigon --datadir testchain --log.dir.verbosity debug --log.dir.path /private/tmp/erigon-test-20240224-10255-d3tszq init genesis.json dyld[10265]: Symbol not found: (__ZNSt3__18to_charsEPcS0_d) Referenced from: '/Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/erigontech/silkworm-go@v0.12.0/lib/macos_arm64/libsilkworm_capi.dylib' Expected in: '/usr/lib/libc++.1.dylib' Error: erigon: failed An exception occurred within a child process: BuildError: Failed executing: /opt/homebrew/Cellar/erigon/2.58.0/bin/erigon --datadir testchain --log.dir.verbosity debug --log.dir.path /private/tmp/erigon-test-20240224-10255-d3tszq init genesis.json /opt/homebrew/Library/Homebrew/formula.rb:2832:in `block in system' /opt/homebrew/Library/Homebrew/formula.rb:2768:in `open' /opt/homebrew/Library/Homebrew/formula.rb:2768:in `system' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.11266/lib/types/private/methods/call_validation.rb:270:in `bind_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.11266/lib/types/private/methods/call_validation.rb:270:in `validate_call' /opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.1.0/gems/sorbet-runtime-0.5.11266/lib/types/private/methods/_methods.rb:277:in `block in _on_method_added' /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/e/erigon.rb:67:in `block in <class:Erigon>' /opt/homebrew/Library/Homebrew/formula.rb:2591:in `block (3 levels) in run_test' /opt/homebrew/Library/Homebrew/extend/kernel.rb:493:in `with_env' /opt/homebrew/Library/Homebrew/formula.rb:2590:in `block (2 levels) in run_test' /opt/homebrew/Library/Homebrew/formula.rb:1056:in `with_logging' /opt/homebrew/Library/Homebrew/formula.rb:2589:in `block in run_test' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `block in run' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `chdir' /opt/homebrew/Library/Homebrew/mktemp.rb:75:in `run' /opt/homebrew/Library/Homebrew/formula.rb:2883:in `mktemp' /opt/homebrew/Library/Homebrew/formula.rb:2583:in `run_test' /opt/homebrew/Library/Homebrew/test.rb:46:in `block in <main>' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:107:in `block in timeout' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `block in catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:36:in `catch' /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/lib/ruby/3.1.0/timeout.rb:123:in `timeout' /opt/homebrew/Library/Homebrew/test.rb:50:in `<main>'
(testpath/"genesis.json").write <<~EOS
{
"config": {
Expand Down
Loading