commit rust for openSUSE:Factory
Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rust for openSUSE:Factory checked in at 2021-02-01 15:45:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rust (Old) and /work/SRC/openSUSE:Factory/.rust.new.28504 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "rust" Mon Feb 1 15:45:33 2021 rev:60 rq:863002 version:1.49.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rust/rust.changes 2020-11-26 23:12:31.176942537 +0100 +++ /work/SRC/openSUSE:Factory/.rust.new.28504/rust.changes 2021-02-01 15:48:53.798228203 +0100 @@ -1,0 +2,197 @@ +Sun Jan 10 13:15:07 UTC 2021 - Neal Gompa <ngompa13@gmail.com> + +- Add riscv64 build + +------------------------------------------------------------------- +Sat Jan 9 16:50:11 UTC 2021 - Manfred Hollstein <manfred.h@gmx.net> + +- <https://github.com/rust-lang/rust/issues/74976>: Add "--stage 1" + to the "./x.py doc" call to ensure the newly built compiler gets + used. + +------------------------------------------------------------------- +Sat Jan 9 09:26:51 UTC 2021 - Manfred Hollstein <manfred.h@gmx.net> + +- Leap 15.3 does not provide a suitable llvm-devel package, hence + explicitly require llvm9-devel. Details can be seen in the following + e-mail thread + <https://lists.opensuse.org/archives/list/factory@lists.opensuse.org/thread/ZQWAMG2VYBSI2BFM7G3H5YG26ALXWAOA/> + +------------------------------------------------------------------- +Sun Jan 3 11:33:37 UTC 2021 - Manfred Hollstein <manfred.h@gmx.net> + +- Update to version 1.49.0 + + Language + - Unions can now implement Drop, and you can now have a field in + a union with ManuallyDrop<T>. + - You can now cast uninhabited enums to integers. + - You can now bind by reference and by move in patterns. This + allows you to selectively borrow individual components of a type. + E.g. + + #[derive(Debug)] + struct Person { + name: String, + age: u8, + } + + let person = Person { + name: String::from("Alice"), + age: 20, + }; + + // `name` is moved out of person, but `age` is referenced. + let Person { name, ref age } = person; + println!("{} {}", name, age); + + Compiler + - Added tier 1* support for aarch64-unknown-linux-gnu. + - Added tier 2 support for aarch64-apple-darwin. + - Added tier 2 support for aarch64-pc-windows-msvc. + - Added tier 3 support for mipsel-unknown-none. + - Raised the minimum supported LLVM version to LLVM 9. + - Output from threads spawned in tests is now captured. + - Change os and vendor values to "none" and "unknown" for some targets + * Refer to Rust's platform support page for more information on Rust's + tiered platform support. + + Libraries + - RangeInclusive now checks for exhaustion when calling contains and + indexing. + - ToString::to_string now no longer shrinks the internal buffer in + the default implementation. + - ops::{Index, IndexMut} are now implemented for fixed sized arrays + of any length. + + Stabilized APIs + - slice::select_nth_unstable + - slice::select_nth_unstable_by + - slice::select_nth_unstable_by_key + The following previously stable methods are now const. + - Poll::is_ready + - Poll::is_pending + + Cargo + - Building a crate with cargo-package should now be independently + reproducible. + - cargo-tree now marks proc-macro crates. + - Added CARGO_PRIMARY_PACKAGE build-time environment variable. This + variable will be set if the crate being built is one the user + selected to build, either with -p or through defaults. + - You can now use glob patterns when specifying packages & targets. + + Compatibility Notes + - Demoted i686-unknown-freebsd from host tier 2 to target tier 2 + support. + - Macros that end with a semi-colon are now treated as statements + even if they expand to nothing. + - Rustc will now check for the validity of some built-in attributes + on enum variants. Previously such invalid or unused attributes + could be ignored. + - Leading whitespace is stripped more uniformly in documentation + comments, which may change behavior. You read this post about + the changes for more details. + - Trait bounds are no longer inferred for associated types. + + Internal Only + These changes provide no direct user facing benefits, but + represent significant improvements to the internals and overall + performance of rustc and related tools. + - rustc's internal crates are now compiled using the initial-exec + Thread Local Storage model. + - Calculate visibilities once in resolve. + - Added system to the llvm-libunwind bootstrap config option. + - Added --color for configuring terminal color support to bootstrap. +- Rebased patches: + + ignore-Wstring-conversion.patch (location) + +------------------------------------------------------------------- +Sun Jan 3 11:27:23 UTC 2021 - Manfred Hollstein <manfred.h@gmx.net> + +- LLVM >= 9.0 is needed nowadays. +- Disable usage of "ninja" for all distributions older than Leap 15.2 + +------------------------------------------------------------------- +Sat Jan 2 16:50:47 UTC 2021 - Manfred Hollstein <manfred.h@gmx.net> + +- Update to version 1.48.0 + + Language + - The `unsafe` keyword is now syntactically permitted on modules. + This is still rejected semantically, but can now be parsed by procedural + macros. + + Compiler + - Stabilised the `-C link-self-contained=<yes|no>` compiler flag. + This tells `rustc` whether to link its own C runtime and libraries or to + rely on a external linker to find them. (Supported only on `windows-gnu`, + `linux-musl`, and `wasi` platforms.) + - You can now use `-C target-feature=+crt-static` on `linux-gnu` targets. + Note: If you're using cargo you must explicitly pass the `--target` flag. + - Added tier 2* support for aarch64-unknown-linux-musl. + * Refer to Rust's platform support page for more information on Rust's + tiered platform support. + + Libraries + - io::Write is now implemented for &ChildStdin &Sink, &Stdout, and &Stderr. + - All arrays of any length now implement TryFrom<Vec<T>>. + - The matches! macro now supports having a trailing comma. + - Vec<A> now implements PartialEq<[B]> where A: PartialEq<B>. + - The RefCell::{replace, replace_with, clone} methods now all use #[track_caller]. + + Stabilized APIs + - slice::as_ptr_range + - slice::as_mut_ptr_range + - VecDeque::make_contiguous + - future::pending + - future::ready + The following previously stable methods are now `const fn's`: + - Option::is_some + - Option::is_none + - Option::as_ref + - Result::is_ok + - Result::is_err + - Result::as_ref + - Ordering::reverse + - Ordering::then + + Cargo + + Rustdoc + - You can now link to items in rustdoc using the intra-doc link syntax. + E.g. /// Uses [`std::future`] will automatically generate a link to + std::future's documentation. See "Linking to items by name" for more + information. + - You can now specify #[doc(alias = "<alias>")] on items to add search + aliases when searching through rustdoc's UI. + + Compatibility Notes + - Promotion of references to 'static lifetime inside const fn now + follows the same rules as inside a fn body. In particular, &foo() + will not be promoted to 'static lifetime any more inside const fns. + - Associated type bindings on trait objects are now verified to meet + the bounds declared on the trait when checking that they implement + the trait. + - When trait bounds on associated types or opaque types are ambiguous, + the compiler no longer makes an arbitrary choice on which bound to use. + - Fixed recursive nonterminals not being expanded in macros during + pretty-print/reparse check. This may cause errors if your macro + wasn't correctly handling recursive nonterminal tokens. + - &mut references to non zero-sized types are no longer promoted. + - rustc will now warn if you use attributes like #[link_name] or + #[cold] in places where they have no effect. + - Updated _mm256_extract_epi8 and _mm256_extract_epi16 signatures + in arch::{x86, x86_64} to return i32 to match the vendor signatures. + - mem::uninitialized will now panic if any inner types inside a struct + or enum disallow zero-initialization. + - #[target_feature] will now error if used in a place where it has no effect. + - Foreign exceptions are now caught by catch_unwind and will cause an + abort. Note: This behaviour is not guaranteed and is still considered + undefined behaviour, see the catch_unwind documentation for further + information. + + Internal Only + These changes provide no direct user facing benefits, but represent + significant improvements to the internals and overall performance of + rustc and related tools. + - Building rustc from source now uses ninja by default over make. + You can continue building with make by setting ninja=false in + your config.toml. + - cg_llvm: fewer_names in uncached_llvm_type + - Made ensure_sufficient_stack() non-generic +- Rebased patches: + + ignore-Wstring-conversion.patch (location) + +------------------------------------------------------------------- +Sat Nov 28 01:25:03 UTC 2020 - Bernhard Wiedemann <bwiedemann@suse.com> + +- Check upstream signatures for binaries +- Add rust.keyring + +------------------------------------------------------------------- Old: ---- rust-1.46.0-aarch64-unknown-linux-gnu.tar.xz rust-1.46.0-armv7-unknown-linux-gnueabihf.tar.xz rust-1.46.0-i686-unknown-linux-gnu.tar.xz rust-1.46.0-powerpc-unknown-linux-gnu.tar.xz rust-1.46.0-powerpc64-unknown-linux-gnu.tar.xz rust-1.46.0-powerpc64le-unknown-linux-gnu.tar.xz rust-1.46.0-s390x-unknown-linux-gnu.tar.xz rust-1.46.0-x86_64-unknown-linux-gnu.tar.xz rustc-1.47.0-src.tar.xz New: ---- rust-1.48.0-aarch64-unknown-linux-gnu.tar.xz rust-1.48.0-aarch64-unknown-linux-gnu.tar.xz.asc rust-1.48.0-armv7-unknown-linux-gnueabihf.tar.xz rust-1.48.0-armv7-unknown-linux-gnueabihf.tar.xz.asc rust-1.48.0-i686-unknown-linux-gnu.tar.xz rust-1.48.0-i686-unknown-linux-gnu.tar.xz.asc rust-1.48.0-powerpc-unknown-linux-gnu.tar.xz rust-1.48.0-powerpc-unknown-linux-gnu.tar.xz.asc rust-1.48.0-powerpc64-unknown-linux-gnu.tar.xz rust-1.48.0-powerpc64-unknown-linux-gnu.tar.xz.asc rust-1.48.0-powerpc64le-unknown-linux-gnu.tar.xz rust-1.48.0-powerpc64le-unknown-linux-gnu.tar.xz.asc rust-1.48.0-riscv64gc-unknown-linux-gnu.tar.xz rust-1.48.0-riscv64gc-unknown-linux-gnu.tar.xz.asc rust-1.48.0-s390x-unknown-linux-gnu.tar.xz rust-1.48.0-s390x-unknown-linux-gnu.tar.xz.asc rust-1.48.0-x86_64-unknown-linux-gnu.tar.xz rust-1.48.0-x86_64-unknown-linux-gnu.tar.xz.asc rust.keyring rustc-1.49.0-src.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rust.spec ++++++ --- /var/tmp/diff_new_pack.aYw0bU/_old 2021-02-01 15:49:09.378250741 +0100 +++ /var/tmp/diff_new_pack.aYw0bU/_new 2021-02-01 15:49:09.382250747 +0100 @@ -1,7 +1,7 @@ # # spec file for package rust # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2019 Luke Jones, luke@ljones.dev # # All modifications and additions to the file contributed by third parties @@ -17,12 +17,12 @@ # -%global version_current 1.47.0 -%global version_previous 1.46.0 -%global version_bootstrap 1.46.0 +%global version_current 1.49.0 +%global version_previous 1.48.0 +%global version_bootstrap 1.48.0 # some sub-packages are versioned independently -%global rustfmt_version 1.4.21 +%global rustfmt_version 1.4.25 %global clippy_version 0.0.212 # Build the rust target triple. @@ -129,6 +129,7 @@ Group: Development/Languages/Rust URL: https://www.rust-lang.org Source0: %{dl_url}/rustc-%{version}-src.tar.xz +Source1: %{name}.keyring Source99: %{name}-rpmlintrc Source100: %{dl_url}/rust-%{version_bootstrap}-x86_64-unknown-linux-gnu.tar.xz Source101: %{dl_url}/rust-%{version_bootstrap}-i686-unknown-linux-gnu.tar.xz @@ -138,8 +139,16 @@ Source106: %{dl_url}/rust-%{version_bootstrap}-powerpc64le-unknown-linux-gnu.tar.xz Source107: %{dl_url}/rust-%{version_bootstrap}-s390x-unknown-linux-gnu.tar.xz Source108: %{dl_url}/rust-%{version_bootstrap}-powerpc-unknown-linux-gnu.tar.xz -# Not yet available -#Source109: %{dl_url}/rust-%{version_bootstrap}-riscv64gc-unknown-linux-gnu.tar.xz +Source109: %{dl_url}/rust-%{version_bootstrap}-riscv64gc-unknown-linux-gnu.tar.xz +Source200: %{dl_url}/rust-%{version_bootstrap}-x86_64-unknown-linux-gnu.tar.xz.asc +Source201: %{dl_url}/rust-%{version_bootstrap}-i686-unknown-linux-gnu.tar.xz.asc +Source202: %{dl_url}/rust-%{version_bootstrap}-aarch64-unknown-linux-gnu.tar.xz.asc +Source203: %{dl_url}/rust-%{version_bootstrap}-armv7-unknown-linux-gnueabihf.tar.xz.asc +Source205: %{dl_url}/rust-%{version_bootstrap}-powerpc64-unknown-linux-gnu.tar.xz.asc +Source206: %{dl_url}/rust-%{version_bootstrap}-powerpc64le-unknown-linux-gnu.tar.xz.asc +Source207: %{dl_url}/rust-%{version_bootstrap}-s390x-unknown-linux-gnu.tar.xz.asc +Source208: %{dl_url}/rust-%{version_bootstrap}-powerpc-unknown-linux-gnu.tar.xz.asc +Source209: %{dl_url}/rust-%{version_bootstrap}-riscv64gc-unknown-linux-gnu.tar.xz.asc # Make factory-auto stop complaining... Source1000: README.suse-maint # PATCH-FIX-OPENSUSE: edit src/librustc_llvm/build.rs to ignore GCC incompatible flag @@ -173,11 +182,15 @@ %if !%{with rust_bootstrap} && 0%{?sle_version} >= 150000 BuildRequires: pkgconfig(libssh2) >= 1.6.0 %endif -# Real LLVM minimum version should be 8.x, but rust has a fallback +# Real LLVM minimum version should be 9.x, but rust has a fallback # mode %if !%with bundled_llvm +%if 0%{?suse_version} < 1550 +BuildRequires: llvm9-devel +%else BuildRequires: llvm-devel >= 8.0 %endif +%endif %if !%with rust_bootstrap # We will now package cargo using the version number of rustc since it # is being built from rust sources. Old cargo packages have a 0.x @@ -383,8 +396,7 @@ %setup -q -T -b 108 -n rust-%{version_bootstrap}-%{rust_triple} %endif %ifarch riscv64 -# Not yet available -#%%setup -q -T -b 109 -n rust-%{version_bootstrap}-%{rust_triple} +%setup -q -T -b 109 -n rust-%{version_bootstrap}-%{rust_triple} %endif ./install.sh --components=cargo,rustc,rust-std-%{rust_triple} --prefix=.%{_prefix} --disable-ldconfig %endif @@ -466,6 +478,12 @@ if [ $(%{rust_root}/bin/rustc --version | sed -En 's/rustc ([0-9].[0-9][0-9].[0-9]).*/\1/p') = '%{version}' ]; then sed -i -e "s|#local-rebuild = false|local-rebuild = true|" config.toml; fi +%if %with bundled_llvm +# Ninja gets used for building llvm from rust-1.48 onwards; +# disable its use for anything older than Leap 15.2: +sed -i -e "s|#ninja = true|ninja = false|" config.toml +%endif + # Create exports file # Keep all the "export VARIABLE" together here, so they can be @@ -490,7 +508,7 @@ . ./.env.sh ./x.py build -v -./x.py doc -v +./x.py doc -v --stage 1 %install # Reread exports file ++++++ _constraints ++++++ --- /var/tmp/diff_new_pack.aYw0bU/_old 2021-02-01 15:49:09.422250804 +0100 +++ /var/tmp/diff_new_pack.aYw0bU/_new 2021-02-01 15:49:09.426250810 +0100 @@ -31,7 +31,7 @@ </conditions> <hardware> <physicalmemory> - <size unit="G">8</size> + <size unit="G">11</size> </physicalmemory> </hardware> </overwrite> ++++++ ignore-Wstring-conversion.patch ++++++ --- /var/tmp/diff_new_pack.aYw0bU/_old 2021-02-01 15:49:09.450250845 +0100 +++ /var/tmp/diff_new_pack.aYw0bU/_new 2021-02-01 15:49:09.450250845 +0100 @@ -1,7 +1,7 @@ -Index: rustc-1.47.0-src/src/librustc_llvm/build.rs +Index: rustc-1.49.0-src/compiler/rustc_llvm/build.rs =================================================================== ---- rustc-1.47.0-src.orig/src/librustc_llvm/build.rs -+++ rustc-1.47.0-src/src/librustc_llvm/build.rs +--- rustc-1.49.0-src.orig/compiler/rustc_llvm/build.rs ++++ rustc-1.49.0-src/compiler/rustc_llvm/build.rs @@ -157,6 +157,12 @@ fn main() { continue; } ++++++ rust-1.46.0-aarch64-unknown-linux-gnu.tar.xz -> rust-1.48.0-aarch64-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.46.0-aarch64-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rust-1.48.0-aarch64-unknown-linux-gnu.tar.xz differ: char 15, line 1 ++++++ rust-1.46.0-armv7-unknown-linux-gnueabihf.tar.xz -> rust-1.48.0-armv7-unknown-linux-gnueabihf.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.46.0-armv7-unknown-linux-gnueabihf.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rust-1.48.0-armv7-unknown-linux-gnueabihf.tar.xz differ: char 15, line 1 ++++++ rust-1.46.0-i686-unknown-linux-gnu.tar.xz -> rust-1.48.0-i686-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.46.0-i686-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rust-1.48.0-i686-unknown-linux-gnu.tar.xz differ: char 15, line 1 ++++++ rust-1.46.0-powerpc-unknown-linux-gnu.tar.xz -> rust-1.48.0-powerpc-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.46.0-powerpc-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rust-1.48.0-powerpc-unknown-linux-gnu.tar.xz differ: char 15, line 1 ++++++ rust-1.46.0-powerpc-unknown-linux-gnu.tar.xz -> rust-1.48.0-powerpc64-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.46.0-powerpc-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rust-1.48.0-powerpc64-unknown-linux-gnu.tar.xz differ: char 15, line 1 ++++++ rust-1.46.0-powerpc64le-unknown-linux-gnu.tar.xz -> rust-1.48.0-powerpc64le-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.46.0-powerpc64le-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rust-1.48.0-powerpc64le-unknown-linux-gnu.tar.xz differ: char 15, line 1 ++++++ rust-1.46.0-s390x-unknown-linux-gnu.tar.xz -> rust-1.48.0-s390x-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.46.0-s390x-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rust-1.48.0-s390x-unknown-linux-gnu.tar.xz differ: char 15, line 1 ++++++ rust-1.46.0-x86_64-unknown-linux-gnu.tar.xz -> rust-1.48.0-x86_64-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.46.0-x86_64-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rust-1.48.0-x86_64-unknown-linux-gnu.tar.xz differ: char 15, line 1 ++++++ rustc-1.47.0-src.tar.xz -> rustc-1.49.0-src.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rustc-1.47.0-src.tar.xz /work/SRC/openSUSE:Factory/.rust.new.28504/rustc-1.49.0-src.tar.xz differ: char 15, line 1
participants (1)
-
Source-Sync