Commit graph

134 commits

Author SHA1 Message Date
Jelle Licht
71480d609b
gnu: Add node alias for node-lts.
The node alias should henceforth refer to versions of Node.js that are at
least as recent as node-lts.

* gnu/packages/node.scm (node): New variable.

Change-Id: I1f19914715dda7da6bb45917e32b53227b480929
2024-12-18 22:02:20 +01:00
Jelle Licht
835b609d1b
gnu: node: Rename variable to node-bootstrap and hide package.
The package formerly known as node has security issues, so should only be used
to bootstrap more recent and secure versions of node.

* gnu/packages/node.scm (node): Rename to...
(node-bootstrap): ... this, and make it a hidden package.

Change-Id: I536a8f55faa14f8221915467c2981053f4c4d70e
2024-12-18 22:02:20 +01:00
Jelle Licht
7b3b9331ae
gnu: node-lts: Update to 20.18.1 [security fixes].
* gnu/packages/node.scm (node-lts): Update to 20.18.1.
[origin]: Delete bundled brotli, ngtcp2 and uv.
[:configure-flags]: Add shared-nghtcp2 flag. Add shared-nghttp3 flag.
[#:phases]<delete-problematic-tests>: Remove tests that fail due to linking to
unbundled libuv. Delete tests that depend on 64-bit time_t for 32-bit builds.
[native-inputs]: Replace libuv by libuv-for-node-lts.
[inputs]: Replace libuv by libuv-for-node-lts. Add ngtpc2, nghttp3.

Change-Id: I932e64f212283b34f0affad65c3d9f92fdea3d79
2024-12-18 22:02:19 +01:00
Jelle Licht
b0e5c1d038
gnu: llhttp-bootstrap: Update to 8.1.2.
* gnu/packages/node.scm (llhttp-bootstrap): Update to 8.1.2.

Change-Id: I4eff26889b2645c031fc9ea896657468d5752953
2024-12-18 22:02:19 +01:00
Jelle Licht
efd55e049a
gnu: node-lts: Replace customized c-ares-for-node by c-ares.
* gnu/packages/node.scm (node-lts) [native-inputs]: Replace c-ares-for-node by
c-ares.
[inputs]: Ditto.

Change-Id: Ibef027d55c14e302d406d6478fed474f67c0d508
2024-12-18 22:02:19 +01:00
Jelle Licht
89b8a6d27d
gnu: node: Replace customized nghttp2-for-node by nghttp2.
* gnu/packages/node.scm (node) [native-inputs]: Replace nghttp2-for-node by
nghttp2.
[inputs]: Ditto.
[arguments]<#:phases>: Adjust accordingly by skipping failing tests.

Change-Id: Ia3d63ea1c428c1353d6ec6fda394ccb016eb6603
2024-12-18 22:02:19 +01:00
Efraim Flashner
c380428261
gnu: node: Fix build with zlib 1.3.
* gnu/packages/node.scm (node)[source]: Adjust snippet to adjust a test
to accept shorter version strings.

Change-Id: If8384497035e44f4876357877941cbf175acf879
2024-08-31 10:44:45 +02:00
TakeV
96b6e7b1a4
gnu: node-lts: Update to 18.19.0.
* gnu/packages/node.scm (node-lts): Update to 18.19.0.

Change-Id: Ide542157571774da6d70fc114ec095f645a79b8b
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
2023-12-22 17:47:15 +01:00
Jelle Licht
ab94e80601
gnu: node-lts: Update to 18.18.2.
* gnu/packages/node.scm (node-lts): Update to 18.18.2.
[arguments]<phases>: Add 'install-node-gyp-wrapper phase.

Change-Id: I6b17de33313505558a8fa9560126adef486fd0e3
2023-11-05 12:37:18 +01:00
Jelle Licht
9b8085ebce
gnu: node-lts: Update to 18.17.1.
* gnu/packages/node.scm (node-lts): Update to 18.17.1.
2023-08-31 19:45:56 +02:00
Jelle Licht
bab5e7a116
gnu: llhttp-bootstrap: Update to 6.0.11.
* gnu/packages/node.scm (llhttp-bootstrap): Update to 6.0.11.
2023-08-31 19:45:53 +02:00
Ricardo Wurmus
e767fe2ddc
gnu: libnode: Delete extra phase.
This is a follow-up to commit 5dc2a88f99.

* gnu/packages/node.scm (libnode)[arguments]: Remove phase
'ignore-number-of-hardlinks.
2023-07-16 10:48:26 +02:00
Ricardo Wurmus
5dc2a88f99
gnu: node-lts: Install files irrespective of number of hardlinks.
* gnu/packages/node.scm (node-lts)[arguments]: Add build phase
'ignore-number-of-hardlinks.
2023-07-15 10:01:58 +02:00
Ricardo Wurmus
529d91de1e
gnu: node-lts: Simplify snippet.
* gnu/packages/node.scm (node-lts)[source]: Remove quasiquote, trailing #T,
and IF with explicit booleans.
2023-07-15 10:01:58 +02:00
Hilton Chain
40d6615ca2
gnu: libnode: Use node-lts as base.
* gnu/packages/node.scm (libnode): Use node-lts as base.
* gnu/packages/cran.scm (r-v8)[arguments]<#:phases>: Adjusted accordingly.

Signed-off-by: Jelle Licht <jlicht@fsfe.org>
2023-05-06 13:53:22 +02:00
Hilton Chain
8cc0ed4536
gnu: node-lts: Update to 18.16.0.
* gnu/packages/node.scm (node-lts): Update to 18.16.0.
[snippet]: Keep file deps/openssl/nodejs-openssl.cnf.
[arguments]<#:configure-flags>: Enable v8 snapshot compression.
<#:phases>: Adjust problematic tests to delete accordingly.
Patch additional file with hardcoded references to /bin/sh.
[native-inputs,inputs]: Replace openssl-1.1 with openssl.
Replace libuv-for-node with libuv.
Replace nghttp2-for-node with nghttp2.

Signed-off-by: Jelle Licht <jlicht@fsfe.org>
Co-authored-by: Jelle Licht <jlicht@fsfe.org>
2023-05-06 13:53:22 +02:00
Hilton Chain
bd3f19c874
gnu: llhttp-bootstrap: Update to 6.0.10.
* gnu/packages/node.scm (llhttp-bootstrap): Update to 6.0.10.
* gnu/packages/patches/llhttp-bootstrap-CVE-2020-8287.patch: Remove file.
* gnu/local.mk: Remove it.

Signed-off-by: Jelle Licht <jlicht@fsfe.org>
2023-05-06 13:53:22 +02:00
Maxim Cournoyer
3bacd3c76a
Merge branch 'master' into core-updates.
Conflicts:
	gnu/local.mk
	gnu/packages/build-tools.scm
	gnu/packages/certs.scm
	gnu/packages/check.scm
	gnu/packages/compression.scm
	gnu/packages/cups.scm
	gnu/packages/fontutils.scm
	gnu/packages/gnuzilla.scm
	gnu/packages/guile.scm
	gnu/packages/ibus.scm
	gnu/packages/image-processing.scm
	gnu/packages/linux.scm
	gnu/packages/music.scm
	gnu/packages/nss.scm
	gnu/packages/pdf.scm
	gnu/packages/python-xyz.scm
	gnu/packages/qt.scm
	gnu/packages/ruby.scm
	gnu/packages/shells.scm
	gnu/packages/tex.scm
	gnu/packages/video.scm
	gnu/packages/vulkan.scm
	gnu/packages/web.scm
	gnu/packages/webkit.scm
	gnu/packages/wm.scm
2023-04-14 17:15:08 -04:00
Jelle Licht
b45f75d5b7
gnu: node-lts: Remove dependency on python-wrapper.
This also reduces the closure size of node-lts from 255 MiB to
172 MiB (on x86_64-linux).

* gnu/packages/node.scm (node-lts)[inputs]: Remove PYTHON-WRAPPER.

Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
2023-03-22 14:17:23 -04:00
Efraim Flashner
4cf1acc7f3
Merge remote-tracking branch 'origin/master' into core-updates
Conflicts:
	doc/guix.texi
	gnu/local.mk
	gnu/packages/admin.scm
	gnu/packages/base.scm
	gnu/packages/chromium.scm
	gnu/packages/compression.scm
	gnu/packages/databases.scm
	gnu/packages/diffoscope.scm
	gnu/packages/freedesktop.scm
	gnu/packages/gnome.scm
	gnu/packages/gnupg.scm
	gnu/packages/guile.scm
	gnu/packages/inkscape.scm
	gnu/packages/llvm.scm
	gnu/packages/openldap.scm
	gnu/packages/pciutils.scm
	gnu/packages/ruby.scm
	gnu/packages/samba.scm
	gnu/packages/sqlite.scm
	gnu/packages/statistics.scm
	gnu/packages/syndication.scm
	gnu/packages/tex.scm
	gnu/packages/tls.scm
	gnu/packages/version-control.scm
	gnu/packages/xml.scm
	guix/build-system/copy.scm
	guix/scripts/home.scm
2023-01-30 12:39:40 +02:00
Efraim Flashner
f7b2108e62
gnu: node: Add case for cross-building to riscv64-linux.
* gnu/packages/node.scm (node)[arguments]: Adjust custom 'configure
phase to specify the correct architecture when cross-compiling to
riscv64-linux.
2022-12-30 15:17:47 +02:00
Marius Bakke
51ed530204
gnu: node@10: Build with 'libuv-for-node'.
* gnu/packages/node.scm (node)[inputs, native-inputs]: Change from LIBUV to
LIBUV-FOR-NODE.
2022-08-30 20:43:03 +02:00
Marius Bakke
59c136ef61
Merge branch 'staging' into core-updates 2022-08-30 20:18:55 +02:00
Marius Bakke
db2444ad82
gnu: Introduce versioned 'openssl-1.1' variable.
...and use it in packages that do not yet support 3.0.

* gnu/packages/tls.scm (openssl): Rename to ...
(openssl-1.1): ... this.
(openssl/fixed): Inherit from OPENSSL-1.1.
(openssl-3.0): Likewise.
(openssl): Turn into alias for OPENSSL-1.1.
* gnu/packages/ruby.scm (ruby-2.6)[inputs]: Change from OPENSSL to OPENSSL-1.1.
(ruby-3.0)[inputs]: Change "openssl" input to OPENSSL.
(ruby-3.1): Inherit from RUBY-3.0.
* gnu/packages/python.scm (python-2.7)[inputs]: Change from OPENSSL to
OPENSSL-1.1.
(python-3.9)[inputs]: Replace "openssl" with OPENSSL.
* gnu/packages/python-crypto.scm (python-cryptography)[inputs]: Change from
OPENSSL to OPENSSL-1.1.
* gnu/packages/databases.scm (mariadb)[inputs]: Likewise.
* gnu/packages/node.scm (node)[native-inputs, inputs]: Likewise.
(node-lts)[native-inputs]: Likewise.
2022-08-30 18:42:26 +02:00
Marius Bakke
77eb3008e3
Merge branch 'staging' into core-updates 2022-08-11 23:36:10 +02:00
Efraim Flashner
1085514a18
gnu: node-lts: Build with icu4c-71.
* gnu/packages/node.scm (node-lts)[inputs]: Replace icu4c-70 with
icu4c-71.
[native-inputs]: Same.
2022-08-02 00:45:41 +03:00
Marius Bakke
445658bbe1
gnu: node: Build with nghttp2@1.44.0.
* gnu/packages/web.scm (nghttp2-for-node): New variable.
* gnu/packages/node.scm (node, node-lts)[native-inputs, inputs]: Change from
NGHTTP2 to NGHTTP2-FOR-NODE.
2022-07-16 23:25:18 +02:00
Jelle Licht
e71f35df74
gnu: node: Fix cross-compilation.
* gnu/packages/node.scm (node)[phases]{configure}: Unwind the stack before
invoking the exception handler.
{patch-hardcoded-program-references}: Use search-input-file where appropriate.
2022-06-06 15:38:23 +02:00
Jelle Licht
6b96ef08b9
gnu: node-lts: Update to 14.19.3.
* gnu/packages/node.scm (node-lts): Update to 14.19.3.
[arguments]: Disable test that requires networking.
[native-inputs]: Replace icu4c-67 with icu4c-70.
[inputs]: Replace icu4c-67 with icu4c-70.
2022-06-06 15:38:18 +02:00
Jelle Licht
7c1ccc7656
gnu: node-lts: Update to 14.18.3 [security fixes].
* gnu/packages/node.scm (node-lts): Update to 14.18.3.

Includes fixes for CVE-2021-44531, CVE-2021-44532, CVE-2021-44533, and
CVE-2022-21824.
2022-01-13 11:40:11 +01:00
Marius Bakke
36057bfb78
gnu: node: Simplify inputs.
* gnu/packages/node.scm (node)[native-inputs]: Remove labels.
[source]: Remove trailing #t.
2022-01-11 18:36:37 +01:00
Marius Bakke
ebc097699c
gnu: node: Disable flaky test.
* gnu/packages/node.scm (node, node-lts)[arguments]: Delete flaky test.
2022-01-11 18:36:37 +01:00
Philip McGrath
96a5170fde
gnu: node-llparse-bootstrap: Use 'delete-dependencies'.
gnu/packages/node.scm (node-llparse-bootstrap)[arguments]: Use
'delete-dependencies'.  Stop deleting the 'configure' phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09 02:07:13 +01:00
Philip McGrath
5e1f8bae07
gnu: node-llparse-frontend-bootstrap: Use 'delete-dependencies'.
gnu/packages/node.scm (node-llparse-frontend-bootstrap)[arguments]:  Use
'delete-dependencies'.  Stop deleting the 'configure' phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09 02:07:13 +01:00
Philip McGrath
8d27d057bc
gnu: node-llparse-builder-bootstrap: Use 'delete-dependencies'.
gnu/packages/node.scm (node-llparse-builder-bootstrap)[arguments]: Use
'delete-dependencies'.  Stop deleting the 'configure' phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09 02:07:12 +01:00
Philip McGrath
ff90784cef
gnu: node-debug-bootstrap: Use 'delete-dependencies'.
gnu/packages/node.scm (node-debug-bootstrap)[arguments]: Use
'delete-dependencies'.  Stop deleting the 'configure' phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09 02:07:12 +01:00
Philip McGrath
fcec019560
gnu: node-binary-search-bootstrap: Use 'delete-dependencies'.
gnu/packages/node.scm (node-binary-search-bootstrap)[arguments]: Use
'delete-dependencies'.  Stop deleting the 'configure' phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09 02:07:12 +01:00
Philip McGrath
11f842fafe
gnu: node-ms-bootstrap: Use 'delete-dependencies'.
gnu/packages/node.scm (node-ms-bootstrap)[arguments]: Use
'delete-dependencies'.  Stop deleting the 'configure' phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09 02:07:12 +01:00
Philip McGrath
ef511a3b48
gnu: node-semver-bootstrap: Use 'delete-dependencies'.
gnu/packages/node.scm (node-semver-bootstrap)[arguments]: Use
'delete-dependencies'.  Stop deleting the 'configure' phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2022-01-09 02:07:12 +01:00
Philip McGrath
71adecd51a
gnu: node: Add an npmrc file to set nodedir.
* gnu/packages/node.scm (node, node-lts)[arguments]: Add a phase
'install-npmrc to create a "built-in" npmrc file that configures
"nodedir" to point to the output store path.
(libnode)[arguments]: Delete the 'install-npmrc phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2021-12-24 01:37:45 +01:00
Philip McGrath
bcaf6f14a1
gnu: node: Patch shebangs in node_modules.
* gnu/packages/node.scm (node)[arguments]: Replace 'patch-npm-shebang
and 'patch-node-shebang with a new 'patch-nested-shebangs that also
handles node-gyp and other shebangs under "/lib/node_modules".
[inputs]: Add Python for node-gyp as "python-for-target".
(node-lts)[inputs]: Likewise.
(libnode)[arguments]: Adjust to delete 'patch-nested-shebangs rather
than 'patch-npm-shebang and 'patch-node-shebang.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2021-12-24 01:37:45 +01:00
Philip McGrath
3179e32eb9
gnu: node: Update to 10.24.1 for bootstrapping.
* gnu/packages/node.scm (node): Update to 10.24.1.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2021-12-24 01:37:45 +01:00
Philip McGrath
2d6d881eb3
gnu: node: Avoid duplicating build phases.
* gnu/packages/node.scm (node)[arguments]: Split 'patch-files phase
into 'patch-hardcoded-program-references and
'delete-problematic-tests. Adapt 'patch-hardcoded-program-references
and 'configure to work unmodified on node-lts, but don't try to
share 'delete-problematic-tests, because those details seem to change
too much between node versions.
(node, node-lts)[inputs]: Use bash-minimal rather than bash.
(node-lts)[arguments]: Inherit 'patch-hardcoded-program-references,
and 'configure phases from the bootstrap node.
Remove the 'patch-files phase, keeping its remaining
non-inherited work in a new 'replace-llhttp-sources phase.

Signed-off-by: Liliana Marie Prikler <liliana.prikler@gmail.com>
2021-12-24 01:37:45 +01:00
Ludovic Courtès
8394619bac
gnu: Simplify package inputs.
This commit was obtained by running:

  ./pre-inst-env guix style

without any additional argument.
2021-12-13 17:48:25 +01:00
Ludovic Courtès
3a317f7476
Merge branch 'master' into core-updates-frozen 2021-11-17 23:43:14 +01:00
Jelle Licht
f3cd70ff8c
gnu: node-lts: Update to 14.18.1 [security fixes].
* gnu/packages/node.scm (node-lts): Update to 14.18.1.
[native-inputs]: Replace c-ares with c-ares-for-node.
[inputs]: Replace c-ares with c-ares-for-node.

Includes fixes for CVE-2021-22918, CVE-2021-22930, CVE-2021-22931,
CVE-2021-22939, and CVE-2021-22940.
2021-11-15 22:43:24 +01:00
Jelle Licht
cae7c3f389
gnu: llhttp-bootstrap: Update to 2.1.4 [security-fixes].
* gnu/packages/node.scm (llhttp-bootstrap): Update to 2.1.4.

Includes fixes for CVE-2021-22959 and CVE-2021-22960.
2021-11-15 22:43:23 +01:00
Jelle Licht
a69076e792
gnu: node: Add cpe-name.
* gnu/packages/node.scm (node)[properties]: Add cpe-name.
2021-11-15 22:43:23 +01:00
Marius Bakke
0f77e50139
Merge branch 'master' into core-updates-frozen 2021-10-14 00:01:12 +02:00
Tobias Geerinckx-Rice
28b5ef1159
gnu: Rename google-brotli back to brotli.
Sorry for the noise, but good riddance.  Our nonstandard name for this
package has caused confusion since it was added.  For example, the
duplicate python-brotli and python-google-brotli packages added later,
with the latter name making even less sense.

The Python packages will be fixed in the next commit.

* gnu/packages/compression.scm (google-brotli): Redefine as a
deprecated-package, with…
(brotli): …restored to canonical status.
(python-google-brotli)[inherit]: Adjust accordingly.
* gnu/packages/databases.scm (apache-arrow)[inputs]: Adjust accordingly.
* gnu/packages/fontutils.scm (woff2)[inputs]: Likewise.
* gnu/packages/gnome.scm (libsoup)[propagated-inputs]: Likewise.
* gnu/packages/networking (wireshark)[inputs]: Likewise.
* gnu/packages/node.scm (node-lts)[arguments, native-inputs]: Likewise.
* gnu/packages/python-xyz.scm (python-imagecodecs)[inputs]: Likewise.
2021-10-13 01:20:19 +02:00