[packages/nodejs] up to 16.10.0
atler
atler at pld-linux.org
Tue Oct 5 13:53:10 CEST 2021
commit 2ae41f2b1b082f162c830073c7b48103cfc393b9
Author: Jan Palus <atler at pld-linux.org>
Date: Tue Oct 5 13:48:07 2021 +0200
up to 16.10.0
nodejs v16 becomes LTS on 2021-10-26 but push it ahead of time as it
ships fixes for openssl 3.0
0001-Disable-running-gyp-on-shared-deps.patch | 12 ------------
0002-Install-both-binaries-and-use-libdir.patch | 4 ++--
nodejs-lib64path.patch | 4 ++--
nodejs-libpath.patch | 4 ++--
nodejs.spec | 18 +++++++++---------
5 files changed, 15 insertions(+), 27 deletions(-)
---
diff --git a/nodejs.spec b/nodejs.spec
index 4bc4bc3..43983cd 100644
--- a/nodejs.spec
+++ b/nodejs.spec
@@ -17,7 +17,7 @@
# add-on binaries can be loaded in to without needing to be re-compiled. It
# used to be stored as hex value in earlier versions, but is now represented as
# an integer.
-%define node_module_version 83
+%define node_module_version 93
Summary: Asynchronous JavaScript Engine
Summary(pl.UTF-8): Asynchroniczny silnik JavaScriptu
Name: nodejs
@@ -25,12 +25,12 @@ Name: nodejs
# Active start: 2020-10-27
# Maintenance start: October 2020
# Maintenance end: April 2023
-Version: 14.17.5
+Version: 16.10.0
Release: 1
License: BSD and MIT and Apache v2.0 and GPL v3
Group: Development/Languages
Source0: https://nodejs.org/dist/v%{version}/node-v%{version}.tar.gz
-# Source0-md5: 1e42a4be9a1983f60d97038435b010ce
+# Source0-md5: 8c5f13de865ad83d4d759414fe12e261
Patch0: system_cares.patch
# force node to use /usr/lib/node as the systemwide module directory
Patch2: %{name}-libpath.patch
@@ -49,14 +49,14 @@ BuildRequires: llhttp-devel >= 2.1.3
BuildRequires: libatomic-devel
%endif
%{?with_system_brotli:BuildRequires: libbrotli-devel >= 1.0.9}
-BuildRequires: libicu-devel >= 67
+BuildRequires: libicu-devel >= 69.1
BuildRequires: libstdc++-devel >= 6:4.8
-%{?with_system_uv:BuildRequires: libuv-devel >= 1.41.0}
+%{?with_system_uv:BuildRequires: libuv-devel >= 1.42.0}
BuildRequires: nghttp2-devel >= 1.42.0
BuildRequires: openssl-devel >= 1.0.1
BuildRequires: pkgconfig
-BuildRequires: python3
-BuildRequires: python3-modules
+BuildRequires: python3 >= 1:3.6
+BuildRequires: python3-modules >= 1:3.6
BuildRequires: rpm >= 4.4.9-56
BuildRequires: rpmbuild(macros) >= 1.752
BuildRequires: sed >= 4.0
@@ -65,7 +65,7 @@ Requires: c-ares >= 1.17.1
Requires: ca-certificates
%{?with_http_parser:Requires: http-parser >= 2.9.3}
%{?with_system_brotli:Requires: libbrotli >= 1.0.9}
-%{?with_system_uv:Requires: libuv >= 1.41.0}
+%{?with_system_uv:Requires: libuv >= 1.42.0}
Requires: nghttp2-libs >= 1.42.0
Requires: zlib >= 1.2.11
Provides: nodejs(engine) = %{version}
@@ -102,7 +102,7 @@ Requires: %{name} = %{version}-%{release}
Requires: gcc
%{?with_http_parser:Requires: http-parser-devel >= 2.9.3}
Requires: libstdc++-devel
-%{?with_system_uv:Requires: libuv-devel >= 1.41.0}
+%{?with_system_uv:Requires: libuv-devel >= 1.42.0}
Requires: openssl-devel
Requires: zlib-devel >= 1.2.11
diff --git a/0001-Disable-running-gyp-on-shared-deps.patch b/0001-Disable-running-gyp-on-shared-deps.patch
index ea84738..9798dc1 100644
--- a/0001-Disable-running-gyp-on-shared-deps.patch
+++ b/0001-Disable-running-gyp-on-shared-deps.patch
@@ -27,15 +27,3 @@ index 0947300f24028d00bcfb79b38d96bded136228e3..5d4f88a705053fbdd6b56ec85e999767
--
2.23.0
---- node-v12.16.1/deps/uvwasi/uvwasi.gyp.orig 2020-02-18 06:08:33.000000000 +0100
-+++ node-v12.16.1/deps/uvwasi/uvwasi.gyp 2020-03-21 17:51:55.372551818 +0100
-@@ -14,9 +14,6 @@
- 'src/wasi_rights.c',
- 'src/wasi_serdes.c',
- ],
-- 'dependencies': [
-- '../uv/uv.gyp:libuv',
-- ],
- 'direct_dependent_settings': {
- 'include_dirs': ['include']
- },
diff --git a/0002-Install-both-binaries-and-use-libdir.patch b/0002-Install-both-binaries-and-use-libdir.patch
index eb589ea..4ce85c2 100644
--- a/0002-Install-both-binaries-and-use-libdir.patch
+++ b/0002-Install-both-binaries-and-use-libdir.patch
@@ -20,13 +20,13 @@ index 20cce214dbb113aeef8f1044d7af88d842a11fd7..e2d78a2a51ef81621618cb20fa76f4a1
help='compile shared library for embedding node in another project. ' +
'(This mode is not officially supported for regular applications)')
-+parser.add_option('--libdir',
++parser.add_argument('--libdir',
+ action='store',
+ dest='libdir',
+ default='lib',
+ help='a directory to install the shared library into')
+
- parser.add_option('--without-v8-platform',
+ parser.add_argument('--without-v8-platform',
action='store_true',
dest='without_v8_platform',
@@ -1103,6 +1109,7 @@ def configure_node(o):
diff --git a/nodejs-lib64path.patch b/nodejs-lib64path.patch
index 1b348a4..b591933 100644
--- a/nodejs-lib64path.patch
+++ b/nodejs-lib64path.patch
@@ -4,8 +4,8 @@
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');
-- let paths = [path.resolve(prefixDir, 'lib', 'node')];
-+ let paths = ["/usr/lib64/node", "/usr/lib/node", "/usr/lib/node_modules", path.resolve(prefixDir, 'lib', 'node')];
+- const paths = [path.resolve(prefixDir, 'lib', 'node')];
++ const paths = ["/usr/lib64/node", "/usr/lib/node", "/usr/lib/node_modules", path.resolve(prefixDir, 'lib', 'node')];
if (homeDir) {
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
diff --git a/nodejs-libpath.patch b/nodejs-libpath.patch
index 272c6e3..4025b9e 100644
--- a/nodejs-libpath.patch
+++ b/nodejs-libpath.patch
@@ -4,8 +4,8 @@
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');
-- let paths = [path.resolve(prefixDir, 'lib', 'node')];
-+ let paths = ["/usr/lib/node", "/usr/lib/node_modules", path.resolve(prefixDir, 'lib', 'node')];
+- const paths = [path.resolve(prefixDir, 'lib', 'node')];
++ const paths = ["/usr/lib/node", "/usr/lib/node_modules", path.resolve(prefixDir, 'lib', 'node')];
if (homeDir) {
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nodejs.git/commitdiff/2ae41f2b1b082f162c830073c7b48103cfc393b9
More information about the pld-cvs-commit
mailing list