Accepting request 760082 from home:luke_nukem:branches:devel:languages:rust
- Update to version 1.40.0 Waiting on 1.39 to be merged in Factory. OBS-URL: https://build.opensuse.org/request/show/760082 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=237
This commit is contained in:
parent
92c01454df
commit
d5285e9bf9
4
_service
4
_service
@ -1,8 +1,8 @@
|
||||
<services>
|
||||
<service mode="disabled" name="download_files">
|
||||
<service name="download_files" mode="disabled">
|
||||
<param name="changesgenerate">enable</param>
|
||||
</service>
|
||||
<service mode="disabled" name="refresh_patches">
|
||||
<service name="refresh_patches" mode="disabled">
|
||||
<param name="changesgenerate">enable</param>
|
||||
<param name="ignorefuzz">enable</param>
|
||||
</service>
|
||||
|
@ -1,35 +0,0 @@
|
||||
From 73369f32621f6a844a80a8513ae3ded901e4a406 Mon Sep 17 00:00:00 2001
|
||||
From: Mark Rousskov <mark.simulacrum@gmail.com>
|
||||
Date: Tue, 5 Nov 2019 11:16:46 -0500
|
||||
Subject: [PATCH] Hopefully fix rustdoc build
|
||||
|
||||
It's super unclear why this broke when we switched to beta but not
|
||||
previously -- but at least it's hopefully fixed now.
|
||||
---
|
||||
src/bootstrap/builder.rs | 13 ++++++++++++-
|
||||
1 file changed, 12 insertions(+), 1 deletion(-)
|
||||
|
||||
Index: rustc-1.39.0-src/src/bootstrap/builder.rs
|
||||
===================================================================
|
||||
--- rustc-1.39.0-src.orig/src/bootstrap/builder.rs
|
||||
+++ rustc-1.39.0-src/src/bootstrap/builder.rs
|
||||
@@ -875,7 +875,18 @@ impl<'a> Builder<'a> {
|
||||
// things still build right, please do!
|
||||
match mode {
|
||||
Mode::Std => metadata.push_str("std"),
|
||||
- _ => {},
|
||||
+ // When we're building rustc tools, they're built with a search path
|
||||
+ // that contains things built during the rustc build. For example,
|
||||
+ // bitflags is built during the rustc build, and is a dependency of
|
||||
+ // rustdoc as well. We're building rustdoc in a different target
|
||||
+ // directory, though, which means that Cargo will rebuild the
|
||||
+ // dependency. When we go on to build rustdoc, we'll look for
|
||||
+ // bitflags, and find two different copies: one built during the
|
||||
+ // rustc step and one that we just built. This isn't always a
|
||||
+ // problem, somehow -- not really clear why -- but we know that this
|
||||
+ // fixes things.
|
||||
+ Mode::ToolRustc => metadata.push_str("tool-rustc"),
|
||||
+ _ => {}
|
||||
}
|
||||
cargo.env("__CARGO_DEFAULT_LIB_METADATA", &metadata);
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6ab06ff04cc41e612dd55f3358a1239be8cceb0ad8018996d39ae3e3b23156d2
|
||||
size 235231988
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c8b9ced4a6b6efe32ac41e2ec032f847223b48ead04dedd2172e08d98616a774
|
||||
size 243411104
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5c488cea89cef760362868eb790896bdf31b3109e392f0d54b27b74bd214df33
|
||||
size 298169160
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b4ef3d69c8f31cfecd697decedfc5663374f543cfdd0db3d090ebdd8172e10a5
|
||||
size 239750464
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6d14e0e4c334472a34a4a0943305ad8ef2a824bcd48ec92b71a11307a7be74b1
|
||||
size 240082008
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6c253cc0f9441ab6ef4c2457e0ef8748c076d7d1897ab8a8a7bbb00308603a2b
|
||||
size 244407488
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:797c15038950f7a20abcc51c738fe5948a222c9847f01bce03ca0c76fe142879
|
||||
size 291685528
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4e9a2ef90679a66c9f8c62b113b018866303645a69c4812d8290d8a7162ea190
|
||||
size 279859784
|
3
rust-1.39.0-aarch64-unknown-linux-gnu.tar.xz
Normal file
3
rust-1.39.0-aarch64-unknown-linux-gnu.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a3f6943ad00bbf7131c8571b21f641082c8ac8298ee3a8bd5428e96743e31e05
|
||||
size 238165960
|
3
rust-1.39.0-armv7-unknown-linux-gnueabihf.tar.xz
Normal file
3
rust-1.39.0-armv7-unknown-linux-gnueabihf.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d98a3cfaa427e7bba95a36cbe98cc2ded3ff5ee87242add1e0c393467c069756
|
||||
size 246114456
|
3
rust-1.39.0-i686-unknown-linux-gnu.tar.xz
Normal file
3
rust-1.39.0-i686-unknown-linux-gnu.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:26b57f9c76ef9119e703a5b5acb7026963f18814cc167c2d8d6a562e05ad755c
|
||||
size 297665804
|
3
rust-1.39.0-powerpc-unknown-linux-gnu.tar.xz
Normal file
3
rust-1.39.0-powerpc-unknown-linux-gnu.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:47784d04dbee846d50f662276f659ee0b0b6719d1abc9efdb29cf17eaec745cd
|
||||
size 240597272
|
3
rust-1.39.0-powerpc64-unknown-linux-gnu.tar.xz
Normal file
3
rust-1.39.0-powerpc64-unknown-linux-gnu.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4a38a477ec7b6fd111d84c48ef7f35d16e7a21bca5cf8820e9274bf76e969ef5
|
||||
size 242170220
|
3
rust-1.39.0-powerpc64le-unknown-linux-gnu.tar.xz
Normal file
3
rust-1.39.0-powerpc64le-unknown-linux-gnu.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b5e9abf89cb4d04f5e03aae77ef6a3cddc32821b9cd833f4c32a335fbb46cf76
|
||||
size 247026740
|
3
rust-1.39.0-s390x-unknown-linux-gnu.tar.xz
Normal file
3
rust-1.39.0-s390x-unknown-linux-gnu.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ec7f8e98a3ecb7838bc11ffde968465b34d08ac6fdb37459af12ae99f617b0dd
|
||||
size 298119784
|
3
rust-1.39.0-x86_64-unknown-linux-gnu.tar.xz
Normal file
3
rust-1.39.0-x86_64-unknown-linux-gnu.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:095874d294355e95236e07e3e82635d95b8872f751ad21c5d1d9b53ef443e536
|
||||
size 284967620
|
@ -1,16 +1,23 @@
|
||||
# filters for rust-src
|
||||
addFilter("devel-dependency rust-std-static")
|
||||
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")
|
||||
|
||||
# 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*")
|
||||
|
||||
# tool versions don't always change at same pace as rustc
|
||||
addFilter("clippy.x86_64: W: no-version-in-last-changelog")
|
||||
addFilter("rls.x86_64: W: no-version-in-last-changelog")
|
||||
addFilter("rust-analysis.x86_64: W: no-version-in-last-changelog")
|
||||
addFilter("rustfmt.x86_64: W: no-version-in-last-changelog")
|
||||
|
||||
# we use a "provides =" with version to set the version correctly
|
||||
addFilter("clippy.x86_64: W: useless-provides clippy")
|
||||
addFilter("rustfmt.x86_64: W: useless-provides rustfmt")
|
||||
|
||||
# error when building with bootstrap. ignore for now
|
||||
addFilter(".*shlib-policy-name-error.*libLLVM-8.*")
|
||||
|
82
rust.changes
82
rust.changes
@ -1,3 +1,85 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 30 03:48:37 UTC 2019 - Luke Jones <luke@ljones.dev>
|
||||
|
||||
- Update to version 1.40.0
|
||||
+ Language
|
||||
- You can now use tuple `struct`s and tuple `enum` variant's constructors in
|
||||
`const` contexts. e.g.
|
||||
pub struct Point(i32, i32);
|
||||
const ORIGIN: Point = {
|
||||
let constructor = Point;
|
||||
constructor(0, 0)
|
||||
};
|
||||
- You can now mark `struct`s, `enum`s, and `enum` variants with the `#[non_exhaustive]` attribute to
|
||||
indicate that there may be variants or fields added in the future.
|
||||
For example this requires adding a wild-card branch (`_ => {}`) to any match
|
||||
statements on a non-exhaustive `enum`.
|
||||
- You can now use function-like procedural macros in `extern` blocks and in
|
||||
type positions. e.g. `type Generated = macro!();`
|
||||
- Function-like and attribute procedural macros can now emit
|
||||
`macro_rules!` items, so you can now have your macros generate macros.
|
||||
- The `meta` pattern matcher in `macro_rules!` now correctly matches the modern
|
||||
attribute syntax. For example `(#[$m:meta])` now matches `#[attr]`,
|
||||
`#[attr{tokens}]`, `#[attr[tokens]]`, and `#[attr(tokens)]`.
|
||||
+ Compiler
|
||||
- Added tier 3 support\* for the
|
||||
`thumbv7neon-unknown-linux-musleabihf` target.
|
||||
- Added tier 3 support for the
|
||||
`aarch64-unknown-none-softfloat` target.
|
||||
- Added tier 3 support for the `mips64-unknown-linux-muslabi64`, and
|
||||
`mips64el-unknown-linux-muslabi64` targets.
|
||||
+ Libraries
|
||||
- The `is_power_of_two` method on unsigned numeric types is now a `const` function.
|
||||
+ Stabilized APIs
|
||||
- BTreeMap::get_key_value
|
||||
- HashMap::get_key_value
|
||||
- Option::as_deref_mut
|
||||
- Option::as_deref
|
||||
- Option::flatten
|
||||
- UdpSocket::peer_addr
|
||||
- f32::to_be_bytes
|
||||
- f32::to_le_bytes
|
||||
- f32::to_ne_bytes
|
||||
- f64::to_be_bytes
|
||||
- f64::to_le_bytes
|
||||
- f64::to_ne_bytes
|
||||
- f32::from_be_bytes
|
||||
- f32::from_le_bytes
|
||||
- f32::from_ne_bytes
|
||||
- f64::from_be_bytes
|
||||
- f64::from_le_bytes
|
||||
- f64::from_ne_bytes
|
||||
- mem::take
|
||||
- slice::repeat
|
||||
- todo!
|
||||
+ Cargo
|
||||
- Cargo will now always display warnings, rather than only on
|
||||
fresh builds.
|
||||
- Feature flags (except `--all-features`) passed to a virtual workspace will
|
||||
now produce an error. Previously these flags were ignored.
|
||||
- You can now publish `dev-dependencies` without including
|
||||
a `version`.
|
||||
+ Misc
|
||||
- You can now specify the `#[cfg(doctest)]` attribute to include an item only
|
||||
when running documentation tests with `rustdoc`.
|
||||
|
||||
+ Compatibility Notes
|
||||
- As previously announced, any previous NLL warnings in the 2015 edition are
|
||||
now hard errors.
|
||||
- The `include!` macro will now warn if it failed to include the
|
||||
entire file. The `include!` macro unintentionally only includes the
|
||||
first _expression_ in a file, and this can be unintuitive. This will become
|
||||
either a hard error in a future release, or the behavior may be fixed to include all expressions as expected.
|
||||
- Using `#[inline]` on function prototypes and consts now emits a warning under
|
||||
`unused_attribute` lint. Using `#[inline]` anywhere else inside traits
|
||||
or `extern` blocks now correctly emits a hard error.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 30 03:42:44 UTC 2019 - opensuse-packaging@opensuse.org
|
||||
|
||||
- Rebased patches:
|
||||
+ hopefully-fix-rustdoc-build.patch dropped (merged upstream)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 29 14:43:11 UTC 2019 - Neal Gompa <ngompa13@gmail.com>
|
||||
|
||||
|
13
rust.spec
13
rust.spec
@ -17,12 +17,12 @@
|
||||
#
|
||||
|
||||
|
||||
%global version_current 1.39.0
|
||||
%global version_previous 1.38.0
|
||||
%global version_bootstrap 1.38.0
|
||||
%global version_current 1.40.0
|
||||
%global version_previous 1.39.0
|
||||
%global version_bootstrap 1.39.0
|
||||
|
||||
# some sub-packages are versioned independently
|
||||
%global rustfmt_version 1.4.8
|
||||
%global rustfmt_version 1.4.9
|
||||
%global clippy_version 0.0.212
|
||||
|
||||
# Build the rust target triple.
|
||||
@ -136,7 +136,6 @@ Source1000: README.suse-maint
|
||||
# PATCH-FIX-OPENSUSE: edit src/librustc_llvm/build.rs to ignore GCC incompatible flag
|
||||
Patch0: ignore-Wstring-conversion.patch
|
||||
# PATCH-FIX-UPSTREAM: fix rustdoc compilation: https://github.com/rust-lang/rust/issues/66224
|
||||
Patch1: hopefully-fix-rustdoc-build.patch
|
||||
BuildRequires: ccache
|
||||
BuildRequires: curl
|
||||
BuildRequires: fdupes
|
||||
@ -387,7 +386,6 @@ This package includes HTML documentation for Cargo.
|
||||
%setup -q -n rustc-%{version}-src
|
||||
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
# use python3
|
||||
sed -i -e "1s|#!.*|#!%{_bindir}/python3|" x.py
|
||||
@ -400,11 +398,12 @@ rm -rf src/tools/clang
|
||||
rm -rf src/tools/lld
|
||||
rm -rf src/tools/lldb
|
||||
# CI tooling won't be used
|
||||
rm -rf src/stdsimd/ci
|
||||
rm -rf src/ci
|
||||
|
||||
# Remove hidden files from source
|
||||
find src/ -type f -name '.appveyor.yml' -exec rm -v '{}' '+'
|
||||
find src/ -type f -name '.travis.yml' -exec rm -v '{}' '+'
|
||||
find src/ -type f -name '.cirrus.yml' -exec rm -v '{}' '+'
|
||||
|
||||
%if !%with bundled_llvm
|
||||
rm -rf src/llvm/
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4b0dbb356070687a606034f71dc032b783bbf8b5d3f9fff39f2c1fbc4f171c29
|
||||
size 96495140
|
3
rustc-1.40.0-src.tar.xz
Normal file
3
rustc-1.40.0-src.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6e2aa3a91697f4b225c6b394cbae6b97666f061dba491f666a5281698fe2aace
|
||||
size 92306352
|
Loading…
Reference in New Issue
Block a user