[packages/nodejs] update libpath.patch

glen glen at pld-linux.org
Thu Nov 2 16:11:13 CET 2017


commit de43228afecaaa16848ac098802f3624e890af15
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Nov 2 17:09:58 2017 +0200

    update libpath.patch

 nodejs-libpath.patch | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)
---
diff --git a/nodejs-libpath.patch b/nodejs-libpath.patch
index 27ff34f..0252d2a 100644
--- a/nodejs-libpath.patch
+++ b/nodejs-libpath.patch
@@ -1,13 +1,11 @@
-diff -ur node-v0.9.9-0/lib/module.js node-v0.9.9/lib/module.js
---- node-v0.9.9-0/lib/module.js	2013-02-07 10:11:11.000000000 -0700
-+++ node-v0.9.9/lib/module.js	2013-02-15 21:40:33.000000000 -0700
-@@ -506,7 +506,7 @@
-     var homeDir = process.env.HOME;
+--- node-v6.11.5/lib/module.js~	2017-10-24 22:10:13.000000000 +0300
++++ node-v6.11.5/lib/module.js	2017-11-02 13:32:42.480301417 +0200
+@@ -625,7 +625,7 @@
+   } else {
+     prefixDir = path.resolve(process.execPath, '..', '..');
    }
- 
--  var paths = [path.resolve(process.execPath, '..', '..', 'lib', 'node')];
-+  var paths = ["/usr/lib/node", "/usr/lib/node_modules"];
+-  var paths = [path.resolve(prefixDir, 'lib', 'node')];
++  var paths = ["/usr/lib/node", "/usr/lib/node_modules", path.resolve(prefixDir, 'lib', 'node')];
  
    if (homeDir) {
      paths.unshift(path.resolve(homeDir, '.node_libraries'));
-Only in node-v0.9.9/lib: module.js~
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nodejs.git/commitdiff/de43228afecaaa16848ac098802f3624e890af15



More information about the pld-cvs-commit mailing list