[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
78/133: gnu: Add mozjs-60.
From: |
guix-commits |
Subject: |
78/133: gnu: Add mozjs-60. |
Date: |
Sun, 6 Jan 2019 16:59:43 -0500 (EST) |
rekado pushed a commit to branch wip-gnome3.30
in repository guix.
commit 3619ce2bc81caf64d5bfacb7b428b9201883ec5f
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 b298cce..f2d1dfb 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")
- 63/133: gnu: gnome-online-accounts: Update to 3.28.0., (continued)
- 63/133: gnu: gnome-online-accounts: Update to 3.28.0., guix-commits, 2019/01/06
- 57/133: gnu: tracker: Update to 2.0.4., guix-commits, 2019/01/06
- 87/133: gnu: libgnomeprint: Update to 2.18.8., guix-commits, 2019/01/06
- 94/133: gnu: dconf: Update to 0.30.1., guix-commits, 2019/01/06
- 95/133: gnu: five-or-more: Update to 3.30.0., guix-commits, 2019/01/06
- 96/133: gnu: gnome-mines: Update to 3.30.1.1., guix-commits, 2019/01/06
- 100/133: gnu: glib: Install m4 macros., guix-commits, 2019/01/06
- 102/133: gnu: gtkmm: Update to 3.24.0., guix-commits, 2019/01/06
- 108/133: gnu: gnome-calculator: Update to 3.30.1., guix-commits, 2019/01/06
- 77/133: gnu: gmime: Update to 3.2.3., guix-commits, 2019/01/06
- 78/133: gnu: Add mozjs-60.,
guix-commits <=
- 103/133: gnu: atkmm: Update to 2.28.0., guix-commits, 2019/01/06
- 101/133: gnu: libimobiledevice: Propagate libplist., guix-commits, 2019/01/06
- 105/133: gnu: at-spi2-atk: Update to 2.30.0., guix-commits, 2019/01/06
- 107/133: gnu: gnome-system-monitor: Update to 3.30.0., guix-commits, 2019/01/06
- 109/133: gnu: network-manager-applet: Update to 1.8.18., guix-commits, 2019/01/06
- 117/133: gnu: Add libnfs., guix-commits, 2019/01/06
- 111/133: gnu: gnome-keyring: Add missing input., guix-commits, 2019/01/06
- 113/133: gnu: network-manager: Update to 1.14.4., guix-commits, 2019/01/06
- 126/133: gnu: yelp-xsl: Update to 3.30.1., guix-commits, 2019/01/06
- 125/133: gnu: gexiv2: Update to 0.10.9., guix-commits, 2019/01/06