Gentoo Archives: gentoo-dev

From: "M. J. Everitt" <m.j.everitt@×××.org>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Begin a dev-libs/nodejs category?
Date: Wed, 21 Mar 2018 01:37:11
Message-Id: b7318cd8-3c6b-7814-2aa9-b3205d6abfef@iee.org
In Reply to: Re: [gentoo-dev] [RFC] Begin a dev-libs/nodejs category? by Kent Fredric
1 On 21/03/18 01:27, Kent Fredric wrote:
2 > On Tue, 20 Mar 2018 14:48:29 -0400
3 > Michael Orlitzky <mjo@g.o> wrote:
4 >
5 >> There's a real technical problem hidden in there. Since npm
6 >> (recursively!) bundles every dependency, nobody worries about
7 >> compatibility in their JS packages. You'll quickly find yourself stuck.
8 > Honestly, I expected at some point we'd reach for slotting and normalization,
9 > and recursive trees of symlinks....
10 >
11 > eg:
12 > /usr/lib/nodejs/<packagename>/<version>/lib/<dependency-name> -> /usr/lib/nodejs/<packagename>/<version>
13 >
14 > Or something like that.
15 >
16 > So you'd wind up with
17 >
18 > /usr/lib/nodejs/foo/1.0/lib/bar -> /usr/lib/nodejs/bar/1.0
19 > /usr/lib/nodejs/foo/1.0/lib/baz -> /usr/lib/nodejs/baz/2.0
20 > /usr/lib/nodejs/bar/1.0/lib/baz -> /usr/lib/nodejs/baz/1.0
21 > /usr/lib/nodejs/baz/1.0/...
22 > /usr/lib/nodejs/baz/2.0/...
23 >
24 > Or something like that. But I imagine constructing such a thing a
25 > rather painful exercise.
26 >
27 .... Said the voice of bitter experience ... *eg* :]

Attachments

File name MIME type
signature.asc application/pgp-signature