package/nodejs: bump version to 12.12.0
PATCH 1/1 package/nodejs: bump version to 12.12.0
Removed libhttpparser dependency as nodejs now uses built in llhttp.
Installed additional build tools to host that are required for target build.
--- package/nodejs/nodejs.hash | 6 +++--- package/nodejs/nodejs.mk | 29 ++++++++++++++++++++++++----- 2 files changed, 27 insertions(+), 8 deletions(-)
package/nodejs/nodejs.hash +3 -3
@@ -1,5 +1,5 @@ -# From https://nodejs.org/dist/v10.16.3/SHASUMS256.txt -sha256 7bf1123d7415964775b8f81fe6ec6dd5c3c08abb42bb71dfe4409dbeeba26bbd node-v10.16.3.tar.xz +# From https://nodejs.org/dist/v12.12.0/SHASUMS256.txt +sha256 d9fa875aba9764f1b919115ce1d5e828b02c2a55a6e9e1b6fc771bb6b24a8cc1 node-v12.12.0.tar.xz # Hash for license file -sha256 2b0fe00a83916d0290c8531db25a827e18d01e7c4bf000e9a0f2e826604ba41e LICENSE +sha256 950bbc741dc021489c47683e34e7637e9b96fb4a1f430b2f77a744130516e293 LICENSE
package/nodejs/nodejs.mk +24 -5
@@ -4,11 +4,11 @@ # ################################################################################ -NODEJS_VERSION = 10.16.3 +NODEJS_VERSION = 12.12.0 NODEJS_SOURCE = node-v$(NODEJS_VERSION).tar.xz NODEJS_SITE = http://nodejs.org/dist/v$(NODEJS_VERSION) NODEJS_DEPENDENCIES = host-python host-nodejs c-ares \ - libhttpparser libuv zlib nghttp2 \ + libuv zlib nghttp2 \ $(call qstrip,$(BR2_PACKAGE_NODEJS_MODULES_ADDITIONAL_DEPS)) HOST_NODEJS_DEPENDENCIES = host-libopenssl host-python host-zlib host-patchelf NODEJS_LICENSE = MIT (core code); MIT, Apache and BSD family licenses (Bundled components)
@@ -18,11 +18,11 @@ NODEJS_CONF_OPTS = \ --without-snapshot \ --shared-zlib \ --shared-cares \ - --shared-http-parser \ --shared-libuv \ --shared-nghttp2 \ --without-dtrace \ --without-etw \ + --cross-compiling \ --dest-os=linux ifeq ($(BR2_PACKAGE_OPENSSL),y)
@@ -64,7 +64,8 @@ define HOST_NODEJS_CONFIGURE_CMDS --shared-openssl-includes=$(HOST_DIR)/include/openssl \ --shared-openssl-libpath=$(HOST_DIR)/lib \ --shared-zlib \ - --with-intl=none \ + --no-cross-compiling \ + --with-intl=small-icu \ ) endef
@@ -76,6 +77,9 @@ define HOST_NODEJS_BUILD_CMDS PATH=$(@D)/bin:$(BR_PATH) $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/torque + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/mkcodecache + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/gen-regexp-special-case + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/bytecode_builtins_list_generator endef define HOST_NODEJS_INSTALL_CMDS
@@ -86,6 +90,9 @@ define HOST_NODEJS_INSTALL_CMDS PATH=$(@D)/bin:$(BR_PATH) $(INSTALL) -m755 -D $(@D)/out/Release/torque $(HOST_DIR)/bin/torque + $(INSTALL) -m755 -D $(@D)/out/Release/mkcodecache $(HOST_DIR)/bin/mkcodecache + $(INSTALL) -m755 -D $(@D)/out/Release/gen-regexp-special-case $(HOST_DIR)/bin/gen-regexp-special-case + $(INSTALL) -m755 -D $(@D)/out/Release/bytecode_builtins_list_generator $(HOST_DIR)/bin/bytecode_builtins_list_generator endef ifeq ($(BR2_i386),y)
@@ -143,7 +150,19 @@ define NODEJS_CONFIGURE_CMDS # use host version of torque sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/torque#" \ - -i $(@D)/deps/v8/gypfiles/v8.gyp + -i $(@D)/tools/v8_gypfiles/v8.gyp + + # use host version of mkcodecache + sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/mkcodecache#" \ + -i $(@D)/node.gyp + + # use host version of gen-regexp-special-case + sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen-regexp-special-case<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/gen-regexp-special-case#" \ + -i $(@D)/tools/v8_gypfiles/v8.gyp + + # use host version of bytecode_builtins_list_generator + sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/bytecode_builtins_list_generator#" \ + -i $(@D)/tools/v8_gypfiles/v8.gyp endef define NODEJS_BUILD_CMDS
Signature · 1 line
2.20.1
PATCH 1/1 package/nodejs: bump version to 12.12.0
Hello,
Martin: since this is a fairly big bump, I'd really like to have your Reviewed-by/Tested-by on this patch. Thanks!
See below some review comments.
Quoted 1 line · On Mon, 14 Oct 2019 08:53:58 -0600 James Hilliard <[email protected]>…
Removed libhttpparser dependency as nodejs now uses built in llhttp.
Then you also need to remove the select BR2_PACKAGE_LIBHTTPPARSER from the Config.in file.
package/nodejs/nodejs.hash line 5
Quoted 7 lines
package/nodejs/nodejs.hash +3
-2-sha256 7bf1123d7415964775b8f81fe6ec6dd5c3c08abb42bb71dfe4409dbeeba26bbd node-v10.16.3.tar.xz +# From https://nodejs.org/dist/v12.12.0/SHASUMS256.txt +sha256 d9fa875aba9764f1b919115ce1d5e828b02c2a55a6e9e1b6fc771bb6b24a8cc1 node-v12.12.0.tar.xz # Hash for license file -sha256 2b0fe00a83916d0290c8531db25a827e18d01e7c4bf000e9a0f2e826604ba41e LICENSE +sha256 950bbc741dc021489c47683e34e7637e9b96fb4a1f430b2f77a744130516e293 LICENSE
Changes in the LICENSE file need to be described/justified in the commit log.
package/nodejs/nodejs.mk line 11
Quoted 3 lines
NODEJS_DEPENDENCIES= host-python host-nodejs c-ares \package/nodejs/nodejs.mk +1
-1- libhttpparser libuv zlib nghttp2 \ + libuv zlib nghttp2 \
As said above, this needs adjustment in the Config.in file.
Quoted 28 lines
package/nodejs/nodejs.mk +9
-1@@ -76,6 +77,9 @@ define HOST_NODEJS_BUILD_CMDS PATH=$(@D)/bin:$(BR_PATH) $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/torque + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/mkcodecache + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/gen-regexp-special-case + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/bytecode_builtins_list_generator endef define HOST_NODEJS_INSTALL_CMDS@@ -86,6 +90,9 @@ define HOST_NODEJS_INSTALL_CMDS PATH=$(@D)/bin:$(BR_PATH) $(INSTALL) -m755 -D $(@D)/out/Release/torque $(HOST_DIR)/bin/torque + $(INSTALL) -m755 -D $(@D)/out/Release/mkcodecache $(HOST_DIR)/bin/mkcodecache + $(INSTALL) -m755 -D $(@D)/out/Release/gen-regexp-special-case $(HOST_DIR)/bin/gen-regexp-special-case + $(INSTALL) -m755 -D $(@D)/out/Release/bytecode_builtins_list_generator $(HOST_DIR)/bin/bytecode_builtins_list_generator endef ifeq ($(BR2_i386),y)@@ -143,7 +150,19 @@ define NODEJS_CONFIGURE_CMDS # use host version of torque sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/torque#" \ - -i $(@D)/deps/v8/gypfiles/v8.gyp + -i $(@D)/tools/v8_gypfiles/v8.gyp + + # use host version of mkcodecache
package/nodejs/nodejs.mk define NODEJS_CONFIGURE_CMDS · line 165
Quoted 10 lines
package/nodejs/nodejs.mk +10
-0+ sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/mkcodecache#" \ + -i $(@D)/node.gyp + + # use host version of gen-regexp-special-case + sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen-regexp-special-case<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/gen-regexp-special-case#" \ + -i $(@D)/tools/v8_gypfiles/v8.gyp + + # use host version of bytecode_builtins_list_generator + sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/bytecode_builtins_list_generator#" \ + -i $(@D)/tools/v8_gypfiles/v8.gyp
All this stuff really calls for a bit of factorization:
NODEJS_HOST_TOOLS = \ torque \ mkcodecache \ gen-regexp-special-case \ bytecode_builtins_list_generator
then:
$(foreach f,$(NODEJS_HOST_TOOLS), \ $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/$(f)) )
and:
$(foreach f,$(NODEJS_HOST_TOOLS), \ $(INSTALL) -m755 -D $(@D)/out/Release/$(f) $(HOST_DIR)/bin/$(f) )
and finally:
$(foreach f,$(NODEJS_HOST_TOOLS), \ $(SED) "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)$(f)<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/$(f)#" \ $(@D)/tools/v8_gypfiles/v8.gyp )
Could you take into account those comments and resubmit ?
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 package/nodejs: bump version to 12.12.0
Hi,
Quoted 5 lines · Thomas Petazzoni
Hello,
Martin: since this is a fairly big bump, I'd really like to have your Reviewed-by/Tested-by on this patch. Thanks!
We decided to stick the the LTS version of nodejs in buildroot. The active LTS version is 10.16.3. 12.x is due to become the active LTS version next week. I think we should just wait until then before bumping the version.
Thanks
Martin
Quoted 101 lines
See below some review comments.
Quoted 1 line · On Mon, 14 Oct 2019 08:53:58 -0600 James Hilliard <[email protected]>…
Removed libhttpparser dependency as nodejs now uses built in llhttp.
Then you also need to remove the select
BR2_PACKAGE_LIBHTTPPARSERfrom the Config.in file.package/nodejs/nodejs.hash line 5
Quoted 7 lines
package/nodejs/nodejs.hash +3
-2-sha256 7bf1123d7415964775b8f81fe6ec6dd5c3c08abb42bb71dfe4409dbeeba26bbd node-v10.16.3.tar.xz +# From https://nodejs.org/dist/v12.12.0/SHASUMS256.txt +sha256 d9fa875aba9764f1b919115ce1d5e828b02c2a55a6e9e1b6fc771bb6b24a8cc1 node-v12.12.0.tar.xz # Hash for license file -sha256 2b0fe00a83916d0290c8531db25a827e18d01e7c4bf000e9a0f2e826604ba41e LICENSE +sha256 950bbc741dc021489c47683e34e7637e9b96fb4a1f430b2f77a744130516e293 LICENSEChanges in the LICENSE file need to be described/justified in the commit log.
package/nodejs/nodejs.mk line 11
Quoted 3 lines
NODEJS_DEPENDENCIES= host-python host-nodejs c-ares \package/nodejs/nodejs.mk +1
-1- libhttpparser libuv zlib nghttp2 \ + libuv zlib nghttp2 \As said above, this needs adjustment in the Config.in file.
Quoted 28 lines
package/nodejs/nodejs.mk +9
-1@@ -76,6 +77,9 @@ define HOST_NODEJS_BUILD_CMDS PATH=$(@D)/bin:$(BR_PATH) $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/torque + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/mkcodecache + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/gen-regexp-special-case + $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/bytecode_builtins_list_generator endef define HOST_NODEJS_INSTALL_CMDS@@ -86,6 +90,9 @@ define HOST_NODEJS_INSTALL_CMDS PATH=$(@D)/bin:$(BR_PATH) $(INSTALL) -m755 -D $(@D)/out/Release/torque $(HOST_DIR)/bin/torque + $(INSTALL) -m755 -D $(@D)/out/Release/mkcodecache $(HOST_DIR)/bin/mkcodecache + $(INSTALL) -m755 -D $(@D)/out/Release/gen-regexp-special-case $(HOST_DIR)/bin/gen-regexp-special-case + $(INSTALL) -m755 -D $(@D)/out/Release/bytecode_builtins_list_generator $(HOST_DIR)/bin/bytecode_builtins_list_generator endef ifeq ($(BR2_i386),y)@@ -143,7 +150,19 @@ define NODEJS_CONFIGURE_CMDS # use host version of torque sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)torque<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/torque#" \ - -i $(@D)/deps/v8/gypfiles/v8.gyp + -i $(@D)/tools/v8_gypfiles/v8.gyp + + # use host version of mkcodecachepackage/nodejs/nodejs.mk define NODEJS_CONFIGURE_CMDS · line 165
Quoted 10 lines
package/nodejs/nodejs.mk +10
-0+ sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/mkcodecache#" \ + -i $(@D)/node.gyp + + # use host version of gen-regexp-special-case + sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)gen-regexp-special-case<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/gen-regexp-special-case#" \ + -i $(@D)/tools/v8_gypfiles/v8.gyp + + # use host version of bytecode_builtins_list_generator + sed "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)bytecode_builtins_list_generator<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/bytecode_builtins_list_generator#" \ + -i $(@D)/tools/v8_gypfiles/v8.gypAll this stuff really calls for a bit of factorization:
NODEJS_HOST_TOOLS = \ torque \ mkcodecache \ gen-regexp-special-case \ bytecode_builtins_list_generatorthen:
$(foreach f,$(NODEJS_HOST_TOOLS), \ $(HOST_DIR)/bin/patchelf --set-rpath $(HOST_DIR)/lib $(@D)/out/Release/$(f)) )and:
$(foreach f,$(NODEJS_HOST_TOOLS), \ $(INSTALL) -m755 -D $(@D)/out/Release/$(f) $(HOST_DIR)/bin/$(f) )and finally:
$(foreach f,$(NODEJS_HOST_TOOLS), \ $(SED) "s#<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)$(f)<(EXECUTABLE_SUFFIX)#$(HOST_DIR)/bin/$(f)#" \ $(@D)/tools/v8_gypfiles/v8.gyp )Could you take into account those comments and resubmit ?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
PATCH 1/1 package/nodejs: bump version to 12.12.0
Hello Martin,
Quoted 7 lines · On Tue, 15 Oct 2019 18:57:54 +0100 Martin Bark <[email protected]> wrote:
Quoted 2 lines
Martin: since this is a fairly big bump, I'd really like to have your Reviewed-by/Tested-by on this patch. Thanks!
We decided to stick the the LTS version of nodejs in buildroot. The active LTS version is 10.16.3. 12.x is due to become the active LTS version next week. I think we should just wait until then before bumping the version.
If 12.x is going to become the next LTS starting from next week, then it means it will be ready for the 2019.11 release, so we should rather have it as soon as possible in Buildroot, to give it as much testing time as possible.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com