diff --git a/rust.spec b/rust.spec index b1de7a6fa6d46aeb3d8d679d6169da0623368516..94d87c7fbb2203b6847e128b5445906b91100cfb 100644 --- a/rust.spec +++ b/rust.spec @@ -1,7 +1,7 @@ -%global bootstrap_rust 1.67.1 -%global bootstrap_cargo 1.67.1 -%global bootstrap_channel 1.67.1 -%global bootstrap_date 2023-02-09 +%global bootstrap_rust 1.68.0 +%global bootstrap_cargo 1.68.0 +%global bootstrap_channel 1.68.0 +%global bootstrap_date 2023-03-09 %bcond_with llvm_static %bcond_with bundled_llvm %bcond_without bundled_libgit2 @@ -9,7 +9,7 @@ %bcond_without curl_http2 %bcond_without lldb Name: rust -Version: 1.68.0 +Version: 1.69.0 Release: 1 Summary: The Rust Programming Language License: (ASL 2.0 or MIT) and (BSD and MIT) @@ -17,7 +17,7 @@ URL: https://www.rust-lang.org Source0: https://static.rust-lang.org/dist/rustc-%{version}-src.tar.gz Patch0000: rustc-1.65.0-disable-libssh2.patch -Patch0001: rustc-1.67.1-disable-http2.patch +Patch0001: rustc-1.69.0-disable-http2.patch Patch0002: clippy-driver-usage-should-user-friendly.patch Patch0003: cargo-help-clippy-should-have-description-to-user.patch Patch0004: fix-a-println-wrong-format.patch @@ -119,6 +119,10 @@ Requires: /usr/bin/cc %endif %global musl_root %{_prefix}/musl +# This component was removed as of Rust 1.69.0. +# https://github.com/rust-lang/rust/pull/101841 +Obsoletes: %{name}-analysis < 1.69.0~ + %description Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. @@ -205,14 +209,6 @@ BuildArch: noarch This package includes source files for the Rust standard library. It may be useful as a reference for code completion tools in various editors. -%package analysis -Summary: Compiler analysis data for the Rust standard library -Requires: rust-std-static%{?_isa} = %{version}-%{release} -%description analysis -This package contains analysis data files produced with rustc's -Zsave-analysis -feature for the Rust standard library. The RLS (Rust Language Server) uses this -data to provide information about the Rust standard library. - %package help Summary: Help documents for rust @@ -308,7 +304,7 @@ fi --disable-rpath \ %{enable_debuginfo} \ --enable-extended \ - --tools=analysis,cargo,clippy,rls,rust-analyzer,rustfmt,src \ + --tools=cargo,clippy,rls,rust-analyzer,rustfmt,src \ --enable-vendor \ --enable-verbose-tests \ %{?codegen_units_std} \ @@ -444,10 +440,6 @@ export %{rust_env} %dir %{rustlibdir} %{rustlibdir}/src -%files analysis -%{rustlibdir}/%{rust_triple}/analysis/ -%{rustlibdir}/%{rust_musl_triple}/analysis/ - %files help %dir %{_docdir}/%{name} %docdir %{_docdir}/%{name} @@ -460,6 +452,10 @@ export %{rust_env} %{_mandir}/man1/cargo*.1* %changelog +* Tue Apr 25 2023 wangkai <13474090681@163.com> - 1.69.0-1 +- Update to 1.69.0 +- Obsolete rust-analysis + * Wed Mar 22 2023 wangkai - 1.68.0-1 - Update to 1.68.0 diff --git a/rustc-1.67.1-disable-http2.patch b/rustc-1.69.0-disable-http2.patch similarity index 64% rename from rustc-1.67.1-disable-http2.patch rename to rustc-1.69.0-disable-http2.patch index b74cb6107687330512af00722bea033b8ca33955..7fa9f4752420cf0ee17970ae63228148e5753f14 100644 --- a/rustc-1.67.1-disable-http2.patch +++ b/rustc-1.69.0-disable-http2.patch @@ -1,6 +1,8 @@ ---- 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 @@ +diff --git a/Cargo.lock b/Cargo.lock +index ece9682..8e433dc 100644 +--- a/Cargo.lock ++++ b/Cargo.lock +@@ -1142,7 +1142,6 @@ checksum = "6cfce34829f448b08f55b7db6d0009e23e2e86a34e8c2b366269bf5799b4a407" dependencies = [ "cc", "libc", @@ -8,10 +10,11 @@ "libz-sys", "openssl-sys", "pkg-config", -@@ -2181,16 +2180,6 @@ +@@ -2375,16 +2374,6 @@ version = "0.1.4" + source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a" - [[package]] +-[[package]] -name = "libnghttp2-sys" -version = "0.1.4+1.41.0" -source = "registry+https://github.com/rust-lang/crates.io-index" @@ -21,24 +24,27 @@ - "libc", -] - --[[package]] + [[package]] name = "libssh2-sys" version = "0.2.23" - source = "registry+https://github.com/rust-lang/crates.io-index" ---- 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 -@@ -21,7 +21,7 @@ - cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" } +diff --git a/src/tools/cargo/Cargo.toml b/src/tools/cargo/Cargo.toml +index 66c3e5f..642dca9 100644 +--- a/src/tools/cargo/Cargo.toml ++++ b/src/tools/cargo/Cargo.toml +@@ -23,7 +23,7 @@ cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" } cargo-util = { path = "crates/cargo-util", version = "0.2.3" } - crates-io = { path = "crates/crates-io", version = "0.35.0" } + clap = "4.1.3" + crates-io = { path = "crates/crates-io", version = "0.36.0" } -curl = { version = "0.4.44", features = ["http2"] } +curl = { version = "0.4.44", features = [] } curl-sys = "0.4.59" env_logger = "0.10.0" - pretty_env_logger = { version = "0.4", optional = true } ---- 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 -@@ -403,16 +403,9 @@ + filetime = "0.2.9" +diff --git a/src/tools/cargo/src/cargo/core/package.rs b/src/tools/cargo/src/cargo/core/package.rs +index 952b7cb..44979c3 100644 +--- a/src/tools/cargo/src/cargo/core/package.rs ++++ b/src/tools/cargo/src/cargo/core/package.rs +@@ -401,16 +401,9 @@ impl<'cfg> PackageSet<'cfg> { sources: SourceMap<'cfg>, config: &'cfg Config, ) -> CargoResult> { @@ -58,18 +64,11 @@ Ok(PackageSet { packages: package_ids -@@ -658,7 +651,7 @@ - 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); - } ---- 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 @@ +diff --git a/src/tools/cargo/src/cargo/sources/registry/http_remote.rs b/src/tools/cargo/src/cargo/sources/registry/http_remote.rs +index c3bcadf..5881464 100644 +--- a/src/tools/cargo/src/cargo/sources/registry/http_remote.rs ++++ b/src/tools/cargo/src/cargo/sources/registry/http_remote.rs +@@ -220,16 +220,8 @@ impl<'cfg> HttpRegistry<'cfg> { } self.fetch_started = true; @@ -88,3 +87,19 @@ self.config .shell() +diff --git a/src/tools/cargo/src/cargo/util/network.rs b/src/tools/cargo/src/cargo/util/network.rs +index 4b27160..4df6803 100644 +--- a/src/tools/cargo/src/cargo/util/network.rs ++++ b/src/tools/cargo/src/cargo/util/network.rs +@@ -116,7 +116,7 @@ where + 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); + } +-- +2.27.0 + diff --git a/rustc-1.68.0-src.tar.gz b/rustc-1.69.0-src.tar.gz similarity index 88% rename from rustc-1.68.0-src.tar.gz rename to rustc-1.69.0-src.tar.gz index 9ff9e3f4a9dd6e71c1b0d3ab7b51369f157303f1..c43c76a8a39f7f95469c7e5d4c7f4249cd5cf18a 100644 Binary files a/rustc-1.68.0-src.tar.gz and b/rustc-1.69.0-src.tar.gz differ