From 31f36f86f2122af493ddb6357cdcf67552944d99 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Wed, 14 Jul 2021 23:25:13 +0800 Subject: [PATCH] julia: revision bump, fix test The version bump to `mbedtls` in #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. --- Formula/julia.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/julia.rb b/Formula/julia.rb index fcb0eadb3272f..6e14918350613 100644 --- a/Formula/julia.rb +++ b/Formula/julia.rb @@ -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 @@ -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