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

Jérémy Lal kapouer at melix.org
Fri Mar 25 08:29:12 GMT 2022


On Thu, Mar 24, 2022 at 11:38 AM Jérémy Lal <kapouer at melix.org> wrote:

> 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),
>

Maybe this change is just enough ?

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


More information about the Pkg-javascript-devel mailing list