Commit ffc5bcf0 authored by Jérome Perrin's avatar Jérome Perrin

component/nodejs: version up 16.19.0

Set this as default version, there was no default version before.

This also introduce a step to download the tarball headers for node-gyp,
otherwise it will download it directly bypassing libnetworkcache.
parent ffaadd7c
...@@ -12,22 +12,31 @@ extends = ...@@ -12,22 +12,31 @@ extends =
parts = parts =
nodejs nodejs
#[nodejs] [nodejs]
#<= nodejs-X.Y.Z <= nodejs-16.19.0
# nodejs 16 needs gcc > 8.3 # nodejs 16 needs gcc > 8.3
[gcc] [gcc]
min_version = 8.3 min_version = 8.3
[nodejs-16.13.2] [nodejs-16.19.0]
<= nodejs-base <= nodejs-base
openssl_location = ${openssl:location} openssl_location = ${openssl:location}
version = v16.13.2 version = v16.19.0
md5sum = ae3a05fc273536f83c685a7425a7882d md5sum = e72b698681aff62bf17146ad70dc9425
patches = patches =
https://raw.githubusercontent.com/nxhack/openwrt-node-packages/9e3ab4cc9fd5f19c25ccd6f19be5a9b47e2c6933/node/patches/v16.x/010-execvp-arg-list-too-long.patch#17bb14ea3a1b5b4832e3680e4edfeded https://raw.githubusercontent.com/nxhack/openwrt-node-packages/9e3ab4cc9fd5f19c25ccd6f19be5a9b47e2c6933/node/patches/v16.x/010-execvp-arg-list-too-long.patch#17bb14ea3a1b5b4832e3680e4edfeded
patch-options = -p1 patch-options = -p1
PATH = ${pkgconfig:location}/bin:${python3:location}/bin:${patch:location}/bin/:%(PATH)s PATH = ${pkgconfig:location}/bin:${python3:location}/bin:${patch:location}/bin/:%(PATH)s
post-install =
# configure header tarball for node-gyp
# https://stackoverflow.com/a/64052237
@@LOCATION@@/bin/node @@LOCATION@@/bin/npm config set --global tarball ${nodejs-headers-base-16.19.0:target}
[nodejs-headers-base-16.19.0]
<= nodejs-headers-base
version = v16.19.0
md5sum = e7bfbf135ae54d1dcca63bf17be84818
[nodejs-14.16.0] [nodejs-14.16.0]
<= nodejs-base <= nodejs-base
...@@ -81,3 +90,10 @@ environment = ...@@ -81,3 +90,10 @@ environment =
CPPFLAGS=-I${zlib:location}/include CPPFLAGS=-I${zlib:location}/include
LDFLAGS=-Wl,-rpath=${:openssl_location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib LDFLAGS=-Wl,-rpath=${:openssl_location}/lib -L${zlib:location}/lib -Wl,-rpath=${zlib:location}/lib
LD_LIBRARY_PATH=${:openssl_location}/lib LD_LIBRARY_PATH=${:openssl_location}/lib
[nodejs-headers-base]
recipe = slapos.recipe.build:download
shared = true
version =
md5sum =
url = https://nodejs.org/download/release/${:version}/node-${:version}-headers.tar.gz
...@@ -57,8 +57,6 @@ parts = ...@@ -57,8 +57,6 @@ parts =
peertube-build peertube-build
instance-profile instance-profile
[nodejs]
<= nodejs-16.13.2
[peertube] [peertube]
recipe = slapos.recipe.build:download-unpacked recipe = slapos.recipe.build:download-unpacked
......
...@@ -35,8 +35,6 @@ shared-part-list = ...@@ -35,8 +35,6 @@ shared-part-list =
# erp5 inside theia's slapos parts can be shared. # erp5 inside theia's slapos parts can be shared.
max_version = 0 max_version = 0
[nodejs]
<= nodejs-16.13.2
[gowork] [gowork]
install += install +=
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment