all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Liliana Marie Prikler <liliana.prikler@gmail.com>
To: 74756@debbugs.gnu.org
Cc: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com,
	vivien@planete-kraus.eu, nandre@riseup.net, clement@lassieur.org,
	jonathan.brielmaier@web.de, mhw@netris.org
Subject: [bug#74756] [PATCH gnome-team 2/3] gnu: mozjs: Update to 128.3.1.
Date: Mon, 9 Dec 2024 20:22:40 +0100	[thread overview]
Message-ID: <90a179cd793e72771ecfdf40f743bdf7c024cc94.1733775119.git.liliana.prikler@gmail.com> (raw)
In-Reply-To: <cover.1733775119.git.liliana.prikler@gmail.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 4462 bytes --]

* gnu/packages/gnuzilla.scm (mozjs): Update to 128.3.1.
[#:phases]<configure>: Set HOME.
<adjust-tests>: Update accordingly.
[native-inputs]: Add rust-cbindgen.
(mozjs-102): New variable.
---
 gnu/packages/gnuzilla.scm | 49 +++++++++++++++++++++++++++++++++++----
 1 file changed, 45 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index a65b1fbb8b..567384a5a9 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -104,7 +104,7 @@ (define-module (gnu packages gnuzilla)
 (define-public mozjs
   (package
     (name "mozjs")
-    (version "102.2.0")
+    (version "128.3.1")
     (source (origin
               (method url-fetch)
               ;; TODO: Switch to IceCat source once available on ftp.gnu.org.
@@ -113,7 +113,7 @@ (define-public mozjs
                                   version "esr.source.tar.xz"))
               (sha256
                (base32
-                "1zwpgis7py1bf8p88pz3mpai6a02qrdb8ww2fa9kxxdl9b8r2k81"))))
+                "1a3h7p7126pxzpidb1lqckvhfh1had805mai4l96mnc878phbx61"))))
     (build-system gnu-build-system)
     (arguments
      (list
@@ -161,6 +161,8 @@ (define-public mozjs
               ;; but not the root directory either.
               (mkdir "run-configure-from-here")
               (chdir "run-configure-from-here")
+              ;; Configure script writes to $HOME.
+              (setenv "HOME" (getcwd))
               (setenv "SHELL" (which "sh"))
               (setenv "CONFIG_SHELL" (which "sh"))
               (setenv "AUTOCONF" (which "autoconf"))
@@ -198,7 +200,29 @@ (define-public mozjs
                 ;; FIXME: got "en-US-posix", expected "en-US-POSIX".
                 (delete-file "non262/Intl/available-locales-supported.js")
                 ;; FIXME: got "en-US", expected "en-US-POSIX"
-                (delete-file "non262/Intl/available-locales-resolved.js"))))
+                (delete-file "non262/Intl/available-locales-resolved.js")
+
+                ;;; 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"))))
           (add-before 'check 'pre-check
             (lambda _
               (setenv "JSTESTS_EXTRA_ARGS"
@@ -219,7 +243,8 @@ (define-public mozjs
            pkg-config
            python-wrapper
            rust
-           `(,rust "cargo")))
+           `(,rust "cargo")
+           rust-cbindgen))
     (inputs
      (list icu4c readline zlib))
     (propagated-inputs
@@ -231,6 +256,22 @@ (define-public mozjs
 in C/C++.")
     (license license:mpl2.0))) ; and others for some files
 
+(define-public mozjs-102
+  (package
+    (inherit mozjs)
+    (name "mozjs")
+    (version "102.2.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
+                "1zwpgis7py1bf8p88pz3mpai6a02qrdb8ww2fa9kxxdl9b8r2k81"))))
+    (inputs (modify-inputs (package-inputs mozjs)
+              (replace "icu4c" icu4c-71)))))
+
 (define-public mozjs-91
   (package
     (inherit mozjs)
-- 
2.46.0





  parent reply	other threads:[~2024-12-09 21:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-09 20:11 [bug#74756] [PATCH gnome-team 0/3] Update gjs to 1.82.1 Liliana Marie Prikler
2024-12-08 11:19 ` [bug#74756] [PATCH gnome-team 1/3] gnu: Make icu4c 73.1 the default Liliana Marie Prikler
2024-12-09 22:07   ` Mark H Weaver
2024-12-09 19:22 ` Liliana Marie Prikler [this message]
2024-12-09 19:26 ` [bug#74756] [PATCH gnome-team 3/3] gnu: gjs: Update to 1.82.1 Liliana Marie Prikler
2024-12-10 23:11 ` [bug#74756] [PATCH gnome-team 0/3] Update gjs " André Batista
2024-12-11 18:30   ` Liliana Marie Prikler
2024-12-11 23:28     ` André Batista

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=90a179cd793e72771ecfdf40f743bdf7c024cc94.1733775119.git.liliana.prikler@gmail.com \
    --to=liliana.prikler@gmail.com \
    --cc=74756@debbugs.gnu.org \
    --cc=clement@lassieur.org \
    --cc=jonathan.brielmaier@web.de \
    --cc=maxim.cournoyer@gmail.com \
    --cc=mhw@netris.org \
    --cc=nandre@riseup.net \
    --cc=vivien@planete-kraus.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.