File: path-to-binary-iconv.patch

package info (click to toggle)
node-iconv 3.0.1%2B~3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,836 kB
  • sloc: ansic: 90,732; javascript: 448; makefile: 7
file content (22 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Description: iconv.js need to call iconv.node where it is installed
Forwarded: not-needed
Author: Matthew Pideil <matthewp_debian@teledetection.fr>
Reviewed-By: Yadd <yadd@debian.org>
Last-Update: 2021-11-29

--- a/index.js
+++ b/index.js
@@ -23,11 +23,11 @@
 
 let bindings;
 try {
-  bindings = require('./build/Release/iconv.node');
+  bindings = require('./iconv.node');
 }
 catch (e) {
   if (e.code !== 'MODULE_NOT_FOUND') throw e;
-  bindings = require('./build/Debug/iconv.node');
+  bindings = require('./build/Release/iconv.node');
 }
 
 const E2BIG = bindings.E2BIG | 0;