git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "rustc: 1.31.0 -> 1.32.0" (#55379)

This reverts commit 56dba36eb5bc783c314d0fa627585cab42cebe7a.

commit882131e7db7b9565aac1bdd0f270919559b17c6a authorTimo Kaufmann <timokau@zoho.com> dateThu 7 Feb 2019, 12:49 (8 years ago) parent724d7d0
5 files changed+36−17
pkgs/development/compilers/rust/bootstrap.nix+8−8 pkgs/development/compilers/rust/cargo.nix+4−4 pkgs/development/compilers/rust/default.nix+8−3 pkgs/development/compilers/rust/patches/disable-test-inherit-env.patch+10 pkgs/development/compilers/rust/rustc.nix+6−2
pkgs/development/compilers/rust/bootstrap.nix+8−8
@@ -3,16 +3,16 @@
33let
44 # Note: the version MUST be one version prior to the version we're
55 # building
6− version = "1.31.0";
6+ version = "1.30.1";
77
8− # fetch hashes by running `print-hashes.sh 1.31.0`
8+ # fetch hashes by running `print-hashes.sh 1.30.0`
99 hashes = {
10− i686-unknown-linux-gnu = "46333e8feec55bc1f99fd03028370f6163ef1e33e483da0389a9c424ec9634ed";
11− x86_64-unknown-linux-gnu = "c8a2016109ffdc12a488660edc5f30c1643729efc15abe311ebb187437e506bf";
12− armv7-unknown-linux-gnueabihf = "60bb75649b457ad971e94dd14c666b59deeee2176b14ae0f98e2fa435c172c1e";
13− aarch64-unknown-linux-gnu = "4e68c70aba58004d9e86c2b4463e88466affee51242349a038b456cf6f4be5c9";
14− i686-apple-darwin = "ec8d08eeea97d78d37430e9b32511e87854aad502f4e3e77e806788246b36e6f";
15− x86_64-apple-darwin = "5d4035e3cecb7df13e728bcff125b52b43b126e91f8311c66b143f353362606f";
10+ i686-unknown-linux-gnu = "c61655977fb16decf0ceb76043b9ae2190927aa9cc24f013d444384dcab99bbf";
11+ x86_64-unknown-linux-gnu = "a01a493ed8946fc1c15f63e74fc53299b26ebf705938b4d04a388a746dfdbf9e";
12+ armv7-unknown-linux-gnueabihf = "9b3b6df02a2a92757e4993a7357fdd02e07b60101a748b4618e6ae1b90bc1b6b";
13+ aarch64-unknown-linux-gnu = "6d87d81561285abd6c1987e07b60b2d723936f037c4b46eedcc12e8566fd3874";
14+ i686-apple-darwin = "a7c14b18e96406d9f43d69d0f984b2fa6f92cc7b7b37e2bb7b70b6f44b02b083";
15+ x86_64-apple-darwin = "3ba1704a7defe3d9a6f0c1f68792c084da83bcba85e936d597bac0c019914b94";
1616 };
1717
1818 platform =
pkgs/development/compilers/rust/cargo.nix+4−4
@@ -10,8 +10,8 @@ rustPlatform.buildRustPackage rec {
1010 inherit version src patches;
1111
1212 # the rust source tarball already has all the dependencies vendored, no need to fetch them again
13− cargoVendorDir = "vendor";
14− preBuild = "pushd src/tools/cargo";
13+ cargoVendorDir = "src/vendor";
14+ preBuild = "cd src; pushd tools/cargo";
1515 postBuild = "popd";
1616
1717 passthru.rustc = rustc;
@@ -23,10 +23,10 @@ rustPlatform.buildRustPackage rec {
2323 buildInputs = [ cacert file curl python openssl cmake zlib makeWrapper libgit2 ]
2424 ++ stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation Security libiconv ];
2525
26− LIBGIT2_SYS_USE_PKG_CONFIG = 1;
26+ LIBGIT2_SYS_USE_PKG_CONFIG=1;
2727
2828 # fixes: the cargo feature `edition` requires a nightly version of Cargo, but this is the `stable` channel
29− RUSTC_BOOTSTRAP = 1;
29+ RUSTC_BOOTSTRAP=1;
3030
3131 # FIXME: Use impure version of CoreFoundation because of missing symbols.
3232 # CFURLSetResourcePropertyForKey is defined in the headers but there's no
pkgs/development/compilers/rust/default.nix+8−3
@@ -7,11 +7,11 @@
77
88let
99 rustPlatform = recurseIntoAttrs (makeRustPlatform (callPackage ./bootstrap.nix {}));
10− version = "1.32.0";
11− cargoVersion = "1.32.0";
10+ version = "1.31.0";
11+ cargoVersion = "1.31.0";
1212 src = fetchurl {
1313 url = "https://static.rust-lang.org/dist/rustc-${version}-src.tar.gz";
14− sha256 = "0ji2l9xv53y27xy72qagggvq47gayr5lcv2jwvmfirx029vlqnac";
14+ sha256 = "01pg2619bwjnhjbphryrbkwaz0lw8cfffm4xlz35znzipb04vmcs";
1515 };
1616in rec {
1717 rustc = callPackage ./rustc.nix {
@@ -22,6 +22,11 @@ in rec {
2222
2323 # Re-evaluate if this we need to disable this one
2424 #./patches/stdsimd-disable-doctest.patch
25+
26+ # Fails on hydra - not locally; the exact reason is unknown.
27+ # Comments in the test suggest that some non-reproducible environment
28+ # variables such $RANDOM can make it fail.
29+ ./patches/disable-test-inherit-env.patch
2530 ];
2631
2732 withBundledLLVM = false;
pkgs/development/compilers/rust/patches/disable-test-inherit-env.patchnew file+10
@@ -0,0 +1,10 @@
1+--- rustc-1.26.2-src.org/src/libstd/process.rs 2018-06-01 21:40:11.000000000 +0100
2++++ rustc-1.26.2-src/src/libstd/process.rs 2018-06-08 07:50:23.023828658 +0100
3+@@ -1745,6 +1745,7 @@
4+ }
5+
6+ #[test]
7++ #[ignore]
8+ fn test_inherit_env() {
9+ use env;
10+
pkgs/development/compilers/rust/rustc.nix+6−2
@@ -1,6 +1,6 @@
11{ stdenv, targetPackages, removeReferencesTo
22, fetchurl, fetchgit, fetchzip, file, python2, tzdata, ps
3−, llvm, ncurses, darwin, rustPlatform, git, cmake, curl
3+, llvm, jemalloc, ncurses, darwin, rustPlatform, git, cmake, curl
44, which, libffi, gdb
55, version
66, withBundledLLVM ? false
@@ -20,6 +20,8 @@ let
2020
2121 llvmShared = llvm.override { enableSharedLibraries = true; };
2222
23+ prefixedJemalloc = jemalloc.override { stripPrefix = false; };
24+
2325 target = builtins.replaceStrings [" "] [","] (builtins.toString targets);
2426in
2527
@@ -60,6 +62,7 @@ stdenv.mkDerivation {
6062 configureFlags = configureFlags
6163 ++ [ "--enable-local-rust" "--local-rust-root=${rustPlatform.rust.rustc}" "--enable-rpath"
6264 "--enable-vendor"
65+ "--jemalloc-root=${prefixedJemalloc}/lib"
6366 "--default-linker=${targetPackages.stdenv.cc}/bin/cc" ]
6467 ++ optional (!withBundledLLVM) [ "--enable-llvm-link-shared" "--llvm-root=${llvmShared}" ]
6568 ++ optional (targets != []) "--target=${target}";
@@ -82,6 +85,7 @@ stdenv.mkDerivation {
8285 patchShebangs src/etc
8386
8487 ${optionalString (!withBundledLLVM) ''rm -rf src/llvm''}
88+ rm -rf src/jemalloc
8589
8690 # Fix the configure script to not require curl as we won't use it
8791 sed -i configure \
@@ -93,7 +97,7 @@ stdenv.mkDerivation {
9397 # https://github.com/rust-lang/rust/issues/39522
9498 echo removing gdb-version-sensitive tests...
9599 find src/test/debuginfo -type f -execdir grep -q ignore-gdb-version '{}' \; -print -delete
96− rm src/test/debuginfo/{borrowed-c-style-enum.rs,c-style-enum-in-composite.rs,generic-enum-with-different-disr-sizes.rs}
100+ rm src/test/debuginfo/{borrowed-c-style-enum.rs,c-style-enum-in-composite.rs,gdb-pretty-struct-and-enums-pre-gdb-7-7.rs,generic-enum-with-different-disr-sizes.rs}
97101
98102 # Useful debugging parameter
99103 # export VERBOSE=1