Lucio Sauer d6ed58bbe9
app-misc/anki: add 25.09.2
The node_modules tarball now includes the corresponding yarn lockfile.
You can use it to reproduce the prebuilt node_modules folder, provided
you trust the aforementioned lockfile [1]:

$ ebuild anki-25.09.2.ebuild clean unpack
$ pushd "${S}"
$ mv "${WORKDIR}"/yarn.lock .
$ sed -e '/"type": "module"/s/,//' -e '/packageManager/d' -i package.json
$ yarn install --frozen-lockfile --ignore-platform
$ popd

Finally, compare node_modules with its prebuilt counterpart
"${WORKDIR}"/node_modules.

[1]: The yarn.lock file shipped in the node_modules tarball gets
generated when building node_modules for distribution and it is not the
same as the upstream file. Upstream uses Yarn 4, whose lockfile format
is incompatible with sys-apps/yarn-1*. Yarn 4 is not packaged yet.

Bug: https://bugs.gentoo.org/754651
Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Part-of: https://github.com/gentoo/gentoo/pull/43914
Signed-off-by: Sam James <sam@gentoo.org>
2025-10-14 21:04:17 +01:00
..
2025-07-08 20:47:35 +01:00