Hi,

currently nodejs port installs
/usr/local/share/node/node-v16.17.1-headers.tar.xz but from my
understanding node-gyp expects the tar.gz one:

/usr/local/lib/node_modules/node-gyp/lib/install.js:    const tarPath =
gyp.opts.tarball || '/usr/local/share/node/node-v16.17.1-headers.tar.gz'

while working on a devel/swig update, running the javascript tests in it
run node-gyp, which fails to find the gz version:

[23:46] c64:/usr/obj/ports/swig-4.1.0/swig-4.1.0/Examples/javascript/class/ 
$/usr/local/bin/node 
/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure 
build
gyp info it worked if it ends with ok
gyp info using node-gyp@9.0.0
gyp info using node@16.17.1 | openbsd | x64
gyp info find Python using Python version 3.9.15 found at 
"/usr/local/bin/python3"
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: ENOENT: no such file or directory, stat 
'/usr/local/share/node/node-v16.17.1-headers.tar.gz'
gyp ERR! System OpenBSD 7.2
gyp ERR! command "/usr/local/bin/node" 
"/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" 
"configure" "build"
gyp ERR! cwd /usr/obj/ports/swig-4.1.0/swig-4.1.0/Examples/javascript/class
gyp ERR! node -v v16.17.1
gyp ERR! node-gyp -v v9.0.0
gyp ERR! not ok

i dunno what is right or what is wrong but having the gz version unbreaks it:

xzcat /usr/local/share/node/node-v16.17.1-headers.tar.xz |gzip > 
/usr/local/share/node/node-v16.17.1-headers.tar.gz

portswise, i dont really know why we install the xz variant, size ?
should we use the gz version instead ? install both ? since our tar
doesnt handle xz, i'm pretty sure node-gyp cant work with the xz version..

what do nodejs experts think about it ?

Landry

Reply via email to