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

Fix setExecutable error on macOS (Monterey +) #303

Merged
merged 1 commit into from
May 4, 2022

Conversation

Bargsteen
Copy link
Contributor

@Bargsteen Bargsteen commented May 4, 2022

Purpose

Closes #301

With #243, we pass a closure for accessing the blobstore across FFI. On macOS Monterey (and very likely future versions of macOS) this causes the signed node to be unable to run (see #301). This is because of an issue in GHC: https://gitlab.haskell.org/ghc/ghc/-/issues/18376.

This fix is a workaround, that slacks the restrictions on the sandbox that signed macOS apps are put into.

Changes

Checklist

  • My code follows the style of this project.
  • The code compiles without warnings.
  • I have performed a self-review of the changes.
  • I have documented my code, in particular the intent of the
    hard-to-understand areas.
  • (If necessary) I have updated the CHANGELOG.

- Adds an entitlements file which allows unsigned executable memory
- The entitlement should be removed once https://gitlab.haskell.org/ghc/ghc/-/issues/18376 is fixed
@Bargsteen Bargsteen merged commit 8fe1ded into main May 4, 2022
@Bargsteen Bargsteen deleted the kb/fix-mac-set-executable-error branch May 4, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The signed mac v4 node crashes on startup in macOS Monterey
2 participants