2023-01-26 20:09:44 +00:00
|
|
|
--- rustc-beta-src/Cargo.lock.orig 2023-01-24 13:25:47.822917185 -0800
|
|
|
|
+++ rustc-beta-src/Cargo.lock 2023-01-24 13:25:47.824917142 -0800
|
|
|
|
@@ -1062,7 +1062,6 @@
|
2022-04-07 17:33:38 +00:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
- "libnghttp2-sys",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
2023-01-26 20:09:44 +00:00
|
|
|
@@ -2181,16 +2180,6 @@
|
2022-04-07 17:33:38 +00:00
|
|
|
checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a"
|
|
|
|
|
|
|
|
[[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"
|
|
|
|
version = "1.1.3"
|
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-01-26 20:09:44 +00:00
|
|
|
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2023-01-24 13:25:47.824917142 -0800
|
|
|
|
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2023-01-24 13:26:29.209044200 -0800
|
2022-11-03 17:40:06 +00:00
|
|
|
@@ -21,7 +21,7 @@
|
|
|
|
cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" }
|
2023-01-26 20:09:44 +00:00
|
|
|
cargo-util = { path = "crates/cargo-util", version = "0.2.3" }
|
|
|
|
crates-io = { path = "crates/crates-io", version = "0.35.0" }
|
|
|
|
-curl = { version = "0.4.44", features = ["http2"] }
|
|
|
|
+curl = { version = "0.4.44", features = [] }
|
|
|
|
curl-sys = "0.4.59"
|
|
|
|
env_logger = "0.10.0"
|
2022-04-07 17:33:38 +00:00
|
|
|
pretty_env_logger = { version = "0.4", optional = true }
|
2023-01-26 20:09:44 +00:00
|
|
|
--- rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs.orig 2023-01-21 17:17:19.000000000 -0800
|
|
|
|
+++ rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs 2023-01-24 13:25:47.824917142 -0800
|
2022-05-19 23:19:51 +00:00
|
|
|
@@ -403,16 +403,9 @@
|
|
|
|
sources: SourceMap<'cfg>,
|
|
|
|
config: &'cfg Config,
|
|
|
|
) -> CargoResult<PackageSet<'cfg>> {
|
|
|
|
- // We've enabled the `http2` feature of `curl` in Cargo, so treat
|
|
|
|
- // failures here as fatal as it would indicate a build-time problem.
|
2022-04-07 17:33:38 +00:00
|
|
|
- let mut multi = Multi::new();
|
|
|
|
- let multiplexing = config.http_config()?.multiplexing.unwrap_or(true);
|
|
|
|
- multi
|
|
|
|
- .pipelining(false, multiplexing)
|
|
|
|
- .with_context(|| "failed to enable multiplexing/pipelining in curl")?;
|
|
|
|
-
|
|
|
|
- // let's not flood crates.io with connections
|
|
|
|
- multi.set_max_host_connections(2)?;
|
2022-05-19 23:19:51 +00:00
|
|
|
+ // Multiplexing is disabled because the system libcurl doesn't support it.
|
2022-04-07 17:33:38 +00:00
|
|
|
+ let multi = Multi::new();
|
|
|
|
+ let multiplexing = false;
|
|
|
|
|
|
|
|
Ok(PackageSet {
|
|
|
|
packages: package_ids
|
2022-05-19 23:19:51 +00:00
|
|
|
@@ -658,7 +651,7 @@
|
2022-04-07 17:33:38 +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);
|
|
|
|
}
|
2023-01-26 20:09:44 +00:00
|
|
|
--- rustc-beta-src/src/tools/cargo/src/cargo/sources/registry/http_remote.rs.orig 2023-01-21 17:17:19.000000000 -0800
|
|
|
|
+++ rustc-beta-src/src/tools/cargo/src/cargo/sources/registry/http_remote.rs 2023-01-24 13:25:47.824917142 -0800
|
|
|
|
@@ -223,16 +223,8 @@
|
|
|
|
}
|
|
|
|
self.fetch_started = true;
|
|
|
|
|
|
|
|
- // We've enabled the `http2` feature of `curl` in Cargo, so treat
|
|
|
|
- // failures here as fatal as it would indicate a build-time problem.
|
|
|
|
- self.multiplexing = self.config.http_config()?.multiplexing.unwrap_or(true);
|
|
|
|
-
|
|
|
|
- self.multi
|
|
|
|
- .pipelining(false, self.multiplexing)
|
|
|
|
- .with_context(|| "failed to enable multiplexing/pipelining in curl")?;
|
|
|
|
-
|
|
|
|
- // let's not flood the server with connections
|
|
|
|
- self.multi.set_max_host_connections(2)?;
|
|
|
|
+ // Multiplexing is disabled because the system libcurl doesn't support it.
|
|
|
|
+ self.multiplexing = false;
|
|
|
|
|
|
|
|
self.config
|
|
|
|
.shell()
|