[Pkg-javascript-devel] node12, node14, ... and alternatives to allow proper transitions

Jérémy Lal kapouer at melix.org
Thu Mar 24 10:38:41 GMT 2022


Hi,
(libnode72 is for nodejs 12, libnode83 is for nodejs 14)

I made sure one can co-install libnode72 and libnode83, and removed
libnode83 Breaks libnode72, because it made it really difficult
to rebuild packages from unstable against the latest version of nodejs.

when a libnode-dev (=12) addon is built, its dependencies are:
libnode72
nodejs:any

However, if nodejs (=14), this doesn't work,
because nodejs cannot load multiple libnodeXX
$ node -e 'require("re2")'
Will load libnode83 then re2 will load libnode72 and crash.

The obvious solution is to let nodejs(=XX) install /usr/bin/nodeXX,
and use an alternative /usr/bin/node symlink to point to the latest version.

It will require fixing all node addons to depend on nodejs:any (=XX),
and also fix the calls to /usr/bin/node they do during build/tests.

Please comment.

Jérémy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-javascript-devel/attachments/20220324/2335249b/attachment.htm>


More information about the Pkg-javascript-devel mailing list