Skip to contentSkip to conversation

package/nodejs: add icu support

PATCH New Martin Bark 2 participants 5 messages Jun 3, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/nodejs: add icu support

---
 package/nodejs/nodejs.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/nodejs/nodejs.mk +5 -0
index b0661ed..0329299 100644
@@ -17,6 +17,10 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y)
 NODEJS_DEPENDENCIES += openssl
 endif
 
+ifeq ($(BR2_PACKAGE_ICU),y)
+NODEJS_DEPENDENCIES += icu
+endif
+
 # nodejs build system is based on python, but only support python-2.6 or
 # python-2.7. So, we have to enforce PYTHON interpreter to be python2.
 define HOST_NODEJS_CONFIGURE_CMDS
@@ -96,6 +100,7 @@ define NODEJS_CONFIGURE_CMDS
 		--without-snapshot \
 		--shared-zlib \
 		$(if $(BR2_PACKAGE_OPENSSL),--shared-openssl,--without-ssl) \
+		$(if $(BR2_PACKAGE_ICU),--with-intl=system-icu,--with-intl=none) \
 		$(if $(BR2_PACKAGE_NODEJS_NPM),,--without-npm) \
 		--without-dtrace \
 		--without-etw \
Signature · 1 line
2.7.4
#1 lore raw

PATCH 2/2 package/nodejs: bump version to 6.2.1

See https://nodejs.org/en/blog/release/v6.2.1/

---
 .../{6.1.0 => 6.2.1}/0001-gyp-force-link-command-to-use-CXX.patch     | 0
 package/nodejs/Config.in                                              | 2 +-
 package/nodejs/nodejs.hash                                            | 4 ++--
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename package/nodejs/{6.1.0 => 6.2.1}/0001-gyp-force-link-command-to-use-CXX.patch (100%)
package/nodejs/6.2.1/0001-gyp-force-link-command-to-use-CXX.patch renamed from package/nodejs/6.1.0/0001-gyp-force-link-command-to-use-CXX.patch +0 -0
similarity index 100%
rename from package/nodejs/6.1.0/0001-gyp-force-link-command-to-use-CXX.patch
rename to package/nodejs/6.2.1/0001-gyp-force-link-command-to-use-CXX.patch
package/nodejs/Config.in +1 -1
index 70dacc8..432792f 100644
@@ -43,7 +43,7 @@ config BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
 
 config BR2_PACKAGE_NODEJS_VERSION_STRING
 	string
-	default "6.1.0"		if BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
+	default "6.2.1"		if BR2_PACKAGE_NODEJS_V8_ARCH_SUPPORTS
 	default "0.10.45"
 
 menu "Module Selection"
package/nodejs/nodejs.hash +2 -2
index f417df2..9fce2f5 100644
@@ -1,5 +1,5 @@
 # From upstream URL: http://nodejs.org/dist/v0.10.45/SHASUMS256.txt
 sha256  a71070ea7aece9c94450b45102f2d1be42f0add168dd9c9701e9032d363bd4fa  node-v0.10.45.tar.xz
 
-# From upstream URL: http://nodejs.org/dist/v6.1.0/SHASUMS256.txt
-sha256  c7940301917232527490a166df78f9d3d58e70e10fd502f73889d936763cfe84  node-v6.1.0.tar.xz
+# From upstream URL: http://nodejs.org/dist/v6.2.1/SHASUMS256.txt
+sha256  dbaeb8fb68a599e5164b17c74f66d24f424ee4ab3a25d8de8a3c6808e5b42bfb  node-v6.2.1.tar.xz
Signature · 1 line
2.7.4
#2 lore raw

PATCH 2/2 package/nodejs: bump version to 6.2.1

Hello,

Quoted 9 lines · Martin Bark

See https://nodejs.org/en/blog/release/v6.2.1/

---
 .../{6.1.0 => 6.2.1}/0001-gyp-force-link-command-to-use-CXX.patch     | 0
 package/nodejs/Config.in                                              | 2 +-
 package/nodejs/nodejs.hash                                            | 4 ++--
 3 files changed, 3 insertions(+), 3 deletions(-)
 rename package/nodejs/{6.1.0 => 6.2.1}/0001-gyp-force-link-command-to-use-CXX.patch (100%)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#3 lore raw

