gnu: mujs: Update to 1.0.6 [fixes CVE-2019-1141{1,2,3}, CVE-2019-12798].
* gnu/packages/javascript.scm (mujs): Update to 1.0.6. [source]: Download using url-fetch. [arguments]: Update 'install-shared-library phase. [home-page]: Update to new home-page.
This commit is contained in:
parent
05f386f103
commit
cb5b51498b
|
@ -2,7 +2,7 @@
|
||||||
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
|
;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
|
||||||
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me@tobias.gr>
|
||||||
;;; Copyright © 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
;;; Copyright © 2018 Nicolas Goaziou <mail@nicolasgoaziou.fr>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -417,32 +417,28 @@ external server.")
|
||||||
(define-public mujs
|
(define-public mujs
|
||||||
(package
|
(package
|
||||||
(name "mujs")
|
(name "mujs")
|
||||||
(version "1.0.5")
|
(version "1.0.6")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method url-fetch)
|
||||||
(uri (git-reference
|
(uri (string-append "https://mujs.com/downloads/mujs-"
|
||||||
(url "https://git.ghostscript.com/mujs.git")
|
version ".tar.xz"))
|
||||||
(commit version)))
|
|
||||||
(file-name (string-append name "-" version "-checkout"))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0pkv26jxwgv5ax0ylfmi4h96h79hj4gvr95218ns8wngnmgr1ny6"))))
|
"1q9w2dcspfp580pzx7sw7x9gbn8j0ak6dvj75wd1ml3f3q3i43df"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(delete 'configure) ; no configure
|
(delete 'configure) ; no configure
|
||||||
(add-after 'install 'install-shared-library
|
(add-after 'install 'install-shared-library
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key (make-flags '()) #:allow-other-keys)
|
||||||
(let ((out (assoc-ref outputs "out")))
|
(apply invoke "make" "install-shared" make-flags))))
|
||||||
(install-file "build/release/libmujs.so"
|
|
||||||
(string-append out "/lib"))))))
|
|
||||||
#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))
|
#:make-flags (list (string-append "prefix=" (assoc-ref %outputs "out"))
|
||||||
(string-append "CC=gcc"))
|
(string-append "CC=gcc"))
|
||||||
#:tests? #f)) ; no tests
|
#:tests? #f)) ; no tests
|
||||||
(inputs
|
(inputs
|
||||||
`(("readline" ,readline)))
|
`(("readline" ,readline)))
|
||||||
(home-page "https://artifex.com/mujs/")
|
(home-page "https://mujs.com/")
|
||||||
(synopsis "JavaScript interpreter written in C")
|
(synopsis "JavaScript interpreter written in C")
|
||||||
(description "MuJS is a lightweight Javascript interpreter designed for
|
(description "MuJS is a lightweight Javascript interpreter designed for
|
||||||
embedding in other software to extend them with scripting capabilities. MuJS
|
embedding in other software to extend them with scripting capabilities. MuJS
|
||||||
|
|
Loading…
Reference in New Issue