2023-07-18 23:04:11 +00:00
|
|
|
--- rustc-beta-src/Cargo.lock.orig 2023-05-24 16:49:05.242510531 -0700
|
|
|
|
+++ rustc-beta-src/Cargo.lock 2023-05-24 16:51:11.741865603 -0700
|
|
|
|
@@ -1197,7 +1197,6 @@ checksum = "14d05c10f541ae6f3bc5b3d923c2
|
2020-10-15 13:53:00 +00:00
|
|
|
dependencies = [
|
|
|
|
"cc",
|
|
|
|
"libc",
|
|
|
|
- "libnghttp2-sys",
|
|
|
|
"libz-sys",
|
|
|
|
"openssl-sys",
|
|
|
|
"pkg-config",
|
2023-07-18 23:04:11 +00:00
|
|
|
@@ -2989,16 +2988,6 @@ source = "registry+https://github.com/ru
|
2021-06-22 21:05:36 +00:00
|
|
|
checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a"
|
2020-10-15 13:53:00 +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-11-04 23:58:09 +00:00
|
|
|
version = "1.1.3"
|
2020-10-15 13:53:00 +00:00
|
|
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
2023-07-18 23:04:11 +00:00
|
|
|
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig 2023-05-24 16:49:05.244510489 -0700
|
|
|
|
+++ rustc-beta-src/src/tools/cargo/Cargo.toml 2023-05-24 16:51:04.683013189 -0700
|
|
|
|
@@ -23,7 +23,7 @@ cargo-platform = { path = "crates/cargo-
|
|
|
|
cargo-util = { path = "crates/cargo-util", version = "0.2.4" }
|
|
|
|
clap = "4.2.0"
|
2023-05-10 16:06:01 +00:00
|
|
|
crates-io = { path = "crates/crates-io", version = "0.36.0" }
|
2023-05-08 22:20:24 +00:00
|
|
|
-curl = { version = "0.4.44", features = ["http2"] }
|
|
|
|
+curl = { version = "0.4.44", features = [] }
|
2023-07-18 23:04:11 +00:00
|
|
|
curl-sys = "0.4.61"
|
2023-05-08 22:20:24 +00:00
|
|
|
env_logger = "0.10.0"
|
2023-05-10 16:06:01 +00:00
|
|
|
filetime = "0.2.9"
|
2023-07-18 23:04:11 +00:00
|
|
|
--- rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs.orig 2023-05-19 19:05:42.000000000 -0700
|
|
|
|
+++ rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs 2023-05-24 16:49:05.244510489 -0700
|
|
|
|
@@ -407,16 +407,9 @@ impl<'cfg> PackageSet<'cfg> {
|
2022-06-03 19:20:39 +00:00
|
|
|
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.
|
2020-10-15 13:53:00 +00:00
|
|
|
- let mut multi = Multi::new();
|
|
|
|
- let multiplexing = config.http_config()?.multiplexing.unwrap_or(true);
|
|
|
|
- multi
|
|
|
|
- .pipelining(false, multiplexing)
|
2021-06-22 21:05:36 +00:00
|
|
|
- .with_context(|| "failed to enable multiplexing/pipelining in curl")?;
|
2020-10-15 13:53:00 +00:00
|
|
|
-
|
|
|
|
- // let's not flood crates.io with connections
|
|
|
|
- multi.set_max_host_connections(2)?;
|
2022-06-03 19:20:39 +00:00
|
|
|
+ // Multiplexing is disabled because the system libcurl doesn't support it.
|
2020-10-15 13:53:00 +00:00
|
|
|
+ let multi = Multi::new();
|
|
|
|
+ let multiplexing = false;
|
|
|
|
|
|
|
|
Ok(PackageSet {
|
|
|
|
packages: package_ids
|
2023-07-18 23:04:11 +00:00
|
|
|
--- rustc-beta-src/src/tools/cargo/src/cargo/sources/registry/http_remote.rs.orig 2023-05-24 16:49:05.245510468 -0700
|
|
|
|
+++ rustc-beta-src/src/tools/cargo/src/cargo/sources/registry/http_remote.rs 2023-05-24 16:51:57.916900146 -0700
|
|
|
|
@@ -229,16 +229,8 @@ impl<'cfg> HttpRegistry<'cfg> {
|
2023-05-08 22:20:24 +00:00
|
|
|
}
|
|
|
|
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;
|
|
|
|
|
2023-07-18 23:04:11 +00:00
|
|
|
if !self.quiet {
|
|
|
|
self.config
|
|
|
|
--- rustc-beta-src/src/tools/cargo/src/cargo/util/network/mod.rs.orig 2023-05-19 19:05:42.000000000 -0700
|
|
|
|
+++ rustc-beta-src/src/tools/cargo/src/cargo/util/network/mod.rs 2023-05-24 16:49:05.245510468 -0700
|
|
|
|
@@ -25,7 +25,7 @@ impl<T> PollExt<T> for Poll<T> {
|
2023-05-09 19:47:28 +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);
|
|
|
|
}
|