mbakke pushed a commit to branch master
in repository guix.

commit 0861dbdef68cb979471e8c2ffc5e5afca209632c
Author: Marius Bakke <[email protected]>
AuthorDate: Wed Jun 16 18:27:25 2021 +0200

    gnu: node: Prepare for ICU 69.
    
    * gnu/packages/node.scm (node)[source](snippet): Add substitution.
---
 gnu/packages/node.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/node.scm b/gnu/packages/node.scm
index 4e80dd4..36c45e9 100644
--- a/gnu/packages/node.scm
+++ b/gnu/packages/node.scm
@@ -5,7 +5,7 @@
 ;;; Copyright © 2016 Ludovic Courtès <[email protected]>
 ;;; Copyright © 2017 Mike Gerwitz <[email protected]>
 ;;; Copyright © 2018 Tobias Geerinckx-Rice <[email protected]>
-;;; Copyright © 2018, 2019, 2020 Marius Bakke <[email protected]>
+;;; Copyright © 2018, 2019, 2020, 2021 Marius Bakke <[email protected]>
 ;;; Copyright © 2020 Pierre Langlois <[email protected]>
 ;;; Copyright © 2020 Ricardo Wurmus <[email protected]>
 ;;; Copyright © 2021 Simon Tournier <[email protected]>
@@ -64,6 +64,13 @@
               (modules '((guix build utils)))
               (snippet
                `(begin
+                  ;; Patch for compatibility with ICU 68 and newer, which
+                  ;; removed the public TRUE and FALSE macros.
+                  (substitute* '("deps/v8/src/objects/intl-objects.cc"
+                                 "deps/v8/src/runtime/runtime-intl.cc")
+                    (("TRUE") "true")
+                    (("FALSE") "false"))
+
                   ;; Remove bundled software.
                   (for-each delete-file-recursively
                             '("deps/cares"

Reply via email to