Bug creating node executable in OpenBSD
Checklist
There is an error in the generation of the final executable node in OpenBsd 6.3.
The internal library is calling a method in FS module which doesn't exist, just removing the native method fix the problem I add a patch to fix the issue by kryzoxy@gmail.com
index 6b7ac04..d058863 100644
--- a/bootstrap_node.js
+++ b/bootstrap_node.js_patched
@@ -75,7 +75,7 @@
// get the full path before process.execPath is used.
if (process.platform === 'openbsd') {
const { realpathSync } = NativeModule.require('fs');
- process.execPath = realpathSync.native(process.execPath);
+ process.execPath = realpathSync(process.execPath);
}
Object.defineProperty(process, 'argv0', {
- [x ]
make -j4 test
(UNIX), orvcbuild test
(Windows) passes