guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 60fae9be77c39c6d408fe21c9c186e37aff4a6e5
Author: Noé Lopez <[email protected]>
AuthorDate: Sat May 16 18:37:40 2026 +0200
gnu: mozjs: Keep API compatibility.
When changing to the icecat source, these two symbols are renamed. We
define
aliases to their canonical name.
* gnu/packages/gnuzilla.scm (mozjs)[arguments]<#:phases>: Add phase.
Change-Id: Ifdd09ebab2767faff71b558c7ffb622d101448b5
Signed-off-by: Noé Lopez <[email protected]>
---
gnu/packages/gnuzilla.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 790f6490eb..c4fafda984 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -1881,6 +1881,13 @@ associated with their name."))
"python/mozbuild/mozbuild/backend/base.py"
"python/mozbuild/mozbuild/preprocessor.py")
(("\"rU\"") "\"r\""))))
+ (add-after 'unpack 'restore-api-compat
+ (lambda _
+ (substitute* "js/public/GCAPI.h"
+ (("enum class GCReason")
+ "#define FIRST_FIREFOX_REASON FIRST_ICECAT_REASON
+#define LAST_FIREFOX_REASON LAST_ICECAT_REASON
+enum class GCReason"))))
(add-after 'patch-source-shebangs 'patch-cargo-checksums
(lambda _
(let ((null-hash