-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Node: update error & fix compile error #3751
Conversation
I have no problem grabbing it. I also add @jow- as we were discussing this package as a possible host dependency for LuCI-NG. |
@ianchi Thank you. I agree go to v6.x. |
I think that both PR need to be integrated. |
@diizzyy This Makefile is based on @artynet edition : https://github.com/artynet/openwrt-git/tree/openwrt-1505-setup-03/package/linino/node7 |
@nxhack, your ICU package is already integrated and now node is compiling OK. My only doubt is why are you making node dependent on node/host itself? I was able to build it without this dependency |
Another comment, ICU package is huge (11mb final ipk), I think the default option should be with no i18n. |
My version-selectable package has following problems. Packages are not built except for selected version. Therefore, the package user can not use the desired version of the package. The reason that "node/host" is in "PKG_BUILD_DEPENDS" is need for building v7.x. "--with-intl" is preferably "none" by default. Because it is important that the embedded system has a small footprint. |
And host-build is better "--with-intl=none". |
For small footprints, it may be better to have "v4.x" too. |
Hi @nxhack, some comments:
I agree with "--with-intl" set to "none" by default. Regarding version selection, perhaps it is best to define two variants of the package: leave "node" as the latest LTS version (v6 at this time), and add another "node_edge" (or something similar) for the latest version (v7 at this moment). |
Let's see : nodejs/node#9707
It might be better to create a simple version selection mechanism like 'n'. |
5353003 bytes node_v4.7.3-1_mips_24kc.ipk |
Weird issue regarding host dependency, but it is a good workaround. Regarding versions, ICU must surely be left out of the default builds. Having a separate package per version might be a good option, but it can't be sustained with each major version changing once a year. |
Roger. And there was an update 6 days ago. |
lang/node/Makefile
Outdated
ifneq ($(findstring neon,$(CPU_SUBTYPE)),) | ||
CONFIGURE_ARGS+= --with-arm-fpu=neon | ||
endif | ||
|
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.
-
Sorry I made mistake. it was 'CONFIG_CPU_TYPE', not 'CPU_SUBTYPE.'
-
To prevent matching to unexpected strings, only use 'neon' and 'vfpv3'
('vfp' is default value)
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 would suggest to only take the version 6 or 7 or even more recent and do not care about th older versions. Please also rebase this pull request.
lang/node/Makefile
Outdated
|
||
config NODEJS_ICU | ||
bool "enable i18n features" | ||
default y |
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.
Please make this default to n
f4bcdf0
to
9e208ee
Compare
Rebased and bumped to 6.11, which is the current LTS. Anyway, I think we should at least finally move to v6. |
Hi any comments on this? |
Hi @blogic, any comments to merge this so to move Node to V6? |
Hello @ianchi, please don't hesitate to ping me if you ever need help for the node v8.x.x release series. I will test in a few hours the build for ar71xx and x86 systems. Best, Arturo |
@ianchi |
@iachi @nxhack please take a look at my new Makefile for node v8.4.0 build : https://github.com/artynet/LEDE/blob/linino-32/package/linino/node8/Makefile and instead of HOST build I would suggest the download of a binary tarball as done starting from here : https://github.com/artynet/LEDE/blob/linino-32/package/linino/node/Makefile#L57 please let me know your opinions about it. It would save a lot of build time and cpu load every time.... |
Bump version to 6.11.0 Add ICU dependency when using i18n Tweak fpu configs Signed-off-by: Adrian Panella <[email protected]>
Signed-off-by: Adrian Panella <[email protected]>
Signed-off-by: Adrian Panella <[email protected]>
@hnyman I added myself as maintainer. (and updated minor version in the process) @artynet, as I said before, I'd like to finally get this merged and Node updated to v6 (current LTS). PD: @hnyman if you are involved with Travis CI checks, please note that initially it was marked as passed even though it was failing when applying patches. (as I missed pushing a commit) |
@artynet IMO, use of binary distributions instead of doing a host build should be avoided. In particular, it would limit the usable host platforms. |
I agree that bootstrapping the host build from source is preferable but for local development it would be great to provide the possibility to rely on binary distribution. Maybe a menuconfig item could be provided, possibly defaulting on CONFIG_DEVEL |
This could be complemented with a fallback to a full host build dependency if the host machine arch is not listed in the distributed ones, so that no platform is left out. Some will simply not benefit from the performance gain. Anyhow, lets please move that discussion to a new PR after we finally take the first (easier) step of merging this one to go to v6, keeping the building logic as it was. |
Agreed. |
Compile tested: ipq806x / EA8500
Run tested: ipq806x / EA8500
Description: update version and fix compile error.