GNU bug report logs -
#76421
[PATCH] gnu: mozjs: Update to 128.7.0.
Previous Next
Reported by: André Batista <nandre <at> riseup.net>
Date: Wed, 19 Feb 2025 19:42:01 UTC
Severity: normal
Tags: patch
Done: André Batista <nandre <at> riseup.net>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 76421 <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/gnuzilla.scm (mozjs-128): New variable.
Co-Authored-By: Liliana Marie Prikler <liliana.prikler <at> gmail.com>
Change-Id: I67e8f99c35df30379e9dea3b2ceacda2b4d138de
---
gnu/packages/gnuzilla.scm | 56 +++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 7056dc0b52..b6d194d1bf 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -21,6 +21,8 @@
;;; Copyright © 2021 Baptiste Strazzul <bstrazzull <at> hotmail.fr>
;;; Copyright © 2022 SeerLite <seerlite <at> disroot.org>
;;; Copyright © 2024 Aleksandr Vityazev <avityazew <at> gmail.com>
+;;; Copyright © 2025 Liliana Marie Prikler <liliana.prikler <at> gmail.com>
+;;; Copyright © 2025 André Batista <nandre <at> riseup.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -231,6 +233,60 @@ (define-public mozjs
in C/C++.")
(license license:mpl2.0))) ; and others for some files
+(define-public mozjs-128
+ (package
+ (inherit mozjs)
+ (name "mozjs")
+ (version "128.7.0")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "https://ftp.mozilla.org/pub/firefox"
+ "/releases/" version "esr/source/firefox-"
+ version "esr.source.tar.xz"))
+ (sha256
+ (base32
+ "1xwl6z8ax3dw5hjb5lwpl5641rmlizmfqs3xg74cnczsvm7bz9z0"))))
+ (inputs (modify-inputs (package-inputs mozjs)
+ (replace "icu4c" icu4c-73)))
+ (native-inputs (modify-inputs (package-native-inputs mozjs)
+ (append rust-cbindgen)))
+ (arguments
+ (substitute-keyword-arguments (package-arguments mozjs)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (add-before 'configure 'pre-configure-mozjs-v128
+ ;; These logically belong to two different phases ('configure and
+ ;; 'adjust-tests). Move them to their proper places when this version
+ ;; becomes the main one.
+ (lambda _
+ ;; Configure script writes to $HOME.
+ (setenv "HOME" (string-append (getcwd)
+ "/" "run-configure-from-here"))
+ ;; 'adjust-tests
+ (with-directory-excursion "js/src/tests"
+ ;; Since 115:
+ ;; Mismatching array lengths
+ (delete-file "non262/Intl/supportedValuesOf-timeZones-canonical.js")
+ ;; FIXME: got "America/Santa_Isabel", expected "America/Tijuana":
+ ;; America/Santa_Isabel -> America/Tijuana
+ (delete-file "non262/Intl/DateTimeFormat/timeZone_backward_links.js")
+ ;; TODO: tzdata 2024a expected – find a way to regenerate
+ ;; these generated tests
+ (delete-file "non262/Intl/DateTimeFormat/timeZone_version.js")
+ ;; FIXME: got "\uD840\uDDF2", expected "\u5047"
+ (delete-file "non262/Intl/Collator/implicithan.js")
+ ;; FIXME: got "\uD840\uDDF2", expected "\u3467"
+ (delete-file "non262/Intl/Collator/big5han-gb2312han.js")
+ ;; Since 128:
+ ;; FIXME: got (void 0), expected "GMT"
+ (delete-file
+ "non262/Intl/DateTimeFormat/formatRange-timeZoneName-matches-format.js")
+ ;; FIXME: got 7, expected 9: parts count mismatch
+ (delete-file
+ "non262/Intl/DateTimeFormat/formatRange-timeZone-offset.js")
+ (delete-file
+ "non262/Intl/DateTimeFormat/formatRange-timeZoneName.js"))))))))))
+
(define-public mozjs-78
(package
(inherit mozjs)
base-commit: 93551174af7a96d61f22f013ad1b9935106bf040
--
2.48.1
This bug report was last modified 70 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.