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
Erlang: apply patch for macOS 10.13 BoringSSL issue. #15297
Conversation
Brew audit-strict fails on the missing erlang@20 formula but I am not sure I need it. If I do I can make one, but this is a patch only change for future compatibility with High Sierra. |
I am doing a backup and then will try an "in-place" upgrade to High Sierra to complete my testing. I've looked at the logs and the failure appears to be the couchdb test itself. |
@BrewTestBot test this please |
Formula/erlang.rb
Outdated
@@ -8,6 +8,7 @@ class Erlang < Formula | |||
|
|||
bottle do | |||
cellar :any | |||
rebuild 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be a formula revision
or?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a rebuild with a flag change needed for High Sierra. There are no changes. It's not a new version.
The new compiler flag prevents linking against BoringSSL on 10.13. It should have no effect on any other OS and the current behaviour on 10.13 is a bug.
I think bumping versions will confuse people hence the rebuild.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I'm just not sure why you're adding rebuild
here manually. That'll get done by CI. There's no massive harm to adding it IIRC, but I was wondering if you were trying to bump the formula revision & misunderstood placement or such, was all 😃
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I knew CI did the checksums, didn't know it added the rebuild. 👍
I have now verified this on High Sierra updated in place from Sierra. Things look good to me. |
Also, just to verify
|
@ilovezfs what should I do to fix this. Is there a way to tell CI to run again? I am not seeing the fail when I test CouchDB locally. Let me know what I need to do... Also, the PR on erlang has been pulled in and will be released with 20.1 as expected. So once it drops we call pull this out. |
#15315 took care of couchdb |
@BrewTestBot test this please |
@idyll Excellent work. Thanks for your first contribution to Homebrew! Without people like you submitting PRs we couldn't run this project. You rock! |
I'm still seeing this issue, I confirmed that I have this patch already but it hasn't fixed it. |
@pbadeer can you try using the sierra bottle and see what happens:
I am confident it what the patch does. I'm wondering if erlang wasn't re-compiled. |
Another user reported this issue and they resolved it by re-installing erlang. In their case they had to uninstall an older version because their elixir was linked to it. I assume you're having a similar issue. Try uninstalling and reinstalling. But if I was you I'd use the bottle because wxmac isn't compiling right now without a hack. |
@idyll |
@idyll Thanks for the suggestion. I ran |
Thanks @idyll, this seems to have fixed erlang/elixir for me after upgrading to macOS High Sierra. 🔥 |
@idyll Worked for me too! I ran brew reinstall erlang --force-bottle and re-ran mix deps.get and it worked! Thanks a bunch! |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?This PR applies the patch to erlang and applies a backported version of the patch to erlang@19.
I think we need to apply the patch now because this won't be fixed until the next official release at best, and pretty much any usage of erlang crypto will crash on 10.13.
I have built and tested on 10.12 as well as 10.13 although note that if you are using a fresh install of 10.13 you will need to use the prerelease build of the wxmac dependency (only for 10.13) or to install the dependency from a cask.