2022-02-03 07:07:15 +00:00
|
|
|
--- rustc-1.58.0-src/Cargo.lock.orig 2022-01-11 16:13:10.125323813 -0800
|
|
|
|
+++ rustc-1.58.0-src/Cargo.lock 2022-01-11 16:22:54.313011908 -0800
|
|
|
|
@@ -909,7 +909,6 @@
|
2021-02-03 06:27:55 +00:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
- "libnghttp2-sys",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
2022-02-03 07:07:15 +00:00
|
|
|
@@ -1927,16 +1926,6 @@
|
2021-07-14 04:38:06 +00:00
|
|
|
checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a"
|
2021-02-03 06:27:55 +00:00
|
|
|
|
|
|
|
[[package]]
|
|
|
|
-name = "libnghttp2-sys"
|
|
|
|
-version = "0.1.4+1.41.0"
|
|
|
|
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
|
-checksum = "03624ec6df166e79e139a2310ca213283d6b3c30810c54844f307086d4488df1"
|
|
|
|
-dependencies = [
|
|
|
|
- "cc",
|
|
|
|
- "libc",
|
|
|
|
-]
|
|
|
|
-
|
|
|
|
-[[package]]
|
|
|
|
name = "libz-sys"
|
2021-12-10 16:07:08 +00:00
|
|
|
version = "1.1.3"
|
2021-02-03 06:27:55 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2022-02-03 07:07:15 +00:00
|
|
|
--- rustc-1.58.0-src/src/tools/cargo/Cargo.toml.orig 2022-01-11 16:13:10.127323771 -0800
|
|
|
|
+++ rustc-1.58.0-src/src/tools/cargo/Cargo.toml 2022-01-11 16:14:50.721203730 -0800
|
|
|
|
@@ -22,7 +22,7 @@
|
2021-12-10 16:07:08 +00:00
|
|
|
cargo-util = { path = "crates/cargo-util", version = "0.1.1" }
|
2021-06-09 04:52:10 +00:00
|
|
|
crates-io = { path = "crates/crates-io", version = "0.33.0" }
|
2021-02-03 06:27:55 +00:00
|
|
|
crossbeam-utils = "0.8"
|
2022-02-03 07:07:15 +00:00
|
|
|
-curl = { version = "0.4.41", features = ["http2"] }
|
|
|
|
+curl = { version = "0.4.41", features = [] }
|
|
|
|
curl-sys = "0.4.50"
|
2021-12-10 16:07:08 +00:00
|
|
|
env_logger = "0.9.0"
|
2021-02-03 06:27:55 +00:00
|
|
|
pretty_env_logger = { version = "0.4", optional = true }
|
2022-02-03 07:07:15 +00:00
|
|
|
--- rustc-1.58.0-src/src/tools/cargo/src/cargo/core/package.rs.orig 2022-01-11 03:18:44.000000000 -0800
|
|
|
|
+++ rustc-1.58.0-src/src/tools/cargo/src/cargo/core/package.rs 2022-01-11 16:13:10.127323771 -0800
|
|
|
|
@@ -419,14 +419,8 @@
|
2021-02-03 06:27:55 +00:00
|
|
|
// Also note that pipelining is disabled as curl authors have indicated
|
|
|
|
// that it's buggy, and we've empirically seen that it's buggy with HTTP
|
|
|
|
// proxies.
|
|
|
|
- let mut multi = Multi::new();
|
|
|
|
- let multiplexing = config.http_config()?.multiplexing.unwrap_or(true);
|
|
|
|
- multi
|
|
|
|
- .pipelining(false, multiplexing)
|
2021-07-14 04:38:06 +00:00
|
|
|
- .with_context(|| "failed to enable multiplexing/pipelining in curl")?;
|
2021-02-03 06:27:55 +00:00
|
|
|
-
|
|
|
|
- // let's not flood crates.io with connections
|
|
|
|
- multi.set_max_host_connections(2)?;
|
|
|
|
+ let multi = Multi::new();
|
|
|
|
+ let multiplexing = false;
|
|
|
|
|
|
|
|
Ok(PackageSet {
|
|
|
|
packages: package_ids
|
2022-02-03 07:07:15 +00:00
|
|
|
@@ -655,7 +649,7 @@
|
2021-02-03 06:27:55 +00:00
|
|
|
macro_rules! try_old_curl {
|
|
|
|
($e:expr, $msg:expr) => {
|
|
|
|
let result = $e;
|
|
|
|
- if cfg!(target_os = "macos") {
|
|
|
|
+ if cfg!(any(target_os = "linux", target_os = "macos")) {
|
|
|
|
if let Err(e) = result {
|
|
|
|
warn!("ignoring libcurl {} error: {}", $msg, e);
|
|
|
|
}
|