git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #11629 from michelk/R/update

R: 3.2.2 -> 3.2.3

commite5e7d1411dd12df5a60a5454e06d5af1a3f0b362 authorPeter Simons <simons@cryp.to> dateFri 11 Dec 2015, 14:28 (11 years ago) parent3960ecbcebbb18
2 files changed+3−28
pkgs/applications/science/math/R/default.nix+3−4 pkgs/applications/science/math/R/fix-tests-without-recommended-packages.patch−24
pkgs/applications/science/math/R/default.nix+3−4
@@ -6,11 +6,11 @@
66}:
77
88stdenv.mkDerivation rec {
9− name = "R-3.2.2";
9+ name = "R-3.2.3";
1010
1111 src = fetchurl {
1212 url = "http://cran.r-project.org/src/base/R-3/${name}.tar.gz";
13− sha256 = "07a6s865bjnh7w0fqsrkv1pva76w99v86w0w787qpdil87km54cw";
13+ sha256 = "b93b7d878138279234160f007cb9b7f81b8a72c012a15566e9ec5395cfd9b6c1";
1414 };
1515
1616 buildInputs = [ bzip2 gfortran libX11 libXmu libXt
@@ -19,8 +19,7 @@ stdenv.mkDerivation rec {
1919 which jdk openblas curl
2020 ];
2121
22− patches = [ ./no-usr-local-search-paths.patch
23− ./fix-tests-without-recommended-packages.patch ];
22+ patches = [ ./no-usr-local-search-paths.patch ];
2423
2524 preConfigure = ''
2625 configureFlagsArray=(
pkgs/applications/science/math/R/fix-tests-without-recommended-packages.patchdeleted−24
@@ -1,24 +0,0 @@
1−diff -Naur R-3.2.2-upstream/tests/reg-packages.R R-3.2.2/tests/reg-packages.R
2−--- R-3.2.2-upstream/tests/reg-packages.R 2015-08-05 17:45:05.000000000 -0430
3−+++ R-3.2.2/tests/reg-packages.R 2015-10-01 02:11:05.484992903 -0430
4−@@ -82,7 +82,8 @@
5− ## pkgB tests an empty R directory
6− dir.create(file.path(pkgPath, "pkgB", "R"), recursive = TRUE,
7− showWarnings = FALSE)
8−-p.lis <- if("Matrix" %in% row.names(installed.packages(.Library)))
9−+matrixIsInstalled <- "Matrix" %in% row.names(installed.packages(.Library))
10−+p.lis <- if(matrixIsInstalled)
11− c("pkgA", "pkgB", "exNSS4") else "exNSS4"
12− for(p. in p.lis) {
13− cat("building package", p., "...\n")
14−@@ -111,8 +112,8 @@
15− tools::assertError(is.null(pkgA:::nilData))
16− }
17−
18−-if(dir.exists(file.path("myLib", "exNSS4"))) {
19−- for(ns in c("pkgB", "pkgA", "Matrix", "exNSS4")) unloadNamespace(ns)
20−+if(matrixIsInstalled && dir.exists(file.path("myLib", "exNSS4"))) {
21−+ for(ns in c(rev(p.lis), "Matrix")) unloadNamespace(ns)
22− ## Both exNSS4 and Matrix define "atomicVector" *the same*,
23− ## but 'exNSS4' has it extended - and hence *both* are registered in cache -> "conflicts"
24− requireNamespace("exNSS4", lib= "myLib")