Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
OBS:Server:2.8:Staging
nodejs
nodejs-lib64path.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nodejs-lib64path.patch of Package nodejs
Index: node-v4.0.0/lib/module.js =================================================================== --- node-v4.0.0.orig/lib/module.js +++ node-v4.0.0/lib/module.js @@ -486,7 +486,7 @@ Module._initPaths = function() { var homeDir = process.env.HOME; } - var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')]; + var paths = ["/usr/lib/node", "/usr/lib64/node"]; if (homeDir) { paths.unshift(path.resolve(homeDir, '.node_libraries')); Index: node-v4.0.0/tools/install.py =================================================================== --- node-v4.0.0.orig/tools/install.py +++ node-v4.0.0/tools/install.py @@ -86,7 +86,7 @@ def update_shebang(path, shebang): open(path, 'w').write(s) def npm_files(action): - target_path = 'lib/node_modules/npm/' + target_path = 'lib64/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 @@ -104,7 +104,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('../lib64/node_modules/npm/bin/npm-cli.js', link_path) if os.environ.get('PORTABLE'): # This crazy hack is necessary to make the shebang execute the copy # of node relative to the same directory as the npm script. The precompiled @@ -133,7 +133,7 @@ def files(action): action(['out/Release/node' + exeext], 'bin/node' + exeext) if 'true' == variables.get('node_use_dtrace'): - action(['out/Release/node.d'], 'lib/dtrace/node.d') + action(['out/Release/node.d'], 'lib64/dtrace/node.d') # behave similarly for systemtap action(['src/node.stp'], 'share/systemtap/tapset/')
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor