diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-20 15:08:41 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-05-20 16:46:01 +0200 |
commit | 33def910d7e8168c0b5a6a13cfb5910f17a02440 (patch) | |
tree | 7f03646d34b13e55693cdc3442d6c4537cf21af8 /community/rust/cargo-tests-fix-build-auth-http_auth_offered.patch | |
parent | 42fb798cb5dd5bc2cea1278a7fc0e49bffbba8a3 (diff) | |
download | aports-33def910d7e8168c0b5a6a13cfb5910f17a02440.tar.bz2 aports-33def910d7e8168c0b5a6a13cfb5910f17a02440.tar.xz |
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
Diffstat (limited to 'community/rust/cargo-tests-fix-build-auth-http_auth_offered.patch')
-rw-r--r-- | community/rust/cargo-tests-fix-build-auth-http_auth_offered.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/community/rust/cargo-tests-fix-build-auth-http_auth_offered.patch b/community/rust/cargo-tests-fix-build-auth-http_auth_offered.patch new file mode 100644 index 0000000000..d141082856 --- /dev/null +++ b/community/rust/cargo-tests-fix-build-auth-http_auth_offered.patch @@ -0,0 +1,43 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Thu, 13 Aug 2016 14:47:00 +0200 +Last-Updated: Sun, 20 May 2018 16:28:00 +0200 +Subject: [PATCH] Fix test build-auth:http_auth_offered + +The test fails because of hard-coded libgit2 version, that may not be +the same as actually used libgit2... + +--- a/src/tools/cargo/tests/testsuite/build_auth.rs ++++ b/src/tools/cargo/tests/testsuite/build_auth.rs +@@ -17,7 +17,7 @@ + let addr = server.local_addr().unwrap(); + + fn headers(rdr: &mut BufRead) -> HashSet<String> { +- let valid = ["GET", "Authorization", "Accept", "User-Agent"]; ++ let valid = ["GET", "Authorization", "Accept"]; + rdr.lines() + .map(|s| s.unwrap()) + .take_while(|s| s.len() > 2) +@@ -29,7 +29,6 @@ + let t = thread::spawn(move || { + let mut conn = BufStream::new(server.accept().unwrap().0); + let req = headers(&mut conn); +- let user_agent = "User-Agent: git/2.0 (libgit2 0.27.0)"; + conn.write_all( + b"\ + HTTP/1.1 401 Unauthorized\r\n\ +@@ -42,7 +41,6 @@ + vec![ + "GET /foo/bar/info/refs?service=git-upload-pack HTTP/1.1", + "Accept: */*", +- user_agent, + ].into_iter() + .map(|s| s.to_string()) + .collect() +@@ -64,7 +62,6 @@ + "GET /foo/bar/info/refs?service=git-upload-pack HTTP/1.1", + "Authorization: Basic Zm9vOmJhcg==", + "Accept: */*", +- user_agent, + ].into_iter() + .map(|s| s.to_string()) + .collect() |