Files
nodejs11/nodejs-libpath.patch
Adam Majer 7f34c0f4e9 - New upstream release 11.15.0:
* tls:
    + add --tls-min-v1.2 CLI switch
    + supported shared openssl 1.1.0
    + revert default max toTLSv1.2
    + revert change to invalid protocol error type
    + support TLSv1.3
    + add code for ERR_TLS_INVALID_PROTOCOL_METHOD
- Changes in release 11.14.0:
  * child_process: doc deprecate ChildProcess._channel
  * deps: update bundled nghttp2 to 1.37.0
  * dns:
    + make dns.promises enumerable
    + remove dns.promises experimental warning
  * fs: remove experimental warning for fs.promises
  * stream: make Symbol.asyncIterator support stable
  * worker: use copy of process.env

- Add _constraints file to avoid OOM errors

OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs11?expand=0&rev=17
2019-06-11 13:38:02 +00:00

62 lines
2.3 KiB
Diff

Index: node-v11.15.0/tools/install.py
===================================================================
--- node-v11.15.0.orig/tools/install.py
+++ node-v11.15.0/tools/install.py
@@ -7,6 +7,7 @@ import os
import re
import shutil
import sys
+from distutils import sysconfig
from getmoduleversion import get_version
# set at init time
@@ -81,7 +82,7 @@ def uninstall(paths, dst):
try_remove(path, dst)
def npm_files(action):
- target_path = 'lib/node_modules/npm/'
+ target_path = sysconfig.get_config_var("LIB") + '/node_modules/npm/'
# don't install npm if the target path is a symlink, it probably means
# that a dev version of npm is installed there
@@ -99,7 +100,7 @@ def npm_files(action):
if action == uninstall:
action([link_path], 'bin/npm')
elif action == install:
- try_symlink('../lib/node_modules/npm/bin/npm-cli.js', link_path)
+ try_symlink("../" + sysconfig.get_config_var("LIB") + '/node_modules/npm/bin/npm-cli.js',link_path)
else:
assert(0) # unhandled action type
@@ -108,7 +109,7 @@ def npm_files(action):
if action == uninstall:
action([link_path], 'bin/npx')
elif action == install:
- try_symlink('../lib/node_modules/npm/bin/npx-cli.js', link_path)
+ try_symlink('../' + sysconfig.get_config_var("LIB") + '/node_modules/npm/bin/npx-cli.js', link_path)
else:
assert(0) # unhandled action type
@@ -144,7 +145,7 @@ def files(action):
action([output_prefix + output_file], 'lib/' + output_file)
if 'true' == variables.get('node_use_dtrace'):
- action(['out/Release/node.d'], 'lib/dtrace/node.d')
+ action(['out/Release/node.d'], sysconfig.get_config_var("LIB") + '/dtrace/node.d')
# behave similarly for systemtap
action(['src/node.stp'], 'share/systemtap/tapset/')
Index: node-v11.15.0/lib/internal/modules/cjs/loader.js
===================================================================
--- node-v11.15.0.orig/lib/internal/modules/cjs/loader.js
+++ node-v11.15.0/lib/internal/modules/cjs/loader.js
@@ -907,7 +907,7 @@ Module._initPaths = function() {
} else {
prefixDir = path.resolve(process.execPath, '..', '..');
}
- var paths = [path.resolve(prefixDir, 'lib', 'node')];
+ var paths = ['/usr/lib/node'];
if (homeDir) {
paths.unshift(path.resolve(homeDir, '.node_libraries'));