1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-05-21 00:25:58 +02:00

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
This commit is contained in:
Jelle Licht
2024-11-03 13:04:07 +01:00
parent 31abde9afa
commit 835b609d1b
+10 -10
View File
@@ -56,9 +56,12 @@
#:use-module (gnu packages tls)
#:use-module (gnu packages web)
#:use-module (ice-9 match)
#:use-module (srfi srfi-1)
#:use-module (srfi srfi-26))
(define-public node
;; This should be the latest version of node that still builds without
;; depending on llhttp.
(define-public node-bootstrap
(package
(name "node")
(version "10.24.1")
@@ -338,12 +341,8 @@ devices.")
(license license:expat)
(properties '((max-silent-time . 7200) ;2h, needed on ARM
(timeout . 21600) ;6h
(cpe-name . "node.js")))))
;; This should be the latest version of node that still builds without
;; depending on llhttp.
(define-public node-bootstrap
(hidden-package node))
(cpe-name . "node.js")
(hidden? . #t)))))
;; Duplicate of node-semver
(define-public node-semver-bootstrap
@@ -749,7 +748,7 @@ source files.")
(define-public node-lts
(package
(inherit node)
(inherit node-bootstrap)
(version "20.18.1")
(source (origin
(method url-fetch)
@@ -780,7 +779,7 @@ source files.")
(("deps/uv/uv.gyp") "")
(("deps/zlib/zlib.gyp") ""))))))
(arguments
(substitute-keyword-arguments (package-arguments node)
(substitute-keyword-arguments (package-arguments node-bootstrap)
((#:configure-flags configure-flags)
''("--shared-cares"
"--shared-libuv"
@@ -982,7 +981,8 @@ fi"
nghttp3
`(,nghttp2 "lib")
openssl
zlib))))
zlib))
(properties (alist-delete 'hidden? (package-properties node-bootstrap)))))
(define-public libnode
(package/inherit node-lts