Hello community, here is the log from the commit of package rust for openSUSE:Factory checked in at 2019-06-03 18:45:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rust (Old) and /work/SRC/openSUSE:Factory/.rust.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rust" Mon Jun 3 18:45:00 2019 rev:38 rq:706422 version:1.35.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rust/rust.changes 2019-05-03 22:24:25.671968810 +0200 +++ /work/SRC/openSUSE:Factory/.rust.new.5148/rust.changes 2019-06-03 18:45:44.248632642 +0200 @@ -1,0 +2,73 @@ +Wed May 29 21:38:13 UTC 2019 - Luke Jones <[email protected]> + +- Update to version 1.35.0 + + Language + - `FnOnce`, `FnMut`, and the `Fn` traits are now implemented for `Box<FnOnce>`, + `Box<FnMut>`, and `Box<Fn>` respectively. + - You can now coerce closures into unsafe function pointers. e.g. + unsafe fn call_unsafe(func: unsafe fn()) { + func() + } + + pub fn main() { + unsafe { call_unsafe(|| {}); } + } + + Compiler + - Added the `armv6-unknown-freebsd-gnueabihf` and + `armv7-unknown-freebsd-gnueabihf` targets. + - Added the `wasm32-unknown-wasi` target. + + Libraries + - `Thread` will now show its ID in `Debug` output. + - `StdinLock`, `StdoutLock`, and `StderrLock` now implement `AsRawFd`. + - `alloc::System` now implements `Default`. + - Expanded `Debug` output (`{:#?}`) for structs now has a trailing comma on the + last field. + - `char::{ToLowercase, ToUppercase}` now + implement `ExactSizeIterator`. + - All `NonZero` numeric types now implement `FromStr`. + - Removed the `Read` trait bounds + on the `BufReader::{get_ref, get_mut, into_inner}` methods. + - You can now call the `dbg!` macro without any parameters to print the file + and line where it is called. + - In place ASCII case conversions are now up to 4× faster. + e.g. `str::make_ascii_lowercase` + - `hash_map::{OccupiedEntry, VacantEntry}` now implement `Sync` + and `Send`. + + Stabilized APIs + - `f32::copysign` + - `f64::copysign` + - `RefCell::replace_with` + - `RefCell::map_split` + - `ptr::hash` + - `Range::contains` + - `RangeFrom::contains` + - `RangeTo::contains` + - `RangeInclusive::contains` + - `RangeToInclusive::contains` + - `Option::copied` + + Cargo + - You can now set `cargo:rustc-cdylib-link-arg` at build time to pass custom + linker arguments when building a `cdylib`. Its usage is highly + platform specific. + +- version 1.34.2 + + Destabilize the `Error::type_id` function due to a security + vulnerability (CVE-2019-12083) + +- version 1.34.1 + + Fix false positives for the `redundant_closure` Clippy lint + + Fix false positives for the `missing_const_for_fn` Clippy lint + + Fix Clippy panic when checking some macros + +------------------------------------------------------------------- +Sat May 25 12:23:30 UTC 2019 - Aaron Puchert <[email protected]> + +- Add fix-llvm8-build.patch: Fix linker errors with llvm8 by + limiting internalization in ThinLTO. + +------------------------------------------------------------------- +Fri May 17 23:06:25 UTC 2019 - [email protected] + +- Fix regexp for .rlib files in rust-rpmlintrc. + +------------------------------------------------------------------- Old: ---- rust-1.34.0-aarch64-unknown-linux-gnu.tar.xz rust-1.34.0-armv7-unknown-linux-gnueabihf.tar.xz rust-1.34.0-i686-unknown-linux-gnu.tar.xz rust-1.34.0-powerpc64-unknown-linux-gnu.tar.xz rust-1.34.0-powerpc64le-unknown-linux-gnu.tar.xz rust-1.34.0-s390x-unknown-linux-gnu.tar.xz rust-1.34.0-x86_64-unknown-linux-gnu.tar.xz rustc-1.34.0-src.tar.xz New: ---- fix-llvm8-build.patch rust-1.35.0-aarch64-unknown-linux-gnu.tar.xz rust-1.35.0-armv7-unknown-linux-gnueabihf.tar.xz rust-1.35.0-i686-unknown-linux-gnu.tar.xz rust-1.35.0-powerpc64-unknown-linux-gnu.tar.xz rust-1.35.0-powerpc64le-unknown-linux-gnu.tar.xz rust-1.35.0-s390x-unknown-linux-gnu.tar.xz rust-1.35.0-x86_64-unknown-linux-gnu.tar.xz rustc-1.35.0-src.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rust.spec ++++++ --- /var/tmp/diff_new_pack.UdP8KW/_old 2019-06-03 18:46:07.708624585 +0200 +++ /var/tmp/diff_new_pack.UdP8KW/_new 2019-06-03 18:46:07.708624585 +0200 @@ -17,9 +17,9 @@ # -%global version_current 1.34.0 -%global version_previous 1.33.0 -%global version_bootstrap 1.34.0 +%global version_current 1.35.0 +%global version_previous 1.34.0 +%global version_bootstrap 1.35.0 # some sub-packages are versioned independantly %global rustfmt_version 1.0.3 %global clippy_version 0.0.212 @@ -96,6 +96,8 @@ Source107: %{dl_url}/rust-%{version_bootstrap}-s390x-unknown-linux-gnu.tar.xz # PATCH-FIX-OPENSUSE: edit src/librustc_llvm/build.rs to ignore GCC incompatible flag Patch0: ignore-Wstring-conversion.patch +# PATCH-FIX-UPSTREAM: gh#rust-lang/rust#60184 +Patch1: fix-llvm8-build.patch BuildRequires: ccache # Leap 42 to 42.3, SLE12 SP1, SP2 %if 0%{?sle_version} >= 120000 && 0%{?sle_version} <= 120200 @@ -336,6 +338,7 @@ %setup -q -n rustc-%{version}-src %patch0 -p1 +%patch1 -p1 # use python3 sed -i -e "1s|#!.*|#!%{_bindir}/python3|" x.py ++++++ fix-llvm8-build.patch ++++++ >From b4131e297e18fde119f6f461b3e622218166b009 Mon Sep 17 00:00:00 2001 From: Josh Stone <[email protected]> Date: Fri, 26 Apr 2019 08:58:14 -0700 Subject: [PATCH] Limit internalization in LLVM 8 ThinLTO --- src/rustllvm/PassWrapper.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp index 319c66a21f17..0ebef82d3768 100644 --- a/src/rustllvm/PassWrapper.cpp +++ b/src/rustllvm/PassWrapper.cpp @@ -873,8 +873,11 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules, return PrevailingType::Unknown; }; #if LLVM_VERSION_GE(8, 0) + // We don't have a complete picture in our use of ThinLTO, just our immediate + // crate, so we need `ImportEnabled = false` to limit internalization. + // Otherwise, we sometimes lose `static` values -- see #60184. computeDeadSymbolsWithConstProp(Ret->Index, Ret->GUIDPreservedSymbols, - deadIsPrevailing, /* ImportEnabled = */ true); + deadIsPrevailing, /* ImportEnabled = */ false); #else computeDeadSymbols(Ret->Index, Ret->GUIDPreservedSymbols, deadIsPrevailing); #endif ++++++ rust-1.34.0-aarch64-unknown-linux-gnu.tar.xz -> rust-1.35.0-aarch64-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.34.0-aarch64-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.5148/rust-1.35.0-aarch64-unknown-linux-gnu.tar.xz differ: char 26, line 1 ++++++ rust-1.34.0-armv7-unknown-linux-gnueabihf.tar.xz -> rust-1.35.0-armv7-unknown-linux-gnueabihf.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.34.0-armv7-unknown-linux-gnueabihf.tar.xz /work/SRC/openSUSE:Factory/.rust.new.5148/rust-1.35.0-armv7-unknown-linux-gnueabihf.tar.xz differ: char 26, line 1 ++++++ rust-1.34.0-i686-unknown-linux-gnu.tar.xz -> rust-1.35.0-i686-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.34.0-i686-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.5148/rust-1.35.0-i686-unknown-linux-gnu.tar.xz differ: char 25, line 1 ++++++ rust-1.34.0-powerpc64-unknown-linux-gnu.tar.xz -> rust-1.35.0-powerpc64-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.34.0-powerpc64-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.5148/rust-1.35.0-powerpc64-unknown-linux-gnu.tar.xz differ: char 26, line 1 ++++++ rust-1.34.0-powerpc64le-unknown-linux-gnu.tar.xz -> rust-1.35.0-powerpc64le-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.34.0-powerpc64le-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.5148/rust-1.35.0-powerpc64le-unknown-linux-gnu.tar.xz differ: char 26, line 1 ++++++ rust-1.34.0-s390x-unknown-linux-gnu.tar.xz -> rust-1.35.0-s390x-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.34.0-s390x-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.5148/rust-1.35.0-s390x-unknown-linux-gnu.tar.xz differ: char 26, line 1 ++++++ rust-1.34.0-x86_64-unknown-linux-gnu.tar.xz -> rust-1.35.0-x86_64-unknown-linux-gnu.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rust-1.34.0-x86_64-unknown-linux-gnu.tar.xz /work/SRC/openSUSE:Factory/.rust.new.5148/rust-1.35.0-x86_64-unknown-linux-gnu.tar.xz differ: char 25, line 1 ++++++ rust-rpmlintrc ++++++ --- /var/tmp/diff_new_pack.UdP8KW/_old 2019-06-03 18:46:07.856624533 +0200 +++ /var/tmp/diff_new_pack.UdP8KW/_new 2019-06-03 18:46:07.856624533 +0200 @@ -3,7 +3,7 @@ addFilter("devel-file-in-non-devel-package.*/usr/lib/rustlib/src/.*") # filters for rust-std # rlib not in elf format -addFilter("binaryinfo-readelf-failed*./usr/lib/rustlib/*.rlib") +addFilter("binaryinfo-readelf-failed.*/usr/lib/rustlib/.*rlib") # rust has no stable ABI as of yet, soname is of no use yet addFilter("no-soname.*/usr/lib/rustlib/.*") addFilter("no-soname.*/usr/lib/lib*") @@ -13,4 +13,4 @@ addFilter("rust-analysis.x86_64: W: no-version-in-last-changelog") addFilter("rustfmt.x86_64: W: no-version-in-last-changelog") # error when building with bootstrap. ignore for now -addFilter(".*shlib-policy-name-error.*libLLVM-8.*") \ No newline at end of file +addFilter(".*shlib-policy-name-error.*libLLVM-8.*") ++++++ rustc-1.34.0-src.tar.xz -> rustc-1.35.0-src.tar.xz ++++++ /work/SRC/openSUSE:Factory/rust/rustc-1.34.0-src.tar.xz /work/SRC/openSUSE:Factory/.rust.new.5148/rustc-1.35.0-src.tar.xz differ: char 27, line 1
