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

cryptol: fix source build #71358

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
20 changes: 20 additions & 0 deletions Formula/cryptol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ class Cryptol < Formula
url "https://hackage.haskell.org/package/cryptol-2.10.0/cryptol-2.10.0.tar.gz"
sha256 "0bfa21d4766b9ad21ba16ee43b83854f25a84e7ca2b68a14cbe0006b4173ef63"
license "BSD-3-Clause"
revision 1
head "https://github.com/GaloisInc/cryptol.git"

bottle do
Expand All @@ -19,6 +20,10 @@ class Cryptol < Formula
uses_from_macos "ncurses"
uses_from_macos "zlib"

# Patch to fix build failure with incompatible version of libBF
# https://github.com/GaloisInc/cryptol/issues/1083
patch :DATA

def install
system "cabal", "v2-update"
system "cabal", "v2-install", *std_cabal_v2_args
Expand All @@ -33,3 +38,18 @@ def install
assert_match expected, shell_output("#{bin}/cryptol -b helloworld.icry")
end
end

__END__
diff --git a/cryptol.cabal b/cryptol.cabal
index 077e927..2a3cb8e 100644
--- a/cryptol.cabal
+++ b/cryptol.cabal
@@ -56,7 +56,7 @@ library
GraphSCC >= 1.0.4,
heredoc >= 0.2,
integer-gmp >= 1.0 && < 1.1,
- libBF >= 0.5.1,
+ libBF == 0.5.1,
MemoTrie >= 0.6 && < 0.7,
monad-control >= 1.0,
monadLib >= 3.7.2,