unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#42639] [PATCH] bump Node to 14.6
@ 2020-07-31 17:11 Formbi via Guix-patches via
  2020-07-31 21:26 ` Jelle Licht
  0 siblings, 1 reply; 9+ messages in thread
From: Formbi via Guix-patches via @ 2020-07-31 17:11 UTC (permalink / raw)
  To: 42639

[-- Attachment #1: Type: text/plain, Size: 13 bytes --]

Empty Message

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0002-bump-node-to-14.6.patch --]
[-- Type: text/x-patch; name=0002-bump-node-to-14.6.patch, Size: 2757 bytes --]

From 0dc32f60b10c39f585d3535f3ff35e0e9812a6a0 Mon Sep 17 00:00:00 2001
From: Formbi <formbi@protonmail.com>
Date: Fri, 31 Jul 2020 19:09:26 +0200
Subject: [PATCH 2/2] bump node to 14.6

---
 gnu/packages/node.scm | 54 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 1adb2cd07f..a7658e626a 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -199,6 +199,60 @@ devices.")
     (properties '((max-silent-time . 7200)     ;2h, needed on ARM
                   (timeout . 21600)))))        ;6h
 
+(define-public node-14.6
+  (package
+    (inherit node)
+    (version "14.6.0")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://nodejs.org/dist/v" version
+                                  "/node-v" version ".tar.xz"))
+              (sha256
+               (base32
+                "153a07ffrmvwbsc78wrc0xnwymmzrhva0kn6mgnfi3086v3h1wss"))
+              (modules '((guix build utils)))
+              (snippet
+               `(begin
+                  ;; Remove bundled software.
+                  (for-each delete-file-recursively
+                            '("deps/cares"
+                              "deps/icu-small"
+                              "deps/openssl"))
+                  (substitute* "Makefile"
+                    ;; Remove references to bundled software.
+                    (("deps/http_parser/http_parser.gyp") "")
+                    (("deps/uv/include/\\*.h") ""))
+                  #t))))
+    (arguments
+     (substitute-keyword-arguments (package-arguments node)
+       ((#:configure-flags configure-flags)
+        ''("--shared-cares"
+           ;; "--shared-http-parser"
+           ;; node can't find the pkg-config file for http-parser
+           "--shared-libuv"
+           ;; "--shared-nghttp2"
+           ;; for some reason only the bundled nghttp2 works
+           "--shared-openssl"
+           "--shared-zlib"
+           ;; "--without-snapshot"
+           ;; this option is no longer available
+           "--with-intl=system-icu"))
+       ;; Almost all the tests require NPM and the one that doesn't does
+       ;; something stupid and fails on 14.6
+       ((#:tests? _ #f) #f)
+       ;; The patch-files was preparing the tests, now it's not needed
+       ((#:phases phases)
+        `(modify-phases ,phases
+           (delete 'patch-files)))))
+    (inputs
+     `(("c-ares" ,c-ares)
+       ("http-parser" ,http-parser)
+       ("icu4c" ,icu4c-67)
+       ("libuv" ,libuv-1.38)
+       ("openssl" ,openssl)
+       ("zlib" ,zlib)
+       ("brotli" ,google-brotli)))))
+
 (define-public libnode
   (package
     (inherit node)
-- 
2.26.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-05-28 21:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-31 17:11 [bug#42639] [PATCH] bump Node to 14.6 Formbi via Guix-patches via
2020-07-31 21:26 ` Jelle Licht
2020-07-31 21:33   ` Formbi via Guix-patches via
2020-07-31 21:37   ` Jelle Licht
2020-07-31 21:41     ` Formbi via Guix-patches via
2020-08-06 22:01     ` Jakub Kądziołka
2020-08-06 22:53       ` Jelle Licht
2020-08-07 13:58         ` Jakub Kądziołka
2023-05-28 21:58           ` bug#42639: " Jelle Licht

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).