[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
79/135: gnu: Add mozjs-60.
From: |
guix-commits |
Subject: |
79/135: gnu: Add mozjs-60. |
Date: |
Fri, 21 Dec 2018 14:37:40 -0500 (EST) |
rekado pushed a commit to branch wip-gnome3.30
in repository guix.
commit f4605a7ec612ddd6397cf7f84558549628881f3c
Author: Ricardo Wurmus <address@hidden>
Date: Mon Dec 3 16:24:45 2018 +0100
gnu: Add mozjs-60.
* gnu/packages/gnuzilla.scm (mozjs-60): New variable.
---
gnu/packages/gnuzilla.scm | 67 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 67 insertions(+)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 27a6b69..a3b680b 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -329,6 +329,73 @@ in C/C++.")
("automake" ,automake)
,@(package-native-inputs mozjs-38))))))
+(define-public mozjs-60
+ ;; 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-esr60&filter-searchStr=sm-tc>,
+ ;; we take the Debian version instead, because it is easier to work with.
+ (package
+ (inherit mozjs-38)
+ (version "60.2.3-2")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://salsa.debian.org/gnome-team/mozjs60.git")
+ (commit (string-append "debian/" version))))
+ (file-name (git-file-name "mozjs" version))
+ (sha256
+ (base32
+ "091w050rwzrdcbgyi934k2viyccmlqxrp13sm2mql71mabb5dai6"))))
+ (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-pie"
+ "--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")
+ #: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)
+ ("automake" ,automake)
+ ("which" ,which)
+ ("perl" ,perl)
+ ("pkg-config" ,pkg-config)
+ ("python" ,python-2)))))
+
(define-public nspr
(package
(name "nspr")
- 93/135: gnu: seahorse: Update to 3.30., (continued)
- 93/135: gnu: seahorse: Update to 3.30., guix-commits, 2018/12/21
- 120/135: gnu: gvfs: Update to 1.38.1., guix-commits, 2018/12/21
- 35/135: gnu: gnome-keyring: Update to 3.28.2., guix-commits, 2018/12/21
- 09/135: gnu: yelp-tools: Update to 3.28.0., guix-commits, 2018/12/21
- 112/135: gnu: gdm: Update to 3.30.2., guix-commits, 2018/12/21
- 90/135: gnu: libwnck: Update to 3.30.0., guix-commits, 2018/12/21
- 24/135: gnu: goffice: Update to 0.10.41., guix-commits, 2018/12/21
- 68/135: gnu: cups-filters: Fix build with newer version of poppler., guix-commits, 2018/12/21
- 77/135: gnu: gobject-introspection: Update to 1.58.1., guix-commits, 2018/12/21
- 75/135: gnu: libqmi: Update to 1.20.2., guix-commits, 2018/12/21
- 79/135: gnu: Add mozjs-60.,
guix-commits <=
- 07/135: gnu: yelp: Update to 3.28.1., guix-commits, 2018/12/21
- 31/135: gnu: totem-pl-parser: Update to 3.26.1., guix-commits, 2018/12/21
- 44/135: gnu: gnome-session: Update to 3.28.1., guix-commits, 2018/12/21
- 88/135: gnu: libgnomeprint: Update to 2.18.8., guix-commits, 2018/12/21
- 50/135: gnu: gnome-calculator: Update to 3.28.2., guix-commits, 2018/12/21
- 17/135: gnu: gnome-maps: Update to 3.28.2., guix-commits, 2018/12/21
- 118/135: gnu: libgdata: Update to 0.17.9., guix-commits, 2018/12/21
- 67/135: gnu: dconf-editor: Update to 3.28.0., guix-commits, 2018/12/21
- 133/135: gnu: gnome-online-accounts: Update to 3.30.0., guix-commits, 2018/12/21
- 32/135: gnu: eog: Update to 3.28.2., guix-commits, 2018/12/21