|
|
80296c |
--- rustc-beta-src/Cargo.lock.orig 2022-10-04 10:55:48.797517289 -0700
|
|
|
80296c |
+++ rustc-beta-src/Cargo.lock 2022-10-04 10:55:48.799517248 -0700
|
|
|
80296c |
@@ -1026,7 +1026,6 @@
|
|
|
1e9ce7 |
dependencies = [
|
|
|
1e9ce7 |
"cc",
|
|
|
1e9ce7 |
"libc",
|
|
|
1e9ce7 |
- "libnghttp2-sys",
|
|
|
1e9ce7 |
"libz-sys",
|
|
|
1e9ce7 |
"openssl-sys",
|
|
|
1e9ce7 |
"pkg-config",
|
|
|
80296c |
@@ -1993,16 +1992,6 @@
|
|
|
1e9ce7 |
checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a"
|
|
|
1e9ce7 |
|
|
|
1e9ce7 |
[[package]]
|
|
|
1e9ce7 |
-name = "libnghttp2-sys"
|
|
|
1e9ce7 |
-version = "0.1.4+1.41.0"
|
|
|
1e9ce7 |
-source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
1e9ce7 |
-checksum = "03624ec6df166e79e139a2310ca213283d6b3c30810c54844f307086d4488df1"
|
|
|
1e9ce7 |
-dependencies = [
|
|
|
1e9ce7 |
- "cc",
|
|
|
1e9ce7 |
- "libc",
|
|
|
1e9ce7 |
-]
|
|
|
1e9ce7 |
-
|
|
|
1e9ce7 |
-[[package]]
|
|
|
1e9ce7 |
name = "libz-sys"
|
|
|
1e9ce7 |
version = "1.1.3"
|
|
|
1e9ce7 |
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
|
80296c |
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2022-10-04 10:55:48.799517248 -0700
|
|
|
80296c |
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2022-10-04 11:00:55.057162743 -0700
|
|
|
80296c |
@@ -21,7 +21,7 @@
|
|
|
80296c |
cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" }
|
|
|
80296c |
cargo-util = { path = "crates/cargo-util", version = "0.2.1" }
|
|
|
a40f9b |
crates-io = { path = "crates/crates-io", version = "0.34.0" }
|
|
|
80296c |
-curl = { version = "0.4.43", features = ["http2"] }
|
|
|
80296c |
+curl = { version = "0.4.43", features = [] }
|
|
|
80296c |
curl-sys = "0.4.55"
|
|
|
1e9ce7 |
env_logger = "0.9.0"
|
|
|
1e9ce7 |
pretty_env_logger = { version = "0.4", optional = true }
|
|
|
80296c |
--- rustc-beta-src/src/tools/cargo/src/cargo/sources/registry/http_remote.rs.orig 2022-09-24 10:23:17.000000000 -0700
|
|
|
80296c |
+++ rustc-beta-src/src/tools/cargo/src/cargo/sources/registry/http_remote.rs 2022-10-04 10:55:48.799517248 -0700
|
|
|
80296c |
@@ -192,16 +192,8 @@
|
|
|
a40f9b |
}
|
|
|
a40f9b |
self.fetch_started = true;
|
|
|
a40f9b |
|
|
|
a40f9b |
- // We've enabled the `http2` feature of `curl` in Cargo, so treat
|
|
|
a40f9b |
- // failures here as fatal as it would indicate a build-time problem.
|
|
|
a40f9b |
- self.multiplexing = self.config.http_config()?.multiplexing.unwrap_or(true);
|
|
|
a40f9b |
-
|
|
|
a40f9b |
- self.multi
|
|
|
a40f9b |
- .pipelining(false, self.multiplexing)
|
|
|
a40f9b |
- .with_context(|| "failed to enable multiplexing/pipelining in curl")?;
|
|
|
a40f9b |
-
|
|
|
a40f9b |
- // let's not flood the server with connections
|
|
|
a40f9b |
- self.multi.set_max_host_connections(2)?;
|
|
|
a40f9b |
+ // Multiplexing is disabled because the system libcurl doesn't support it.
|
|
|
a40f9b |
+ self.multiplexing = false;
|
|
|
a40f9b |
|
|
|
a40f9b |
self.config
|
|
|
a40f9b |
.shell()
|
|
|
80296c |
--- rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs.orig 2022-09-24 10:23:17.000000000 -0700
|
|
|
80296c |
+++ rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs 2022-10-04 10:55:48.800517227 -0700
|
|
|
a40f9b |
@@ -403,16 +403,9 @@
|
|
|
a40f9b |
sources: SourceMap<'cfg>,
|
|
|
a40f9b |
config: &'cfg Config,
|
|
|
a40f9b |
) -> CargoResult<PackageSet<'cfg>> {
|
|
|
a40f9b |
- // We've enabled the `http2` feature of `curl` in Cargo, so treat
|
|
|
a40f9b |
- // failures here as fatal as it would indicate a build-time problem.
|
|
|
1e9ce7 |
- let mut multi = Multi::new();
|
|
|
1e9ce7 |
- let multiplexing = config.http_config()?.multiplexing.unwrap_or(true);
|
|
|
1e9ce7 |
- multi
|
|
|
1e9ce7 |
- .pipelining(false, multiplexing)
|
|
|
1e9ce7 |
- .with_context(|| "failed to enable multiplexing/pipelining in curl")?;
|
|
|
1e9ce7 |
-
|
|
|
1e9ce7 |
- // let's not flood crates.io with connections
|
|
|
1e9ce7 |
- multi.set_max_host_connections(2)?;
|
|
|
a40f9b |
+ // Multiplexing is disabled because the system libcurl doesn't support it.
|
|
|
1e9ce7 |
+ let multi = Multi::new();
|
|
|
1e9ce7 |
+ let multiplexing = false;
|
|
|
1e9ce7 |
|
|
|
1e9ce7 |
Ok(PackageSet {
|
|
|
1e9ce7 |
packages: package_ids
|
|
|
a40f9b |
@@ -658,7 +651,7 @@
|
|
|
1e9ce7 |
macro_rules! try_old_curl {
|
|
|
1e9ce7 |
($e:expr, $msg:expr) => {
|
|
|
1e9ce7 |
let result = $e;
|
|
|
1e9ce7 |
- if cfg!(target_os = "macos") {
|
|
|
1e9ce7 |
+ if cfg!(any(target_os = "linux", target_os = "macos")) {
|
|
|
1e9ce7 |
if let Err(e) = result {
|
|
|
1e9ce7 |
warn!("ignoring libcurl {} error: {}", $msg, e);
|
|
|
1e9ce7 |
}
|