diff --git a/.gitignore b/.gitignore index cc7d9d1..2bb1e3e 100644 --- a/.gitignore +++ b/.gitignore @@ -178,3 +178,11 @@ /rust-1.31.1-powerpc64-unknown-linux-gnu.tar.xz /rust-1.31.1-s390x-unknown-linux-gnu.tar.xz /rust-1.31.1-x86_64-unknown-linux-gnu.tar.xz +/rustc-1.33.0-src.tar.xz +/rust-1.32.0-aarch64-unknown-linux-gnu.tar.xz +/rust-1.32.0-armv7-unknown-linux-gnueabihf.tar.xz +/rust-1.32.0-i686-unknown-linux-gnu.tar.xz +/rust-1.32.0-powerpc64le-unknown-linux-gnu.tar.xz +/rust-1.32.0-powerpc64-unknown-linux-gnu.tar.xz +/rust-1.32.0-s390x-unknown-linux-gnu.tar.xz +/rust-1.32.0-x86_64-unknown-linux-gnu.tar.xz diff --git a/0001-Backport-deprecation-fixes-from-commit-b7f030e.patch b/0001-Backport-deprecation-fixes-from-commit-b7f030e.patch new file mode 100644 index 0000000..6e51ef3 --- /dev/null +++ b/0001-Backport-deprecation-fixes-from-commit-b7f030e.patch @@ -0,0 +1,57 @@ +From 55030c7543d8e877ec7a6b577a51422c38f01259 Mon Sep 17 00:00:00 2001 +From: Josh Stone +Date: Fri, 1 Mar 2019 09:27:45 -0800 +Subject: [PATCH] Backport deprecation fixes from commit b7f030e + +--- + src/tools/linkchecker/main.rs | 6 +++--- + src/tools/tidy/src/features.rs | 2 +- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/src/tools/linkchecker/main.rs b/src/tools/linkchecker/main.rs +index 59662be349dc..2cf0fcfd34cd 100644 +--- a/src/tools/linkchecker/main.rs ++++ b/src/tools/linkchecker/main.rs +@@ -78,7 +78,7 @@ impl FileEntry { + fn parse_ids(&mut self, file: &Path, contents: &str, errors: &mut bool) { + if self.ids.is_empty() { + with_attrs_in_source(contents, " id", |fragment, i, _| { +- let frag = fragment.trim_left_matches("#").to_owned(); ++ let frag = fragment.trim_start_matches("#").to_owned(); + let encoded = small_url_encode(&frag); + if !self.ids.insert(frag) { + *errors = true; +@@ -343,7 +343,7 @@ fn with_attrs_in_source(contents: &str, attr: &str, + Some(i) => i, + None => continue, + }; +- if rest[..pos_equals].trim_left_matches(" ") != "" { ++ if rest[..pos_equals].trim_start_matches(" ") != "" { + continue; + } + +@@ -355,7 +355,7 @@ fn with_attrs_in_source(contents: &str, attr: &str, + }; + let quote_delim = rest.as_bytes()[pos_quote] as char; + +- if rest[..pos_quote].trim_left_matches(" ") != "" { ++ if rest[..pos_quote].trim_start_matches(" ") != "" { + continue; + } + let rest = &rest[pos_quote + 1..]; +diff --git a/src/tools/tidy/src/features.rs b/src/tools/tidy/src/features.rs +index 2435a0cfd4e3..bf2cfbf32fc7 100644 +--- a/src/tools/tidy/src/features.rs ++++ b/src/tools/tidy/src/features.rs +@@ -188,7 +188,7 @@ pub fn collect_lang_features(base_src_path: &Path, bad: &mut bool) -> Features { + } + + let mut parts = line.split(','); +- let level = match parts.next().map(|l| l.trim().trim_left_matches('(')) { ++ let level = match parts.next().map(|l| l.trim().trim_start_matches('(')) { + Some("active") => Status::Unstable, + Some("removed") => Status::Removed, + Some("accepted") => Status::Stable, +-- +2.20.1 + diff --git a/rust.spec b/rust.spec index 25173c7..daa8057 100644 --- a/rust.spec +++ b/rust.spec @@ -54,7 +54,7 @@ Name: rust Version: 1.33.0 -Release: 0.1.beta.9%{?dist} +Release: 2%{?dist} Summary: The Rust Programming Language License: (ASL 2.0 or MIT) and (BSD and MIT) # ^ written as: (rust itself) and (bundled libraries) @@ -78,6 +78,9 @@ Patch2: 0001-rust-gdb-relax-the-GDB-version-regex.patch # We do have the necessary fix in our LLVM 7. Patch3: rust-pr57840-llvm7-debuginfo-variants.patch +# https://github.com/rust-lang/rust/issues/58845 +Patch4: 0001-Backport-deprecation-fixes-from-commit-b7f030e.patch + # Get the Rust triple for any arch. %{lua: function rust_triple(arch) local abi = "gnu" @@ -161,8 +164,9 @@ BuildRequires: cmake3 >= 3.4.3 Provides: bundled(llvm) = 8.0.0~svn %else BuildRequires: cmake >= 2.8.11 -%if 0%{?epel} -%global llvm llvm5.0 +%if 0%{?epel} || 0%{?fedora} >= 30 +# TODO: for f30+, we'll be ready for LLVM8 in Rust 1.34 +%global llvm llvm7.0 %endif %if %defined llvm %global llvm_root %{_libdir}/%{llvm} @@ -222,7 +226,7 @@ Requires: /usr/bin/cc %global rustflags -Clink-arg=-Wl,-z,relro,-z,now %if %{without bundled_llvm} -%if 0%{?fedora} || 0%{?rhel} > 7 || 0%{?scl:1} +%if "%{llvm_root}" == "%{_prefix}" || 0%{?scl:1} %global llvm_has_filecheck 1 %endif %if "%{llvm_root}" != "%{_prefix}" @@ -410,6 +414,7 @@ pushd vendor/rls-analysis popd %patch2 -p1 %patch3 -p1 -R +%patch4 -p1 %if "%{python}" == "python3" sed -i.try-py3 -e '/try python2.7/i try python3 "$@"' ./configure @@ -471,7 +476,7 @@ export LIBSSH2_SYS_USE_PKG_CONFIG=1 %global common_libdir %{_prefix}/lib %global rustlibdir %{common_libdir}/rustlib -%ifarch %{arm} %{ix86} +%ifarch %{arm} %{ix86} s390x # full debuginfo is exhausting memory; just do libstd for now # https://github.com/rust-lang/rust/issues/45854 %if (0%{?fedora} && 0%{?fedora} < 27) || (0%{?rhel} && 0%{?rhel} <= 7) @@ -602,7 +607,7 @@ rm -f %{buildroot}%{rustlibdir}/etc/lldb_*.py* %dir %{rustlibdir}/%{rust_triple}/lib %{rustlibdir}/%{rust_triple}/lib/*.so %{rustlibdir}/%{rust_triple}/codegen-backends/ -%exclude %{_bindir}/{cargo-,}miri +%exclude %{_bindir}/*miri %files std-static @@ -690,8 +695,11 @@ rm -f %{buildroot}%{rustlibdir}/etc/lldb_*.py* %changelog -* Thu Feb 21 2019 Josh Stone - 1.33.0-0.1.beta.9 -- beta test +* Fri Mar 01 2019 Josh Stone - 1.33.0-2 +- Fix deprecations for self-rebuild + +* Thu Feb 28 2019 Josh Stone - 1.33.0-1 +- Update to 1.33.0. * Sat Feb 02 2019 Fedora Release Engineering - 1.32.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild diff --git a/sources b/sources index 6e7d3bc..2eff6dd 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rustc-1.32.0-src.tar.xz) = 487c405fed6430f62d2d0c38b65f6223b1c5074c7a0d3734dc8b3bb72fca255f5727e49541749569713a0c3e9a67eff574ba5698e8dceca6f0ef20b50f99aa42 +SHA512 (rustc-1.33.0-src.tar.xz) = 3291e4e19f75f44c81e6fcf4c01edc7c9d326eca43722381231abcf2e99f4314059ba59a29b79f5511ad9421c358c45e8fe18584d6954d17fe2aabad0f9d9147 diff --git a/sources-bootstrap b/sources-bootstrap index 2904e91..6d14e05 100644 --- a/sources-bootstrap +++ b/sources-bootstrap @@ -1,8 +1,8 @@ -SHA512 (rustc-1.32.0-src.tar.xz) = 487c405fed6430f62d2d0c38b65f6223b1c5074c7a0d3734dc8b3bb72fca255f5727e49541749569713a0c3e9a67eff574ba5698e8dceca6f0ef20b50f99aa42 -SHA512 (rust-1.31.1-aarch64-unknown-linux-gnu.tar.xz) = c45aebda96a2df0e24efc7dc75cb913f6f92f6214582863367f3556a335d9a5ddf5bb487cb33dee7a48ab1d4dc986bd1fcf32f85b75d07558b1d18d89b26fd30 -SHA512 (rust-1.31.1-armv7-unknown-linux-gnueabihf.tar.xz) = 78b1681f44274c9a0bf62c7646c5a2c85164c5f4dd4349a757b512dd82d435a4f2779c4b6653c8c3f66986512438d1b23e4af15defbbe9f489c0119141ef1942 -SHA512 (rust-1.31.1-i686-unknown-linux-gnu.tar.xz) = ee2c2bb2c1bb0f6e7f8eaeb4b2f0a8de7f53e8da675ec05cb56cab9bc4faa18b7075f5843226d7f9459e1208cc3fb1b90c65063b4a5a3828b04f8ff3c93ebe39 -SHA512 (rust-1.31.1-powerpc64le-unknown-linux-gnu.tar.xz) = e64f586b632b85d07e18c61e5ce18a69404d89e302ecd8b4495e09e2b2f62bd3f32455b3d0d81cfa2d0031c003f23797421587cf6f314ce5b18b12157e1e9a3b -SHA512 (rust-1.31.1-powerpc64-unknown-linux-gnu.tar.xz) = 9a4427735e345d5e8f860ceab497c0ea3efd001c04322f5d2ecf0d5ac76e27feb1a247bb42662446ae39bf52eca75455b01a4c27341d6241406aa6feab1d1d4b -SHA512 (rust-1.31.1-s390x-unknown-linux-gnu.tar.xz) = ce6999f7d27468143a9a288fd1bda9f3ec42475f8b8473518be41358a2144317abf8076ed9527a10db94b5b89cf920f04217ce7a78ec214aa3e073a8419675bc -SHA512 (rust-1.31.1-x86_64-unknown-linux-gnu.tar.xz) = 3bf37bc419acd7820c7e33d7b44e6cba7f3b556ca8880fee2f65b1648596f069e0bc590a3a7acc10c60a0328f83787a172650d9c26cf21aa14782dcd9a97ec3a +SHA512 (rustc-1.33.0-src.tar.xz) = 3291e4e19f75f44c81e6fcf4c01edc7c9d326eca43722381231abcf2e99f4314059ba59a29b79f5511ad9421c358c45e8fe18584d6954d17fe2aabad0f9d9147 +SHA512 (rust-1.32.0-aarch64-unknown-linux-gnu.tar.xz) = b077c54bf38935a55a36fec39d1822562da760489ca924d48978e87b9ac5dc4b5107a7eb08dea0412a5a44c255428c649e31f07a5a67567c715de8644581018d +SHA512 (rust-1.32.0-armv7-unknown-linux-gnueabihf.tar.xz) = abadddae0a8de3ee326d1145e3bbe571d9ec0d80261569b6350dbc0fa38b9d31590933c318785f92b75c7add35d7b45e7713a3f1ef7dfd3de085b7255a855b2a +SHA512 (rust-1.32.0-i686-unknown-linux-gnu.tar.xz) = bec62be3e9f5e37197c10357a386a7083941f44151eab28e7a1c8892c0e8e65d168e1220d5e807bb55b9c86ef046bad5cb23fad89def9cb51d22ff69fb436172 +SHA512 (rust-1.32.0-powerpc64le-unknown-linux-gnu.tar.xz) = 058c1ebe58bb22e8ff791a74edb058e7494e2673dd1d91ffad646ec71cfdc240e934b44fbae6e58639143b33161d314224e7d1c7b2cc35677bf9eab901e130eb +SHA512 (rust-1.32.0-powerpc64-unknown-linux-gnu.tar.xz) = e4c70ab500feccb2ed67435857f584381be051ba7b2d70cea55b0c94b846e61ba10930a20ceceb67ec981daa5baa166fc6dea7c14ac9ac28270c30841d9c16a1 +SHA512 (rust-1.32.0-s390x-unknown-linux-gnu.tar.xz) = 4f32934472356d9b7e15abb0fa07be9eddccc7b9e0a1834bbee5ff279c6ece9174d942e2feed611f9b697613ee3b76f8a8ab68559b6d075e740aeab117223325 +SHA512 (rust-1.32.0-x86_64-unknown-linux-gnu.tar.xz) = 5c5def0c415b0f34e1e7476841a0bd3f91fe4bde8321c7b06b1cd2a3d10a3d676ed16a26561929ce39c3c2cbcf7a16960c5decca9e385afe8295da32b4fb7a17