From 33def910d7e8168c0b5a6a13cfb5910f17a02440 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Sun, 20 May 2018 15:08:41 +0200 Subject: community/rust: build cargo and add cargo* subpackages Cargo is now distributed together with rustc. Upstream has removed Cargo.lock from the cargo's repository in cargo 0.23.0, so we can't build it with locked and freezed dependencies separately anymore. alexcrichton replied on Feb 1: > cargo is packaged next to rustc, it's not intended to be a separate > package but rather built as one unit. See https://github.com/rust-lang/cargo/commit/5c9665f41c6b4d3b99d3b9f8b48a286f5f154692 --- ...ving_minimum_version_with_transitive_deps.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 community/rust/cargo-tests-ignore-resolving_minimum_version_with_transitive_deps.patch (limited to 'community/rust/cargo-tests-ignore-resolving_minimum_version_with_transitive_deps.patch') diff --git a/community/rust/cargo-tests-ignore-resolving_minimum_version_with_transitive_deps.patch b/community/rust/cargo-tests-ignore-resolving_minimum_version_with_transitive_deps.patch new file mode 100644 index 0000000000..d8d6a10b22 --- /dev/null +++ b/community/rust/cargo-tests-ignore-resolving_minimum_version_with_transitive_deps.patch @@ -0,0 +1,32 @@ +This test is probably broken, ignore it for now. + + thread 'resolve::test_resolving_minimum_version_with_transitive_deps' + panicked at 'called `Result::unwrap()` on an `Err` value: + ErrorMessage { msg: "the `-Z` flag is only accepted on the nightly channel of Cargo" } + + stack backtrace: + 0: 0x562c29c6f9ec - backtrace::backtrace::trace::h6219b4e271e2bbe6 + 1: 0x562c29c6e302 - backtrace::capture::Backtrace::new_unresolved::h8d9c4862e2ea3928 + 2: 0x562c29c6df25 - failure::backtrace::internal::InternalBacktrace::new::h749290dead787373 + 3: 0x562c29c6d9e1 - failure::backtrace::Backtrace::new::hc2e5a373190e1710 + 4: 0x562c29ba26eb - cargo::core::features::CliUnstable::parse::h30f39ff567c7869c + 5: 0x562c29be560b - cargo::util::config::Config::configure::hae0b13d11622f31e + 6: 0x562c299a0461 - testsuite::resolve::test_resolving_minimum_version_with_transitive_deps::hec5b2ebc1f7900a2 + 7: 0x562c29a653d8 - core::ops::function::FnOnce::call_once::hbe08dbf200c0490c + 8: 0x562c29b63be1 - test::run_test::{{closure}}::h3bfbae1658ea152d + at libtest/lib.rs:1453 + - core::ops::function::FnOnce::call_once::h3e2023796b061538 + at src/libcore/ops/function.rs:223 + - >::call_box::h746d3bbd114f184c + at src/liballoc/boxed.rs:784 + +--- a/src/tools/cargo/tests/testsuite/resolve.rs ++++ b/src/tools/cargo/tests/testsuite/resolve.rs +@@ -341,6 +341,7 @@ + } + + #[test] ++#[ignore] + fn test_resolving_minimum_version_with_transitive_deps() { + // When the minimal-versions config option is specified then the lowest + // possible version of a package should be selected. "util 1.0.0" can't be -- cgit v1.2.3