-
Notifications
You must be signed in to change notification settings - Fork 29
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
Migration to V8 LTS 6.x / 7.x #48
Comments
FYI, on Fedora, headers for v8 in nodejs are in |
I'm available for testing on Arch Linux and Fedora Silverblue. |
@QuLogic I don't think node is built as a shared module on Fedora. I can't find any |
I tried to package a snapshot of the newapi branch, but it built only on amd64. It fails to build on other architectures because the configure file tries to find the lib in the path for amd64 only. |
@jeroen @QuLogic Fedora 29 has libv8.so.6:
|
Arch Linux does not have V8 in the main repositories - you have to build it from source in the Arch User Repository with an "AUR helper". The main version is v8 7.1.302.29-1, and there's a |
@daissi thanks I'll try to improve that configure script |
@znmeb Yes, but the biggest problem with v8 is that they like to break ABI indiscriminately. So just because it has the same soname, doesn't necessarily mean it will work fine. |
Right, that's why it's good to use the node lts version of libv8. Those are stable for npm packages. @QuLogic @tomhughes would it possible to ask the maintainer of |
@znmeb the version in the |
The AUR build of I've got Docker - I can test on any Linux that has |
Sorry? What does that do exactly? The Fedora Node.js uses the bundled v8 these days if that's what you're asking, because it's impossible to find one version of v8 that works for everything in Fedora. |
@tomhughes my question is if it would be possible to build nodejs with Debian is doing the same now in libnode-dev so that they don't need to manage a separate v8 debian package anymore. |
I'm asking what |
Why do you want to link to the Node.js version of v8 anyway? Fedora has a separate v8 for things that want to use v8 itself but because of the well known issues with v8 many things like Node and Chromium prefer to use their own bundled versions. I don't think exposing those versions to third parties is going to be very helpful - there's no more guarantee that they would be compatible with your program than there is that the separate one would be. Anyway as I don't maintain v8 or nodejs in Fedora none of this is really anything to do with me! |
Support for V8 version 6 / 7 has been merged into master |
Submitted V8 2.0 to CRAN. Fingers crossed. |
Uploaded in Debian/unstable. |
Thank you @daissi ! Let me know if everything works now; if there are any other issues I can do another path release in a week or so. Closing this topic now, problems with the new V8 can go into separate issues. Thanks all! |
@QuLogic when you upload |
Just want to pipe in and say a huge thank you to @jeroen for this! Using the current version of V8 seems to have solved a long-standing issue with rmapshaper on Fedora that I couldn't fix. |
New version of V8 should work with libv8 version 6 or 7 as provided by e.g nodejs 10.15 LTS. Work is currently in the
newapi
branch. To test this:brew install v8
apt-get install libnode-dev
yum install v8-devel
And then:
Outstanding issues:
winbuilderDoesn't build on winbuilder because TryAcquireSRWLockExclusive() is not available on vista.
Fixed by reverting win7 patch: https://github.com/rwinlib/libv8/tree/v6.2.414.50-vista
dagittyFixed: turns out this package is sensitive to locale and ICU config.
On MacOS
v8::V8::InitializeICUDefaultLocation()
is needed to initiate the ICU data. On Debian it works withlibnode-dev
if we make sure the locale is set to UTF-8:Example code:
dqshinyFix is on CRAN
jsonldFix is on CRAN
lawnFix on CRAN.
The text was updated successfully, but these errors were encountered: