Skip to content

Commit

Permalink
julia: revision bump, fix test
Browse files Browse the repository at this point in the history
The version bump to `mbedtls` in Homebrew#80919 broke linkage with
libmbedcrypto.

Julia does linkage a bit weirdly, so this wasn't caught in CI. I've
updated the test to help us catch this in the future.

Closes Homebrew#81255.

Signed-off-by: Nanda H Krishna <me@nandahkrishna.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
  • Loading branch information
carlocab authored and BrewTestBot committed Jul 14, 2021
1 parent 3e26869 commit c2027df
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Formula/julia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class Julia < Formula
desc "Fast, Dynamic Programming Language"
homepage "https://julialang.org/"
license all_of: ["MIT", "BSD-3-Clause", "Apache-2.0", "BSL-1.0"]
revision 1
head "https://github.com/JuliaLang/julia.git"

stable do
Expand Down Expand Up @@ -164,5 +165,11 @@ def install
test do
assert_equal "4", shell_output("#{bin}/julia -E '2 + 2'").chomp
system bin/"julia", "-e", 'Base.runtests("core")'

(lib/"julia").children.each do |so|
next unless so.symlink?

assert_predicate so, :exist?, "Broken linkage with #{so.basename}"
end
end
end

0 comments on commit c2027df

Please sign in to comment.