-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
mozjs68: new port #13902
mozjs68: new port #13902
Conversation
CI on macOS 11 says
Will dig into it later. |
cb803f0
to
cb9b3fe
Compare
The Rust (or bindgen) components need an LLVM. I've set the Portfile up to require a MacPorts Clang, and then point mozjs68 to the corresponding |
Updated to support Snow Leopard (x86_64 only). |
I installed this, and it works. I didn't run the full test suite though -- should have I guess. It supports javascript async/await structures nicely (as do 52 and 60) and I tried to use it to add full async/await support back into TenFourFox, by symlinking this js into the TenFourFox bundle instead of the js45-era js that is in there now, but it wouldn't work to allow TFF to support GitHub normally, for example. Maybe someday! I put that question here, BTW: |
I would guess with the deep connection between the JS runtime and the DOM that Firefox links into libmozjs rather than running the js binary in a separate process. So my uninformed expectation is that at the very least a full rebuild would be necessary (and likely additional glue code). To add to the "Maybe someday" wish-list, if we get a bootstrapped Rust rolling on 10.6 then perhaps forking a newer version of Firefox will become a possibility, at least on x86_64. After this is merged I'll see about tricking the build into working on PPC. As I said above I believe that Rust is not actually used for any of the core code – the story changes with mozjs78 though. |
LGTM. Anyone else? |
@mascguy Once this is merged, maybe time to move the |
Description
gjs is out of date; newer versions require an updated mozjs. A gjs update can be prepared after this and #13897 are merged.
One major improvement over the mozjs60 Portfile is that mozglue is now compiled statically. This eliminates the need for two of the patches, and also avoids a file conflict over
libmozglue.dylib
with mozjs60.After #13817 is merged, this mozjs68 port can be made available on 10.6+ (already compiled and tested locally on 10.6.8 / x86_64). mozjs78 and mozjs91 will be explored later.
Type(s)
Tested on
macOS 10.6.8
Xcode x.y
Verification
Have you
port lint --nitpick
?sudo port test
?sudo port -vst install
?