update julia-0.3.6 -> julia-0.3.9

Includes a workaround for the test suite suggested by
upstream (b192bf0e2f (commitcomment-11139348))
for a buggy system wcwidth.
This commit is contained in:
Thomas Tuegel 2015-06-04 12:36:34 -05:00
parent bd280660f7
commit 2b525f60c9
2 changed files with 28 additions and 2 deletions

View File

@ -11,16 +11,18 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "julia"; pname = "julia";
version = "0.3.6"; version = "0.3.9";
name = "${pname}-${version}"; name = "${pname}-${version}";
src = fetchgit { src = fetchgit {
url = "git://github.com/JuliaLang/julia.git"; url = "git://github.com/JuliaLang/julia.git";
rev = "refs/tags/v${version}"; rev = "refs/tags/v${version}";
md5 = "d28e8f428485219f756d80c011d5dd32"; sha256 = "ad0820affefd04eb6fba7deb2603756974711846a251900a9202b8d2665a37cf";
name = "julia-git-v${version}"; name = "julia-git-v${version}";
}; };
patches = [ ./0001-work-around-buggy-wcwidth.patch ];
extraSrcs = extraSrcs =
let let
dsfmt_ver = "2.2"; dsfmt_ver = "2.2";

View File

@ -0,0 +1,24 @@
From b9070aeab0ab672ffe321089631f9afe263b0caa Mon Sep 17 00:00:00 2001
From: Thomas Tuegel <ttuegel@gmail.com>
Date: Thu, 4 Jun 2015 12:03:32 -0500
Subject: [PATCH] work around buggy wcwidth
---
test/unicode.jl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/unicode.jl b/test/unicode.jl
index 52c3e6a..f1ef698 100644
--- a/test/unicode.jl
+++ b/test/unicode.jl
@@ -103,5 +103,6 @@ end
# handling of embedded NUL chars (#10958)
@test length("\0w") == length("\0α") == 2
-@test strwidth("\0w") == strwidth("\0α") == 1
+@test strwidth("\0w") == charwidth('\0') + charwidth('w')
+@test strwidth("\0α") == charwidth('\0') + charwidth('α')
@test normalize_string("\0W", casefold=true) == "\0w"
--
2.4.1