[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#49946] [PATCH v2 09/33] gnu: node: Patch /usr/bin/env in node-gyp.
From: |
Pierre Langlois |
Subject: |
[bug#49946] [PATCH v2 09/33] gnu: node: Patch /usr/bin/env in node-gyp. |
Date: |
Sun, 29 Aug 2021 11:45:44 +0100 |
* gnu/packages/node.scm (node)[arguments]: Fix /usr/bin/env shebang in
node-gyp.js.
(node-lts)[arguments]: Ditto.
---
gnu/packages/node.scm | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 36c45e9c7a..530c04bc68 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -6,7 +6,7 @@
;;; Copyright © 2017 Mike Gerwitz <mtg@gnu.org>
;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2018, 2019, 2020, 2021 Marius Bakke <marius@gnu.org>
-;;; Copyright © 2020 Pierre Langlois <pierre.langlois@gmx.com>
+;;; Copyright © 2020, 2021 Pierre Langlois <pierre.langlois@gmx.com>
;;; Copyright © 2020 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
;;;
@@ -120,6 +120,11 @@
(("'/usr/bin/env'")
(string-append "'" (which "env") "'")))
+ ;; Fix /usr/bin/env shebang in node-gyp.
+ (substitute* "deps/npm/node_modules/node-gyp/bin/node-gyp.js"
+ (("#!/usr/bin/env")
+ (string-append "#!" (assoc-ref inputs "coreutils")
"/bin/env")))
+
;; FIXME: These tests fail in the build container, but they don't
;; seem to be indicative of real problems in practice.
(for-each delete-file
@@ -661,6 +666,11 @@ source files.")
(("'/usr/bin/env'")
(string-append "'" (which "env") "'")))
+ ;; Fix /usr/bin/env shebang in node-gyp.
+ (substitute* "deps/npm/node_modules/node-gyp/bin/node-gyp.js"
+ (("#!/usr/bin/env")
+ (string-append "#!" (assoc-ref inputs "coreutils")
"/bin/env")))
+
;; FIXME: These tests fail in the build container, but they
don't
;; seem to be indicative of real problems in practice.
(for-each delete-file
--
2.33.0
- [bug#49946] [PATCH v2 10/33] guix: node-build-system: Support compiling addons with node-gyp., (continued)
- [bug#49946] [PATCH v2 10/33] guix: node-build-system: Support compiling addons with node-gyp., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 06/33] gnu: rust-spin: Update to 0.7., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 03/33] gnu: Add rust-html-escape., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 14/33] gnu: Add tree-sitter-bash., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 15/33] gnu: Add tree-sitter-css., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 07/33] gnu: Add tree-sitter., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 27/33] gnu: Add rust-tree-sitter., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 02/33] gnu: Add rust-fdlimit., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 08/33] gnu: Add tree-sitter-cli., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 11/33] gnu: Add node-nan., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 09/33] gnu: node: Patch /usr/bin/env in node-gyp.,
Pierre Langlois <=
- [bug#49946] [PATCH v2 05/33] gnu: rust-tiny-http: Update to 0.8., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 16/33] gnu: Add tree-sitter-go., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 17/33] gnu: Add tree-sitter-html., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 19/33] gnu: Add tree-sitter-javascript., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 12/33] gnu: Add tree-sitter-c., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 28/33] gnu: rust-emacs-module: Update to 0.16., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 31/33] gnu: Add emacs-tree-sitter-core., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 25/33] gnu: Add tree-sitter-typescript., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 23/33] gnu: Add tree-sitter-python., Pierre Langlois, 2021/08/29
- [bug#49946] [PATCH v2 22/33] gnu: Add tree-sitter-php., Pierre Langlois, 2021/08/29