[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
43/181: gnu: mozjs: Add 91.13.0.
From: |
guix-commits |
Subject: |
43/181: gnu: mozjs: Add 91.13.0. |
Date: |
Tue, 13 Sep 2022 02:25:21 -0400 (EDT) |
apteryx pushed a commit to branch master
in repository guix.
commit f89dbfc8a9d5af7ed8952fae617bb13862642bc0
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Wed Aug 24 19:44:56 2022 +0200
gnu: mozjs: Add 91.13.0.
* gnu/packages/gnuzilla.scm (mozjs-91): New variable.
---
gnu/packages/gnuzilla.scm | 82 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 82 insertions(+)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 4c08ef6095..a8fb96a6bc 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -242,6 +242,88 @@
in C/C++.")
(license license:mpl2.0))) ; and others for some files
+(define-public mozjs-91
+ (package
+ (inherit mozjs)
+ (version "91.13.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
+ "0qh7j960wdp5zcfqhkj8ki47spp9i9ms12xx0v0kxvmmw36jpgjk"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments mozjs)
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (delete 'adjust-for-icu-68)
+ (replace 'configure
+ (lambda* (#:key configure-flags #:allow-other-keys)
+ ;; The configure script does not accept environment variables
as
+ ;; arguments. It also must be run from a different directory,
+ ;; but not the root directory either.
+ (mkdir "run-configure-from-here")
+ (chdir "run-configure-from-here")
+ (setenv "SHELL" (which "sh"))
+ (setenv "CONFIG_SHELL" (which "sh"))
+ (setenv "AUTOCONF" (which "autoconf"))
+ (apply invoke "python" "../configure.py"
+ "--enable-project=js"
+ (string-append "--prefix=" #$output)
+ configure-flags)))
+ (add-before 'check 'adjust-tests
+ (lambda _
+ (with-directory-excursion "../js/src/tests"
+ (substitute* "shell/os.js"
+ ;; FIXME: Why does the killed process have an exit status?
+ ((".*killed process should not have exitStatus.*")
+ ""))
+
+ ;; The test suite expects a lightly patched ICU. Disable
tests
+ ;; that do not work with the system version. See
+ ;; "intl/icu-patches" for clues.
+
+ ;; See <https://unicode-org.atlassian.net/browse/ICU-20992>
and
+ ;; <https://bugzilla.mozilla.org/show_bug.cgi?id=1636984> and
+ ;; related patch for why this is failing.
+ (delete-file "non262/Intl/DateTimeFormat/\
+fractional-second-digits-append-item.js")
+ ;; FIXME: got "0 \u251CAM/PM: noon\u2524", expected "0
(AM/PM: noon)"
+ (delete-file
"non262/Intl/DateTimeFormat/day-period-hour-cycle.js")
+ ;; 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")
+
+ ;; FIXME: Assertion failed: got "2021a", expected "2021a3"?
+ (delete-file
"non262/Intl/DateTimeFormat/timeZone_version.js")
+ ;; XXX: Delete all tests that test time zone functionality,
+ ;; because the test suite uses /etc/localtime to figure out
+ ;; the offset from the hardware clock, which does not work
+ ;; in the build container. See <tests/non262/Date/shell.js>.
+ (delete-file-recursively "non262/Date")
+ (delete-file
+ "non262/Intl/DateTimeFormat/tz-environment-variable.js"))))
+ (replace 'pre-check
+ (lambda _
+ (setenv "JSTESTS_EXTRA_ARGS"
+ (string-join
+ (list
+ ;; Do not run tests marked as "random".
+ "--exclude-random"
+ ;; Exclude web platform tests.
+ "--wpt=disabled"
+ ;; Respect the daemons configured number of jobs.
+ (string-append "--worker-count="
+ (number->string
(parallel-job-count))))))))))))
+ (native-inputs (modify-inputs (package-native-inputs mozjs)
+ (replace "autoconf" autoconf)
+ (replace "llvm" llvm)
+ (replace "python" python-wrapper)
+ (append m4)))))
+
(define mozilla-compare-locales
(origin
(method hg-fetch)
- 68/181: gnu: gnome-user-docs: Update to 42.0., (continued)
- 68/181: gnu: gnome-user-docs: Update to 42.0., guix-commits, 2022/09/13
- 100/181: gnu: blueprint-compiler: Update to 0.4.0., guix-commits, 2022/09/13
- 94/181: gnu: phodav: Update to 3.0., guix-commits, 2022/09/13
- 128/181: gnu: gexiv2: Update to 0.14.0., guix-commits, 2022/09/13
- 123/181: gnu: eog-plugins: Update to 42.1., guix-commits, 2022/09/13
- 141/181: gnu: libgovirt: Update to 0.3.9., guix-commits, 2022/09/13
- 142/181: gnu: gfbgraph: Update to 0.2.5 and enable tests., guix-commits, 2022/09/13
- 176/181: gnu: gnome-maps: Update to 43.rc., guix-commits, 2022/09/13
- 178/181: gnu: gpaste: Update to 42.1., guix-commits, 2022/09/13
- 171/181: gnu: chatty: Fix indentation., guix-commits, 2022/09/13
- 43/181: gnu: mozjs: Add 91.13.0.,
guix-commits <=
- 48/181: gnu: accountsservice: Add bash-minimal to inputs., guix-commits, 2022/09/13
- 52/181: gnu: gtksourceview: Update to 5.5.1., guix-commits, 2022/09/13
- 60/181: gnu: gnome-session: Update to 42.0., guix-commits, 2022/09/13
- 64/181: gnu: gnome-disk-utility: Update to 42.0., guix-commits, 2022/09/13
- 80/181: import: gnome: Improve version handling logic., guix-commits, 2022/09/13
- 86/181: gnu: gnome-boxes: Update to 42.3., guix-commits, 2022/09/13
- 93/181: gnu: gnome-music: Update to 42.1., guix-commits, 2022/09/13
- 113/181: gnu: vte-ng: Update to 0.59.0., guix-commits, 2022/09/13
- 104/181: gnu: gupnp-av: Update to 0.14.1., guix-commits, 2022/09/13
- 109/181: gnu: drawing: Update to 1.0.1., guix-commits, 2022/09/13