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
ref@1.1.0 isn't broken, it's the node version being distributed. #61
Comments
|
Testing it locally, ref@1.1.0 was failing too, so i down version-ed to ref@1.0.2.. i had thought npm would have used the local version of ref, but i guess "-g" bypasses that version.. This worked locally... But we need bonescript global... For node, we do have this version installed.. node was backported from stretch. ;) I've also pinged @jadonk As ref is a dependicy of iff: i'm not sure how we define sub-dependices.. Regards, |
|
@fivdi Wonder if it's one of the v8 lib's node is built-against? |
|
Interesting... I'm going to try: |
The sub-dependices of ffi are defined by ffi itself. BoneScript depends on ffi@1.2.6 and ffi@1.2.6 depends on the latest version of ref. The latest version of ref, which is currently ref@1.1.0, depends on the latest version of nan@2. The latest version of nan, which is currently nan@2.0.8, depends on v8::String::REPLACE_INVALID_UTF8. The problem is that
The Node.js developers patch V8. For example, they patched the version of V8 that they distribute with Node.js v0.10.29 here. This is the patch that added Debian 2015-03-01 comes with Node.js v0.10.29 and the corresponding enum WriteOptions {
NO_OPTIONS = 0,
HINT_MANY_WRITES_EXPECTED = 1,
NO_NULL_TERMINATION = 2,
PRESERVE_ASCII_NULL = 4
};However, I'd imagine that the problem still exists with the versions Node.js and V8 that have be backported from stretch. |
|
This issue is probably inappropriately titled. The title "ref@1.1.0 isn't broken, it's the V8 version being distributed" would be better than "ref@1.1.0 isn't broken, it's the node version being distributed." |
I just tried Before After |
|
Currently rebuilding libv8-3.14 for wheezy/jessie.. |
|
3.14.5.8-10 is now migrated to wheezy/jessie, and we don't need the npm install -g npm hack... npm install bonescript@2.5.0 |
|
Tried it out with bone-debian-8.1-lxqt-4gb-armhf-2015-08-31-4gb.img.xz and was able to install and test |
Should be enough to fix the 2015-03-01 release. (it also needs that to fix cloud9, as the version in that release is busted in chrome. ) |
|
Thanks, I'll give that a try. |
|
./root/.node-gyp is there from the npm packages needed for cloud9... (underneath cloud9 is a mess) Here's what we do: Based on their "install" script: Regards, |
Yes, it is enough to fix the 2015-03-01 release 👍 |
This commit ref@1.1.0 is broken, make sure to install ref@1.0.2 before bonescript appears to assume that ref@1.1.0 is broken and works around the issue for BoneScript. I guess that there was a compile error similar to the following installing ref@1.1.0
If the is the case, then it's not ref@1.1.0 that's broken, it's the version of node v0.10.29 that's is being distributed with Operating Systems like Debian. The Node.js v0.10.29 version being distributed doesn't carry the REPLACE_INVALID_UTF8 patch.
I had a similar issue installing the epoll module. See here for additional information.
The text was updated successfully, but these errors were encountered: