From patchwork Thu Feb 20 18:02:01 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andr=C3=A9_Batista?= X-Patchwork-Id: 38883 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id A635727BBEA; Thu, 20 Feb 2025 18:03:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CAC3627BBE9 for ; Thu, 20 Feb 2025 18:03:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tlAtA-0003hM-9G; Thu, 20 Feb 2025 13:03:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tlAt6-0003gY-Rf for guix-patches@gnu.org; Thu, 20 Feb 2025 13:03:04 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tlAt6-0000lK-JE for guix-patches@gnu.org; Thu, 20 Feb 2025 13:03:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=ZH4HVAwh6WBOEfBb9eMuMJOURx/1j1B2mxKOS+XB3iI=; b=UOO0j2X/wPM86tmn6gD8+q/N3R2iqwQr7ZquoIKGFiv6pPgKZ7z8ou4YTLYFlMarIF6vmKz2DXPHrA4MCe5ACP4/3tpf6YVilEjNgUhVNkukQa4xshmeBrxbQbVXHrO1KgKg0E3U+nULjOjuZ1xATRSr4zlc6zrUukAHenyR+gImW5YQjWhaQTSYwEaZCHEcxt4RY3BnjC+48Qs899s/qqTh/eUaLWdOu100yjvpglyQT0s9RhnjDuHPeUxG5Nif0v2ZyiVfcBmaazGEJG+eAVKnlT3PTQ1CcFqBJAV4oKkms9Ri8YAsP3bhMoz44Ol80nxBmNoB1vpt54tWAcckFA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tlAt5-0000JK-2y; Thu, 20 Feb 2025 13:03:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#76421] [PATCH v2] gnu: Add mozjs-128 Resent-From: =?utf-8?b?QW5kcsOp?= Batista Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, clement@lassieur.org, ian@retrospec.tv, jonathan.brielmaier@web.de, mhw@netris.org, guix-patches@gnu.org Resent-Date: Thu, 20 Feb 2025 18:03:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76421 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 76421@debbugs.gnu.org Cc: =?utf-8?b?QW5kcsOp?= Batista , Liliana Marie Prikler , liliana.prikler@gmail.com, clement@lassieur.org, ian@retrospec.tv, jonathan.brielmaier@web.de, mhw@netris.org X-Debbugs-Original-Xcc: liliana.prikler@gmail.com, clement@lassieur.org, ian@retrospec.tv, jonathan.brielmaier@web.de, mhw@netris.org Received: via spool by 76421-submit@debbugs.gnu.org id=B76421.1740074543879 (code B ref 76421); Thu, 20 Feb 2025 18:03:03 +0000 Received: (at 76421) by debbugs.gnu.org; 20 Feb 2025 18:02:23 +0000 Received: from localhost ([127.0.0.1]:40270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tlAsQ-0000E4-8e for submit@debbugs.gnu.org; Thu, 20 Feb 2025 13:02:22 -0500 Received: from mx1.riseup.net ([198.252.153.129]:58562) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tlAsN-0000D6-VJ for 76421@debbugs.gnu.org; Thu, 20 Feb 2025 13:02:20 -0500 Received: from fews02-sea.riseup.net (fews02-sea-pn.riseup.net [10.0.1.112]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx1.riseup.net (Postfix) with ESMTPS id 4YzLgp1rf4zDrKn; Thu, 20 Feb 2025 18:02:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1740074534; bh=n8LhAQY7QVZeu/026wifHsuRgmOzdO5f3qIgddIhbUU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=P8BE4UQLf17KKdo/JE0ribJphG0DPPUdXl6geq1cYNttsbGcOnNdhtPghBrAcL3va z+Dy/2hOUHIKqEHfTCegQSW8gcRnrJV53BoAxcNRME1pTjTgw2c/9gCiLkSxitTMkt jTbdchrWYjqQnPNl1DNR0wy0/Zx/51WyxZdn2Sn4= X-Riseup-User-ID: 9F39893DF6915DADE883DC5D3270B926BA7431925380438F4EDC8AD0CE04C67F Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews02-sea.riseup.net (Postfix) with ESMTPSA id 4YzLgn0hqRzFvVD; Thu, 20 Feb 2025 18:02:12 +0000 (UTC) From: =?utf-8?b?QW5kcsOp?= Batista Date: Thu, 20 Feb 2025 15:02:01 -0300 Message-ID: <20250220180205.1137-1-nandre@riseup.net> In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/gnuzilla.scm (mozjs-128): New variable. Co-Authored-By: Liliana Marie Prikler Change-Id: I67e8f99c35df30379e9dea3b2ceacda2b4d138de --- gnu/packages/gnuzilla.scm | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) base-commit: 93551174af7a96d61f22f013ad1b9935106bf040 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 ;;; Copyright © 2022 SeerLite ;;; Copyright © 2024 Aleksandr Vityazev +;;; Copyright © 2025 Liliana Marie Prikler +;;; Copyright © 2025 André Batista ;;; ;;; 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)