[Pkg-javascript-devel] Bug#901474: Bug#901474: [nodejs][RFC] Multiarch and /usr/local search path

Jérémy Lal kapouer at melix.org
Wed Jun 13 22:05:51 BST 2018


2018-06-13 22:09 GMT+02:00 Bastien ROUCARIÈS <roucaries.bastien at gmail.com>:
>
>
> You could check the patch by doing require('os').constants and see
>  ARCH_TRIPLET: 'x86_64-linux-gnu',
>   GLOBAL_NODE_PATH:
>    '/usr/local/lib/x86_64-linux-gnu/nodejs:/usr/local/share/
> nodejs:/usr/local/lib/nodejs:/usr/lib/x86_64-linux-gnu/
> nodejs:/usr/share/nodejs:/usr/lib/nodejs',
>

That kind of configuration variables should go into
process.config.variables
where you can see that there is almost already that information:
target_arch, host_arch, node_prefix

Taking into account my previous comment about no /usr/local,
let me refine your proposal to:
/usr/share/nodejs (because 99% modules are pure js, let's search them first)
/usr/lib/x86_64-linux-gnu/nodejs (because addons should go there)
/usr/lib/nodejs (keep the old path until no debian package use it)

to the global default search path.

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


More information about the Pkg-javascript-devel mailing list