R: 3.2.4 -> 3.3.2

This commit is contained in:
Justin Bedo
2017-02-24 15:22:12 +11:00
parent c34a52bf5d
commit 4bb8727284
8 changed files with 6662 additions and 4430 deletions
+4 -8
View File
@@ -7,11 +7,11 @@
}:
stdenv.mkDerivation rec {
name = "R-3.2.4";
name = "R-3.3.2";
src = fetchurl {
url = "http://cran.r-project.org/src/base/R-3/${name}.tar.gz";
sha256 = "0l6k3l3cy6fa9xkn23zvz5ykpw10s45779x88yz3pzn2x5gl1zds";
sha256 = "0k2i9qdd83g09fcpls2198q4ykxkii5skczb514gnx7mx4hsv56j";
};
buildInputs = [ bzip2 gfortran libX11 libXmu libXt
@@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
++ stdenv.lib.optionals (!stdenv.isDarwin) [ tcl tk ]
++ stdenv.lib.optionals stdenv.isDarwin [ Cocoa Foundation cf-private libobjc ];
patches = [ ./no-usr-local-search-paths.patch ];
patches = [ ./no-usr-local-search-paths.patch ./zlib-version-check.patch ];
preConfigure = ''
configureFlagsArray=(
@@ -35,10 +35,6 @@ stdenv.mkDerivation rec {
--with-libpng
--with-jpeglib
--with-libtiff
--with-system-zlib
--with-system-bzlib
--with-system-pcre
--with-system-xz
--with-ICU
${stdenv.lib.optionalString enableStrictBarrier "--enable-strict-barrier"}
--enable-R-shlib
@@ -69,7 +65,7 @@ stdenv.mkDerivation rec {
installTargets = [ "install" "install-info" "install-pdf" ];
doCheck = true;
doCheck = withRecommendedPackages;
enableParallelBuilding = true;
@@ -0,0 +1,20 @@
diff --git a/configure b/configure
index cf368ce..dc528ff 100755
--- a/configure
+++ b/configure
@@ -35507,10 +35507,11 @@ else
#include <string.h>
#include <zlib.h>
int main() {
-#ifdef ZLIB_VERSION
-/* Work around Debian bug: it uses 1.2.3.4 even though there was no such
- version on the master site zlib.net */
- exit(strncmp(ZLIB_VERSION, "1.2.5", 5) < 0);
+#ifdef ZLIB_VERNUM
+ if (ZLIB_VERNUM < 0x01250) {
+ exit(1);
+ }
+ exit(0);
#else
exit(1);
#endif