This commit is contained in:
@@ -172,7 +172,6 @@ Patch200: versioned.patch
|
||||
Patch305: qemu_timeouts_arches.patch
|
||||
Patch308: node-gyp-config.patch
|
||||
Patch309: gcc13.patch
|
||||
Patch310: test_strace.patch
|
||||
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: fdupes
|
||||
@@ -705,7 +704,6 @@ popd
|
||||
|
||||
%patch305 -p1
|
||||
%patch309 -p1
|
||||
%patch310 -p1
|
||||
|
||||
%if %{node_version_number} == 12
|
||||
# minimist security update - patch50
|
||||
@@ -930,6 +928,10 @@ export NODE_TEST_NO_INTERNET=1
|
||||
find test \( -name \*.out -or -name \*.js \) -exec sed -i 's,Use `node ,Use `node%{node_version_number} ,' {} \;
|
||||
%endif
|
||||
|
||||
%if %{node_version_number} >= 20
|
||||
rm test/parallel/test-strace-openat-openssl.js
|
||||
%endif
|
||||
|
||||
# Update the python3 executable name to point at forced python version
|
||||
# needed to fix build on SLE12 SP5
|
||||
%if 0%{?forced_python_version:1}
|
||||
|
@@ -1,23 +0,0 @@
|
||||
Index: node-v20.1.0/test/parallel/test-strace-openat-openssl.js
|
||||
===================================================================
|
||||
--- node-v20.1.0.orig/test/parallel/test-strace-openat-openssl.js
|
||||
+++ node-v20.1.0/test/parallel/test-strace-openat-openssl.js
|
||||
@@ -18,6 +18,7 @@ if (spawnSync('strace').error !== undefi
|
||||
{
|
||||
const allowedOpenCalls = new Set([
|
||||
'/etc/ssl/openssl.cnf',
|
||||
+ '/etc/crypto-policies/back-ends/opensslcnf.config',
|
||||
]);
|
||||
const strace = spawn('strace', [
|
||||
'-f', '-ff',
|
||||
@@ -42,6 +43,10 @@ if (spawnSync('strace').error !== undefi
|
||||
if (file.match(/\/proc\/.+/) !== null) {
|
||||
return;
|
||||
}
|
||||
+ // skip icu data files
|
||||
+ if (file.match(/^\/usr\/share\/icu\/[0-9\.]+\/icudt.+\.dat$/) !== null) {
|
||||
+ return;
|
||||
+ }
|
||||
|
||||
assert(allowedOpenCalls.delete(file), `${file} is not in the list of allowed openat calls`);
|
||||
});
|
@@ -8,10 +8,10 @@ management via update_alternatives.
|
||||
|
||||
This is also important for generation of binary
|
||||
modules for multiple versions of NodeJS
|
||||
Index: node-v19.8.1/Makefile
|
||||
Index: node-v20.1.0/Makefile
|
||||
===================================================================
|
||||
--- node-v19.8.1.orig/Makefile
|
||||
+++ node-v19.8.1/Makefile
|
||||
--- node-v20.1.0.orig/Makefile
|
||||
+++ node-v20.1.0/Makefile
|
||||
@@ -76,7 +76,7 @@ BUILDTYPE_LOWER := $(shell echo $(BUILDT
|
||||
EXEEXT := $(shell $(PYTHON) -c \
|
||||
"import sys; print('.exe' if sys.platform == 'win32' else '')")
|
||||
@@ -21,10 +21,10 @@ Index: node-v19.8.1/Makefile
|
||||
NODE ?= ./$(NODE_EXE)
|
||||
NODE_G_EXE = node_g$(EXEEXT)
|
||||
NPM ?= ./deps/npm/bin/npm-cli.js
|
||||
Index: node-v19.8.1/tools/install.py
|
||||
Index: node-v20.1.0/tools/install.py
|
||||
===================================================================
|
||||
--- node-v19.8.1.orig/tools/install.py
|
||||
+++ node-v19.8.1/tools/install.py
|
||||
--- node-v20.1.0.orig/tools/install.py
|
||||
+++ node-v20.1.0/tools/install.py
|
||||
@@ -86,7 +86,7 @@ def uninstall(paths, dst):
|
||||
try_remove(path, dst)
|
||||
|
||||
@@ -47,7 +47,7 @@ Index: node-v19.8.1/tools/install.py
|
||||
package_files(action, 'npm', {
|
||||
- 'npm': 'bin/npm-cli.js',
|
||||
- 'npx': 'bin/npx-cli.js',
|
||||
+ 'npx20': 'bin/npm-cli.js',
|
||||
+ 'npm20': 'bin/npm-cli.js',
|
||||
+ 'npx20': 'bin/npx-cli.js',
|
||||
})
|
||||
|
||||
@@ -113,10 +113,10 @@ Index: node-v19.8.1/tools/install.py
|
||||
|
||||
if sys.platform == 'zos':
|
||||
zoslibinc = os.environ.get('ZOSLIB_INCLUDES')
|
||||
Index: node-v19.8.1/doc/node.1
|
||||
Index: node-v20.1.0/doc/node.1
|
||||
===================================================================
|
||||
--- node-v19.8.1.orig/doc/node.1
|
||||
+++ node-v19.8.1/doc/node.1
|
||||
--- node-v20.1.0.orig/doc/node.1
|
||||
+++ node-v20.1.0/doc/node.1
|
||||
@@ -31,24 +31,24 @@
|
||||
.Dt NODE 1
|
||||
.
|
||||
@@ -146,10 +146,10 @@ Index: node-v19.8.1/doc/node.1
|
||||
.Op Fl -v8-options
|
||||
.
|
||||
.\"======================================================================
|
||||
Index: node-v19.8.1/src/node_main.cc
|
||||
Index: node-v20.1.0/src/node_main.cc
|
||||
===================================================================
|
||||
--- node-v19.8.1.orig/src/node_main.cc
|
||||
+++ node-v19.8.1/src/node_main.cc
|
||||
--- node-v20.1.0.orig/src/node_main.cc
|
||||
+++ node-v20.1.0/src/node_main.cc
|
||||
@@ -94,6 +94,7 @@ int wmain(int argc, wchar_t* wargv[]) {
|
||||
// UNIX
|
||||
|
||||
@@ -158,11 +158,11 @@ Index: node-v19.8.1/src/node_main.cc
|
||||
return node::Start(argc, argv);
|
||||
}
|
||||
#endif
|
||||
Index: node-v19.8.1/tools/test.py
|
||||
Index: node-v20.1.0/tools/test.py
|
||||
===================================================================
|
||||
--- node-v19.8.1.orig/tools/test.py
|
||||
+++ node-v19.8.1/tools/test.py
|
||||
@@ -954,7 +954,7 @@ class Context(object):
|
||||
--- node-v20.1.0.orig/tools/test.py
|
||||
+++ node-v20.1.0/tools/test.py
|
||||
@@ -947,7 +947,7 @@ class Context(object):
|
||||
if self.vm is not None:
|
||||
return self.vm
|
||||
if arch == 'none':
|
||||
@@ -171,10 +171,10 @@ Index: node-v19.8.1/tools/test.py
|
||||
else:
|
||||
name = 'out/%s.%s/node' % (arch, mode)
|
||||
|
||||
Index: node-v19.8.1/node.gyp
|
||||
Index: node-v20.1.0/node.gyp
|
||||
===================================================================
|
||||
--- node-v19.8.1.orig/node.gyp
|
||||
+++ node-v19.8.1/node.gyp
|
||||
--- node-v20.1.0.orig/node.gyp
|
||||
+++ node-v20.1.0/node.gyp
|
||||
@@ -23,8 +23,8 @@
|
||||
'node_shared_openssl%': 'false',
|
||||
'node_v8_options%': '',
|
||||
|
Reference in New Issue
Block a user