mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-12 14:16:55 -05:00
gnu: elixir: Update to 1.5.2 and disable failing tests.
* gnu/packages/elixir.scm (elixir)[origin]: Update to 1.5.2. [arguments]: Patch the shebang of mix. Disable failing tests. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
8cbb58918c
commit
6de3d1762b
1 changed files with 24 additions and 10 deletions
|
@ -2,6 +2,7 @@
|
||||||
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
|
;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
|
||||||
;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
|
;;; Copyright © 2016, 2017 Pjotr Prins <pjotr.guix@thebird.nl>
|
||||||
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2016 Ricardo Wurmus <rekado@elephly.net>
|
||||||
|
;;; Copyright © 2017 nee <nee.git@cock.li>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -30,7 +31,7 @@ (define-module (gnu packages elixir)
|
||||||
(define-public elixir
|
(define-public elixir
|
||||||
(package
|
(package
|
||||||
(name "elixir")
|
(name "elixir")
|
||||||
(version "1.4.2")
|
(version "1.5.2")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "https://github.com/elixir-lang/elixir"
|
(uri (string-append "https://github.com/elixir-lang/elixir"
|
||||||
|
@ -38,7 +39,7 @@ (define-public elixir
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0gsmgx4h6rvxilcbsx2z6yirm6g2g5bsxdvr0608ng4bsv22wknb"))
|
"0v7z0avs3gir7qdfgysfw88l3z9p5f7p7pjnrnsz5gmmsflvf5vk"))
|
||||||
;; FIXME: 27 tests (out of 4K) had to be disabled as
|
;; FIXME: 27 tests (out of 4K) had to be disabled as
|
||||||
;; they fail in the build environment. Common failures
|
;; they fail in the build environment. Common failures
|
||||||
;; are:
|
;; are:
|
||||||
|
@ -55,14 +56,18 @@ (define-public elixir
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'replace-paths
|
(add-after 'unpack 'replace-paths
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(substitute* '("lib/elixir/lib/system.ex"
|
(let ((out (assoc-ref outputs "out")))
|
||||||
"lib/mix/lib/mix/scm/git.ex")
|
(substitute* '("lib/elixir/lib/system.ex"
|
||||||
(("(cmd\\(['\"])git" _ prefix)
|
"lib/mix/lib/mix/scm/git.ex")
|
||||||
(string-append prefix (which "git"))))
|
(("(cmd\\(['\"])git" _ prefix)
|
||||||
(substitute* "bin/elixir"
|
(string-append prefix (which "git"))))
|
||||||
(("ERL_EXEC=\"erl\"")
|
(substitute* "bin/elixir"
|
||||||
(string-append "ERL_EXEC=" (which "erl"))))
|
(("ERL_EXEC=\"erl\"")
|
||||||
|
(string-append "ERL_EXEC=" (which "erl"))))
|
||||||
|
(substitute* "bin/mix"
|
||||||
|
(("#!/usr/bin/env elixir")
|
||||||
|
(string-append "#!" out "/bin/elixir"))))
|
||||||
#t))
|
#t))
|
||||||
(add-after 'unpack 'fix-or-disable-tests
|
(add-after 'unpack 'fix-or-disable-tests
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
@ -75,6 +80,15 @@ (define-public elixir
|
||||||
|
|
||||||
;; FIXME: Mix.Shell.cmd() always fails with error code 130.
|
;; FIXME: Mix.Shell.cmd() always fails with error code 130.
|
||||||
(delete-file "lib/mix/test/mix/shell_test.exs")
|
(delete-file "lib/mix/test/mix/shell_test.exs")
|
||||||
|
|
||||||
|
;; FIXME:
|
||||||
|
;; disabled failing impure tests to make it build again.
|
||||||
|
;; related discussion: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28034#14
|
||||||
|
(delete-file "lib/elixir/test/elixir/kernel/cli_test.exs")
|
||||||
|
(delete-file "lib/elixir/test/elixir/kernel/dialyzer_test.exs")
|
||||||
|
(delete-file "lib/iex/test/iex/helpers_test.exs")
|
||||||
|
(delete-file "lib/ex_unit/test/ex_unit/capture_io_test.exs")
|
||||||
|
|
||||||
#t))
|
#t))
|
||||||
(add-before 'build 'make-current
|
(add-before 'build 'make-current
|
||||||
;; The Elixir compiler checks whether or not to compile files by
|
;; The Elixir compiler checks whether or not to compile files by
|
||||||
|
|
Loading…
Reference in a new issue