On Thu, Mar 24, 2022 at 11:38 AM Jérémy Lal <kapo...@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
-- 
Pkg-javascript-devel mailing list
Pkg-javascript-devel@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-javascript-devel

Reply via email to