Skip to content
Snippets Groups Projects
Commit ca005cb8 authored by Misty De Meo's avatar Misty De Meo
Browse files

doctor: check for beta XQuartz releases


Beta versions of XQuartz have address sanitization enabled, which
breaks some software at runtime, including wine.

Closes Homebrew/homebrew-core#2481.

Closes #459.

Signed-off-by: default avatarMisty De Meo <mistydemeo@github.com>
parent cdcbe61a
No related branches found
No related tags found
No related merge requests found
......@@ -312,6 +312,18 @@ module Homebrew
https://xquartz.macosforge.org
EOS
end
def check_for_beta_xquartz
return unless MacOS::XQuartz.version.include? "beta"
<<-EOS.undent
The following beta release of XQuartz is installed: #{MacOS::XQuartz.version}
XQuartz beta releases include address sanitization, and do not work with
all software; notably, wine will not work with beta releases of XQuartz.
We recommend only installing stable releases of XQuartz.
EOS
end
end
end
end
......@@ -226,4 +226,9 @@ class DiagnosticChecksTest < Homebrew::TestCase
end
end
end
def test_check_for_beta_xquartz
MacOS::XQuartz.stubs(:version).returns("2.7.10_beta2")
assert_match "The following beta release of XQuartz is installed: 2.7.10_beta2", @checks.check_for_beta_xquartz
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment