[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
320/402: gnu: Add mozjs-68.
From: |
guix-commits |
Subject: |
320/402: gnu: Add mozjs-68. |
Date: |
Tue, 18 Aug 2020 16:48:13 -0400 (EDT) |
dannym pushed a commit to branch wip-desktop
in repository guix.
commit 4d86c679d69416c2b1850029ba5cda7ec2e99afe
Author: Kei Kebreau <kkebreau@posteo.net>
AuthorDate: Tue Apr 21 11:10:24 2020 -0400
gnu: Add mozjs-68.
* gnu/packages/gnuzilla.scm (mozjs-68): New variable.
Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
---
gnu/packages/gnuzilla.scm | 84 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 84 insertions(+)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 65e79f4..70ebe1a 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -14,6 +14,7 @@
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2019, 2020 Adrian Malacoda <malacoda@monarch-pass.net>
;;; Copyright © 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
+;;; Copyright © 2020 Kei Kebreau <kkebreau@posteo.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -413,6 +414,89 @@ in C/C++.")
("pkg-config" ,pkg-config)
("python" ,python-2)))))
+(define-public mozjs-68
+ ;; No releases yet at
<https://archive.mozilla.org/pub/spidermonkey/releases/>.
+ ;; While we could take a snapshot of the complete mozilla-esr60 repository at
+ ;;
<https://treeherder.mozilla.org/#/jobs?repo=mozilla-esr68&filter-searchStr=sm-tc>,
+ ;; we take the Debian version instead, because it is easier to work with.
+ (package
+ (inherit mozjs-60)
+ (version "68.6.0-2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://salsa.debian.org/gnome-team/mozjs68.git")
+ (commit (string-append "debian/" version))))
+ (file-name (git-file-name "mozjs" version))
+ (sha256
+ (base32
+ "1iwn19sni8pgkn2p1l4gj4skr2zvmrpl0cfgdknmvxfrvwyfb4dx"))))
+ (arguments
+ `(#:tests? #f ; FIXME: all tests pass, but then the check phase fails
anyway.
+ #:test-target "check-jstests"
+ #:configure-flags
+ `("--enable-ctypes"
+ "--enable-optimize"
+ "--enable-readline"
+ "--enable-shared-js"
+ "--enable-system-ffi"
+ "--with-system-nspr"
+ "--with-system-zlib"
+ "--with-system-icu"
+ "--with-intl-api"
+ ;; This is important because without it gjs will segfault during the
+ ;; configure phase. With jemalloc only the standalone mozjs console
+ ;; will work.
+ "--disable-jemalloc"
+ ;; We must specify the clang paths manually, because otherwise the
+ ;; Mozilla build system looks in the directories returned by
+ ;; llvm-config --bindir and llvm-config --libdir, which return paths
+ ;; in the llvm package where clang is not found.
+ ,(string-append "--with-clang-path="
+ (assoc-ref %build-inputs "clang")
+ "/bin/clang")
+ ,(string-append "--with-libclang-path="
+ (assoc-ref %build-inputs "clang")
+ "/lib"))
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key inputs outputs 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.
+ (let ((out (assoc-ref outputs "out")))
+ (mkdir "run-configure-from-here")
+ (chdir "run-configure-from-here")
+ (setenv "SHELL" (which "sh"))
+ (setenv "CONFIG_SHELL" (which "sh"))
+ (setenv "AUTOCONF" (string-append (assoc-ref inputs "autoconf")
+ "/bin/autoconf"))
+
+ (apply invoke "../js/src/configure"
+ (cons (string-append "--prefix=" out)
+ configure-flags))
+ #t)))
+ (add-after 'unpack 'disable-broken-tests
+ (lambda _
+ ;; This test assumes that /bin exists and contains certain
+ ;; executables.
+ (delete-file "js/src/tests/shell/os.js")
+ #t)))))
+ (native-inputs
+ `(("autoconf" ,autoconf-2.13) ; required for "--localdir" flag to work
+ ("automake" ,automake)
+ ("which" ,which)
+ ("perl" ,perl)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python)
+ ("python-2" ,python-2)
+ ("rust" ,rust)
+ ("cargo" ,rust "cargo")
+ ("rust-cbindgen" ,rust-cbindgen)
+ ("llvm" ,llvm)
+ ("clang" ,clang)))))
+
(define mozilla-compare-locales
(origin
(method hg-fetch)
- 293/402: gnu: gnome-screenshot: Update package definition., (continued)
- 293/402: gnu: gnome-screenshot: Update package definition., guix-commits, 2020/08/18
- 296/402: gnu: gnome-shell-extensions: Update package definition., guix-commits, 2020/08/18
- 304/402: gnu: Add liblouis., guix-commits, 2020/08/18
- 305/402: gnu: Add liblouisutdml., guix-commits, 2020/08/18
- 306/402: gnu: Add latex2html., guix-commits, 2020/08/18
- 310/402: gnu: gst-editing-services: Update package definition., guix-commits, 2020/08/18
- 315/402: gnu: totem: Update package definition., guix-commits, 2020/08/18
- 313/402: gnu: libmusicbrainz: Propagate inputs., guix-commits, 2020/08/18
- 316/402: gnu: wayland: Update package definition., guix-commits, 2020/08/18
- 324/402: gnu: gnome-shell: Update package definition., guix-commits, 2020/08/18
- 320/402: gnu: Add mozjs-68.,
guix-commits <=
- 312/402: gnu: simple-scan: Update package definition., guix-commits, 2020/08/18
- 319/402: gnu: Add egl-wayland., guix-commits, 2020/08/18
- 317/402: gnu: wayland-protocols: Update package definition., guix-commits, 2020/08/18
- 325/402: build-system/glib-or-gtk: Include GI_TYPELIB_PATH in wrapper., guix-commits, 2020/08/18
- 327/402: build-system/python: Also wrap executables that are in "libexec"., guix-commits, 2020/08/18
- 330/402: gnu: gnome: Revise package definition., guix-commits, 2020/08/18
- 331/402: gnu: Add gnome-minimal., guix-commits, 2020/08/18
- 334/402: build-system/cmake: Only include phases that are enabled., guix-commits, 2020/08/18
- 335/402: gnu: gdm: Fix elogind., guix-commits, 2020/08/18
- 336/402: gnu: flatpak: Fix build., guix-commits, 2020/08/18