PATCH 1/2 package/nodejs: add icu support

In reply to Martin Bark

Hello,

Quoted 21 lines · Martin Bark
---
 package/nodejs/nodejs.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/nodejs/nodejs.mk +4 -0
index b0661ed..0329299 100644
@@ -17,6 +17,10 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y)
 NODEJS_DEPENDENCIES += openssl
 endif
 
+ifeq ($(BR2_PACKAGE_ICU),y)
+NODEJS_DEPENDENCIES += icu
+endif
+
 # nodejs build system is based on python, but only support python-2.6 or
 # python-2.7. So, we have to enforce PYTHON interpreter to be python2.
 define HOST_NODEJS_CONFIGURE_CMDS

package/nodejs/nodejs.mk define NODEJS_CONFIGURE_CMDS · line 106

Quoted 7 lines
package/nodejs/nodejs.mk +1 -0
@@ -96,6 +100,7 @@ define NODEJS_CONFIGURE_CMDS
 		--without-snapshot \
 		--shared-zlib \
 		$(if $(BR2_PACKAGE_OPENSSL),--shared-openssl,--without-ssl) \
+		$(if $(BR2_PACKAGE_ICU),--with-intl=system-icu,--with-intl=none) \
 		$(if $(BR2_PACKAGE_NODEJS_NPM),,--without-npm) \
 		--without-dtrace \
 		--without-etw \

I've applied, because it's already done this way for OpenSSL. But I prefer when the dependency and the configure option is added at the same place, i.e

ifeq ($(BR2_PACKAGE_ICU),y)
NODEJS_DEPENDENCIES += icu
NODEJS_CONF_OPTS += --with-intl=system-icu
else
NODEJS_CONF_OPTS += --with-intl=none
endif

If you want to improve this in nodejs.mk, don't hesitate to send a follow-up patch. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#4 lore raw

PATCH 1/2 package/nodejs: add icu support

Thomas,

Quoted 43 lines · Thomas Petazzoni

Hello,

Quoted 21 lines · Martin Bark
---
 package/nodejs/nodejs.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/nodejs/nodejs.mk +4 -0
index b0661ed..0329299 100644
@@ -17,6 +17,10 @@ ifeq ($(BR2_PACKAGE_OPENSSL),y)
 NODEJS_DEPENDENCIES += openssl
 endif
 
+ifeq ($(BR2_PACKAGE_ICU),y)
+NODEJS_DEPENDENCIES += icu
+endif
+
 # nodejs build system is based on python, but only support python-2.6 or
 # python-2.7. So, we have to enforce PYTHON interpreter to be python2.
 define HOST_NODEJS_CONFIGURE_CMDS

package/nodejs/nodejs.mk define NODEJS_CONFIGURE_CMDS · line 106

Quoted 7 lines
package/nodejs/nodejs.mk +1 -0
@@ -96,6 +100,7 @@ define NODEJS_CONFIGURE_CMDS
              --without-snapshot \
              --shared-zlib \
              $(if $(BR2_PACKAGE_OPENSSL),--shared-openssl,--without-ssl) \
+             $(if $(BR2_PACKAGE_ICU),--with-intl=system-icu,--with-intl=none) \
              $(if $(BR2_PACKAGE_NODEJS_NPM),,--without-npm) \
              --without-dtrace \
              --without-etw \

I've applied, because it's already done this way for OpenSSL. But I prefer when the dependency and the configure option is added at the same place, i.e

ifeq ($(BR2_PACKAGE_ICU),y)
NODEJS_DEPENDENCIES += icu
NODEJS_CONF_OPTS += --with-intl=system-icu
else
NODEJS_CONF_OPTS += --with-intl=none
endif

Quoted 2 lines

If you want to improve this in nodejs.mk, don't hesitate to send a follow-up patch. Thanks!

I just submitted a patch set to fix this

Thanks

Martin

Quoted 6 lines

Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com