summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Enge <andreas@enge.fr>2025-07-29 11:39:46 +0200
committerAndreas Enge <andreas@enge.fr>2025-07-29 11:39:46 +0200
commit806ac0cc045d9b3ea87898bd9343634ee90d2c39 (patch)
treeea59c605a2d29b72ff8be90d055a5752e8aea26c
parent9b155db240680a1bbea602f2be73dcfe1f80ac7a (diff)
gnu: Remove mozjs-78.
* gnu/packages/gnuzilla.scm (mozjs-78): Delete variable. Change-Id: Id9289bec91bd05b6e3f0b2c785b90a6d6a5bc2a1
-rw-r--r--gnu/packages/gnuzilla.scm130
1 files changed, 0 insertions, 130 deletions
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index d91c29bda6..7e5ebef0e9 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -348,136 +348,6 @@ fractional-second-digits-append-item.js")
(inputs
(list icu4c-73 readline zlib))))
-(define-public mozjs-78
- (package
- (inherit mozjs)
- (name "mozjs")
- (version "78.15.0")
- (source (origin
- (method url-fetch)
- (uri (string-append "https://archive.mozilla.org/pub/firefox"
- "/releases/" version "esr/source/firefox-"
- version "esr.source.tar.xz"))
- (sha256
- (base32
- "0l91cxdc5v9fps79ckb1kid4gw6v5qng1jd9zvaacwaiv628shx4"))))
- (build-system gnu-build-system)
- (arguments
- (substitute-keyword-arguments (package-arguments mozjs)
- ((#:phases phases)
- #~(modify-phases #$phases
- (add-after 'unpack 'python-3.11-compatibility
- (lambda _
- (substitute* '("python/mozbuild/mozpack/files.py"
- "python/mozbuild/mozbuild/util.py"
- "python/mozbuild/mozbuild/action/process_define_files.py"
- "python/mozbuild/mozbuild/backend/base.py"
- "python/mozbuild/mozbuild/preprocessor.py"
- "python/mozbuild/mozbuild/virtualenv.py")
- (("'rU'") "'r'"))))
- (add-after 'unpack 'patch-for-python-3.10
- (lambda _
- ;; Some classes were moved from collections to collections.abc
- ;; in Python 3.10.
- (substitute* "python/mozbuild/mozbuild/util.py"
- (("collections\\.Sequence")
- "collections.abc.Sequence"))
- (substitute* "python/mozbuild/mozbuild/makeutil.py"
- (("from collections import Iterable")
- "from collections.abc import Iterable"))
- (substitute* "python/mozbuild/mozbuild/backend/configenvironment.py"
- (("from collections import Iterable, OrderedDict")
- "from collections import OrderedDict\n\
-from collections.abc import Iterable"))
- (substitute*
- "testing/mozbase/manifestparser/manifestparser/filters.py"
- (("from collections import defaultdict, MutableSequence")
- "from collections import defaultdict\n\
-from collections.abc import MutableSequence"))))
- (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 "../js/src/configure"
- (cons (string-append "--prefix=" #$output)
- configure-flags))))
- (replace 'adjust-tests
- (lambda _
- (with-directory-excursion "../js/src/tests"
- ;; The test suite expects a lightly patched ICU 67. Since
- ;; Guix is about to switch to ICU 68, massage the tests to
- ;; work with that instead of patching ICU. Try removing this
- ;; phase for newer versions of mozjs.
-
- ;; These tests look up locale names and expects to get
- ;; "GB" instead of "UK".
- (substitute* "non262/Intl/DisplayNames/language.js"
- (("Traditionell, GB")
- "Traditionell, UK"))
- (substitute* "non262/Intl/DisplayNames/region.js"
- (("\"GB\": \"GB\"")
- "\"GB\": \"UK\""))
-
- ;; XXX: Some localized time formats have changed, and
- ;; substitution fails for accented characters, even though
- ;; it works in the REPL(?). Just delete these for now.
- (delete-file "non262/Intl/Date/toLocaleString_timeZone.js")
- (delete-file "non262/Intl/Date/toLocaleDateString_timeZone.js")
-
- ;; Similarly, these get an unexpected "A" suffix when looking
- ;; up a time in the "ar-MA-u-ca-islamicc" locale, which is
- ;; tricky to substitute.
- (delete-file "non262/Intl/DateTimeFormat/format_timeZone.js")
- (delete-file "non262/Intl/DateTimeFormat/format.js")
-
- ;; This file compares a generated list of ICU locale names
- ;; with actual lookups. Some have changed slightly, i.e.
- ;; daf-Latn-ZZ -> daf-Latn-CI, so drop it for simplicity.
- (delete-file "non262/Intl/Locale/likely-subtags-generated.js"))))
- (replace 'pre-check
- (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.*")
- ""))
-
- ;; 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")
-
- (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
- (list autoconf-2.13
- automake
- llvm ;for llvm-objdump
- perl
- pkg-config
- python-3
- rust
- `(,rust "cargo")))
- (inputs
- (list icu4c-69 readline zlib))))
-
;;;
;;; Localization helper procedures.