Browse Source

upgrading package: node 16.13.0 -> 17.2.0

master
parent
commit
3764f009c7
  1. 127
      node/node.patch
  2. 10
      node/node.spec

127
node/node.patch

@ -1,7 +1,7 @@
Index: common.gypi
--- common.gypi.orig 2021-09-10 19:25:10.000000000 +0200
+++ common.gypi 2021-09-10 23:37:08.005336000 +0200
@@ -177,7 +177,7 @@
--- common.gypi.orig 2021-10-19 02:48:27.000000000 +0200
+++ common.gypi 2021-10-19 22:18:02.335430000 +0200
@@ -168,7 +168,7 @@
}],
],
},
@ -10,16 +10,16 @@ Index: common.gypi
'conditions': [
['enable_lto=="true"', {
'cflags': ['<(lto)'],
@@ -384,7 +384,7 @@
@@ -379,7 +379,7 @@
'ldflags': [ '-pthread' ],
}],
[ 'OS in "linux freebsd openbsd solaris android aix cloudabi"', {
- 'cflags': [ '-Wall', '-Wextra', '-Wno-unused-parameter', ],
+ 'cflags': [ '-Wno-unused-parameter', ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++14' ],
'cflags_cc': [ '-fno-rtti', '-fno-exceptions', '-std=gnu++17' ],
'defines': [ '__STDC_FORMAT_MACROS' ],
'ldflags': [ '-rdynamic' ],
@@ -496,10 +496,7 @@
@@ -491,10 +491,7 @@
'-fno-strict-aliasing',
],
'WARNING_CFLAGS': [
@ -32,8 +32,8 @@ Index: common.gypi
},
'target_conditions': [
Index: deps/uv/common.gypi
--- deps/uv/common.gypi.orig 2021-09-10 19:25:12.000000000 +0200
+++ deps/uv/common.gypi 2021-09-10 23:37:08.005487000 +0200
--- deps/uv/common.gypi.orig 2021-10-19 02:48:29.000000000 +0200
+++ deps/uv/common.gypi 2021-10-19 20:22:29.018910000 +0200
@@ -46,7 +46,7 @@
'Release': {
'defines': [ 'NDEBUG' ],
@ -44,8 +44,8 @@ Index: deps/uv/common.gypi
'msvs_settings': {
'VCCLCompilerTool': {
Index: deps/uv/uv.gyp
--- deps/uv/uv.gyp.orig 2021-09-10 19:25:12.000000000 +0200
+++ deps/uv/uv.gyp 2021-09-10 23:37:08.005626000 +0200
--- deps/uv/uv.gyp.orig 2021-10-19 02:48:30.000000000 +0200
+++ deps/uv/uv.gyp 2021-10-19 20:22:29.019044000 +0200
@@ -178,7 +178,7 @@
'src/unix/udp.c',
],
@ -56,8 +56,8 @@ Index: deps/uv/uv.gyp
['OS=="solaris"', {
'ldflags': [ '-pthreads' ],
Index: deps/v8/src/base/numbers/bignum.cc
--- deps/v8/src/base/numbers/bignum.cc.orig 2021-09-10 19:25:12.000000000 +0200
+++ deps/v8/src/base/numbers/bignum.cc 2021-09-10 23:37:08.005799000 +0200
--- deps/v8/src/base/numbers/bignum.cc.orig 2021-10-19 02:48:30.000000000 +0200
+++ deps/v8/src/base/numbers/bignum.cc 2021-10-19 20:22:29.019209000 +0200
@@ -5,6 +5,7 @@
#include "src/base/numbers/bignum.h"
@ -67,8 +67,8 @@ Index: deps/v8/src/base/numbers/bignum.cc
namespace v8 {
namespace base {
Index: deps/v8/src/base/platform/platform-freebsd.cc
--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2021-09-10 19:25:12.000000000 +0200
+++ deps/v8/src/base/platform/platform-freebsd.cc 2021-09-10 23:37:08.005938000 +0200
--- deps/v8/src/base/platform/platform-freebsd.cc.orig 2021-10-19 02:48:30.000000000 +0200
+++ deps/v8/src/base/platform/platform-freebsd.cc 2021-10-19 20:22:29.019319000 +0200
@@ -28,6 +28,7 @@
#include <strings.h> // index
@ -78,8 +78,8 @@ Index: deps/v8/src/base/platform/platform-freebsd.cc
#undef MAP_TYPE
Index: deps/v8/src/base/strings.h
--- deps/v8/src/base/strings.h.orig 2021-09-10 19:25:12.000000000 +0200
+++ deps/v8/src/base/strings.h 2021-09-10 23:39:13.614609000 +0200
--- deps/v8/src/base/strings.h.orig 2021-10-19 02:48:30.000000000 +0200
+++ deps/v8/src/base/strings.h 2021-10-19 20:22:29.019417000 +0200
@@ -8,6 +8,7 @@
#include "src/base/base-export.h"
#include "src/base/macros.h"
@ -89,8 +89,8 @@ Index: deps/v8/src/base/strings.h
namespace v8 {
namespace base {
Index: deps/v8/src/wasm/wasm-result.cc
--- deps/v8/src/wasm/wasm-result.cc.orig 2021-09-10 19:25:12.000000000 +0200
+++ deps/v8/src/wasm/wasm-result.cc 2021-09-10 23:37:08.006059000 +0200
--- deps/v8/src/wasm/wasm-result.cc.orig 2021-10-19 02:48:30.000000000 +0200
+++ deps/v8/src/wasm/wasm-result.cc 2021-10-19 20:22:29.019525000 +0200
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@ -101,9 +101,9 @@ Index: deps/v8/src/wasm/wasm-result.cc
#include "src/base/platform/platform.h"
Index: lib/dns.js
--- lib/dns.js.orig 2021-09-10 19:25:14.000000000 +0200
+++ lib/dns.js 2021-09-10 23:37:08.006184000 +0200
@@ -154,6 +154,10 @@
--- lib/dns.js.orig 2021-10-19 02:48:32.000000000 +0200
+++ lib/dns.js 2021-10-19 20:22:29.019652000 +0200
@@ -169,6 +169,10 @@
req.hostname = hostname;
req.oncomplete = all ? onlookupall : onlookup;
@ -115,9 +115,9 @@ Index: lib/dns.js
req, toASCII(hostname), family, hints, verbatim
);
Index: lib/internal/modules/cjs/loader.js
--- lib/internal/modules/cjs/loader.js.orig 2021-09-10 19:25:14.000000000 +0200
+++ lib/internal/modules/cjs/loader.js 2021-09-10 23:37:08.006399000 +0200
@@ -1234,7 +1234,10 @@
--- lib/internal/modules/cjs/loader.js.orig 2021-10-19 02:48:32.000000000 +0200
+++ lib/internal/modules/cjs/loader.js 2021-10-19 20:22:29.019864000 +0200
@@ -1228,7 +1228,10 @@
path.resolve(process.execPath, '..') :
path.resolve(process.execPath, '..', '..');
@ -130,8 +130,8 @@ Index: lib/internal/modules/cjs/loader.js
if (homeDir) {
ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
Index: src/crypto/crypto_aes.cc
--- src/crypto/crypto_aes.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_aes.cc 2021-09-10 23:37:08.006540000 +0200
--- src/crypto/crypto_aes.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_aes.cc 2021-10-19 20:22:29.020008000 +0200
@@ -10,8 +10,8 @@
#include "threadpoolwork-inl.h"
#include "v8.h"
@ -144,8 +144,8 @@ Index: src/crypto/crypto_aes.cc
#include <vector>
Index: src/crypto/crypto_bio.cc
--- src/crypto/crypto_bio.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_bio.cc 2021-09-10 23:37:08.006664000 +0200
--- src/crypto/crypto_bio.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_bio.cc 2021-10-19 20:22:29.020131000 +0200
@@ -25,7 +25,7 @@
#include "allocated_buffer-inl.h"
#include "util-inl.h"
@ -156,8 +156,8 @@ Index: src/crypto/crypto_bio.cc
#include <climits>
#include <cstring>
Index: src/crypto/crypto_common.cc
--- src/crypto/crypto_common.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_common.cc 2021-09-10 23:37:08.006848000 +0200
--- src/crypto/crypto_common.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_common.cc 2021-10-19 20:22:29.020302000 +0200
@@ -11,14 +11,14 @@
#include "memory_tracker-inl.h"
#include "v8.h"
@ -182,8 +182,8 @@ Index: src/crypto/crypto_common.cc
#include <string>
#include <unordered_map>
Index: src/crypto/crypto_common.h
--- src/crypto/crypto_common.h.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_common.h 2021-09-10 23:37:08.006952000 +0200
--- src/crypto/crypto_common.h.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_common.h 2021-10-19 20:22:29.020402000 +0200
@@ -5,8 +5,8 @@
#include "node_crypto.h"
@ -196,8 +196,8 @@ Index: src/crypto/crypto_common.h
#include <string>
#include <unordered_map>
Index: src/crypto/crypto_context.cc
--- src/crypto/crypto_context.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_context.cc 2021-09-10 23:37:08.007152000 +0200
--- src/crypto/crypto_context.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_context.cc 2021-10-19 20:22:29.020594000 +0200
@@ -11,11 +11,11 @@
#include "util.h"
#include "v8.h"
@ -215,8 +215,8 @@ Index: src/crypto/crypto_context.cc
namespace node {
Index: src/crypto/crypto_dsa.cc
--- src/crypto/crypto_dsa.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_dsa.cc 2021-09-10 23:37:08.007261000 +0200
--- src/crypto/crypto_dsa.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_dsa.cc 2021-10-19 20:22:29.020694000 +0200
@@ -7,8 +7,8 @@
#include "threadpoolwork-inl.h"
#include "v8.h"
@ -229,8 +229,8 @@ Index: src/crypto/crypto_dsa.cc
#include <cstdio>
Index: src/crypto/crypto_keys.h
--- src/crypto/crypto_keys.h.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_keys.h 2021-09-10 23:37:08.007378000 +0200
--- src/crypto/crypto_keys.h.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_keys.h 2021-10-19 20:22:29.020806000 +0200
@@ -11,7 +11,7 @@
#include "node_worker.h"
#include "v8.h"
@ -241,8 +241,8 @@ Index: src/crypto/crypto_keys.h
#include <memory>
#include <string>
Index: src/crypto/crypto_rsa.cc
--- src/crypto/crypto_rsa.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_rsa.cc 2021-09-10 23:37:08.007511000 +0200
--- src/crypto/crypto_rsa.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_rsa.cc 2021-10-19 20:22:29.020942000 +0200
@@ -10,8 +10,8 @@
#include "threadpoolwork-inl.h"
#include "v8.h"
@ -255,8 +255,8 @@ Index: src/crypto/crypto_rsa.cc
namespace node {
Index: src/crypto/crypto_spkac.h
--- src/crypto/crypto_spkac.h.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_spkac.h 2021-09-10 23:37:08.007605000 +0200
--- src/crypto/crypto_spkac.h.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_spkac.h 2021-10-19 20:22:29.021028000 +0200
@@ -6,7 +6,7 @@
#include "env.h"
#include "v8.h"
@ -267,8 +267,8 @@ Index: src/crypto/crypto_spkac.h
namespace node {
namespace crypto {
Index: src/crypto/crypto_timing.cc
--- src/crypto/crypto_timing.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_timing.cc 2021-09-10 23:37:08.007701000 +0200
--- src/crypto/crypto_timing.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_timing.cc 2021-10-19 20:22:29.021121000 +0200
@@ -5,7 +5,7 @@
#include "v8.h"
#include "node.h"
@ -279,8 +279,8 @@ Index: src/crypto/crypto_timing.cc
namespace node {
Index: src/crypto/crypto_tls.h
--- src/crypto/crypto_tls.h.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_tls.h 2021-09-10 23:37:08.007813000 +0200
--- src/crypto/crypto_tls.h.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_tls.h 2021-10-19 20:22:29.021233000 +0200
@@ -32,7 +32,7 @@
#include "stream_wrap.h"
#include "v8.h"
@ -291,8 +291,8 @@ Index: src/crypto/crypto_tls.h
#include <string>
Index: src/crypto/crypto_util.h
--- src/crypto/crypto_util.h.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/crypto/crypto_util.h 2021-09-10 23:37:08.007956000 +0200
--- src/crypto/crypto_util.h.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/crypto/crypto_util.h 2021-10-19 20:22:29.021373000 +0200
@@ -12,15 +12,15 @@
#include "v8.h"
#include "string_bytes.h"
@ -318,8 +318,8 @@ Index: src/crypto/crypto_util.h
// The FIPS-related functions are only available
// when the OpenSSL itself was compiled with FIPS support.
Index: src/inspector_socket_server.cc
--- src/inspector_socket_server.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/inspector_socket_server.cc 2021-09-10 23:37:08.008101000 +0200
--- src/inspector_socket_server.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/inspector_socket_server.cc 2021-10-19 20:22:29.021503000 +0200
@@ -20,7 +20,7 @@
bool include_protocol);
namespace {
@ -330,8 +330,8 @@ Index: src/inspector_socket_server.cc
};
Index: src/node_constants.cc
--- src/node_constants.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/node_constants.cc 2021-09-10 23:37:08.008272000 +0200
--- src/node_constants.cc.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/node_constants.cc 2021-10-19 20:22:29.021668000 +0200
@@ -36,10 +36,10 @@
@ -347,20 +347,23 @@ Index: src/node_constants.cc
#endif // HAVE_OPENSSL
Index: src/node_metadata.cc
--- src/node_metadata.cc.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/node_metadata.cc 2021-09-10 23:37:08.008376000 +0200
@@ -10,7 +10,7 @@
--- src/node_metadata.cc.orig 2021-10-19 20:22:29.021798000 +0200
+++ src/node_metadata.cc 2021-10-19 22:18:22.718033000 +0200
@@ -10,9 +10,9 @@
#include "zlib.h"
#if HAVE_OPENSSL
-#include <openssl/opensslv.h>
+#include "openssl/opensslv.h"
#if NODE_OPENSSL_HAS_QUIC
-#include <openssl/quic.h>
+#include "openssl/quic.h"
#endif
#endif // HAVE_OPENSSL
#ifdef OPENSSL_INFO_QUIC
Index: src/util.h
--- src/util.h.orig 2021-09-10 19:25:14.000000000 +0200
+++ src/util.h 2021-09-10 23:37:08.008541000 +0200
--- src/util.h.orig 2021-10-19 02:48:32.000000000 +0200
+++ src/util.h 2021-10-19 20:22:29.022009000 +0200
@@ -150,14 +150,23 @@
} \
} while (0)
@ -394,8 +397,8 @@ Index: src/util.h
ERROR_AND_ABORT("Unreachable code reached" __VA_OPT__(": ") __VA_ARGS__)
Index: tools/install.py
--- tools/install.py.orig 2021-09-10 19:25:14.000000000 +0200
+++ tools/install.py 2021-09-10 23:37:08.008658000 +0200
--- tools/install.py.orig 2021-10-19 02:48:32.000000000 +0200
+++ tools/install.py 2021-10-19 20:22:29.022125000 +0200
@@ -156,10 +156,7 @@
action(['deps/v8/tools/gdbinit'], 'share/doc/node/')
action(['deps/v8/tools/lldb_commands.py'], 'share/doc/node/')
@ -409,8 +412,8 @@ Index: tools/install.py
if 'true' == variables.get('node_install_npm'):
npm_files(action)
Index: tools/v8_gypfiles/toolchain.gypi
--- tools/v8_gypfiles/toolchain.gypi.orig 2021-09-10 19:25:15.000000000 +0200
+++ tools/v8_gypfiles/toolchain.gypi 2021-09-10 23:37:08.008871000 +0200
--- tools/v8_gypfiles/toolchain.gypi.orig 2021-10-19 02:48:33.000000000 +0200
+++ tools/v8_gypfiles/toolchain.gypi 2021-10-19 20:22:29.022329000 +0200
@@ -1117,12 +1117,6 @@
['OS=="solaris"', {
'defines': [ '__C99FEATURES__=1' ], # isinf() etc.

10
node/node.spec

@ -22,8 +22,8 @@
##
# package version
%define V_opkg 16.13.0
%define V_dist 16.13.0
%define V_opkg 17.2.0
%define V_dist 17.2.0
# package information
Name: node
@ -36,7 +36,7 @@ Class: PLUS
Group: Web
License: MIT/BSD
Version: %{V_opkg}
Release: 20211026
Release: 20211202
# package options
%option with_icu yes
@ -59,13 +59,13 @@ PreReq: icu
%description
Node.js provides an easy way to build scalable network servers in
JavaScript. It is an event-driven I/O environment based on Google V8
JavaScript virtual machine version 9.4.146.19.
JavaScript virtual machine version 9.6.180.14.
%track
prog node = {
version = %{V_dist}
url = https://nodejs.org/download/release/
regex = v(14\.\d+\.\d+)/
regex = v(17\.\d+\.\d+)/
}
%prep

Loading…
Cancel
Save