Accepting request 679979 from home:luke_nukem:branches:devel:languages:rust

- Use same version bootstrap as package source
- Fixes to build with correct LLVM for SLE and Leap releases
- Move export vars directly to where used.

OBS-URL: https://build.opensuse.org/request/show/679979
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=192
This commit is contained in:
Luke Jones 2019-02-27 22:32:57 +00:00 committed by Git OBS Bridge
parent 88a25a2cd1
commit 1855fcb516
19 changed files with 64 additions and 63 deletions

View File

@ -1,7 +1,7 @@
<?xml version="1.0"?>
<constraints>
<hardware>
<processors>4</processors>
<processors>4</processors>
<memory>
<size unit="G">8</size>
</memory>
@ -17,6 +17,9 @@
</conditions>
<hardware>
<processors>2</processors>
<physicalmemory>
<size unit="G">4</size>
</physicalmemory>
<disk>
<size unit="G">15</size>
</disk>

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8926323bd0a69cfa13fc42a933ac290ef2c2ed2795e49a76aee6a8b15e0f5522
size 117785172

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c24e6cd322bc3f23b3939b6738f72cb714814db97c2adb158fcfe3555a1ffce4
size 124897320

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2612d15507a90b17a212dc0cb95f13351fac0c9c0c52c3e13a947ffbcfc0e12e
size 126152056

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9f0877b2d8ec0ba0066a90fea267590603502e67269ebc2aa2d36e2fb050a5bc
size 147063596

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:18adbc13b5fdb0d7796a512c6408257f488dec96c055916093a441f5fea474ad
size 122297864

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:39240ba479858199e2dfdd7e706fab41e7b30f5fe56198473aaf182124d91576
size 125272712

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:db675fb948fa4de2c6c59c8cd92764b49616c355c25c5b5e5b036e1c2b8267d5
size 127867704

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b2a13544161f6a5a5d9d4130f2c4ce8043c2d3a7cd429310a51080111fbf957a
size 148394364

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a530cfc8aadd2cec3b8c63dfb46c940ad8b4b18131641a3da1601ec380619f11
size 116136352

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:456ea506cd920d3470ee935e239b1be2101abf21ec6547133fce8b0f80ee0448
size 117758664

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e823316c841fe8459f49337fa0ca164df7b8a651e7b8fc4d3375c94766ac228
size 119183916

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:29c015ef1aa37f770e823fe7f000892448f9b5f2ca9ec381b6ad7b7a965b6054
size 146763596

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:237665793c41d794d339d383010d477e8d99025c407bf956a3c52ea51b90814b
size 120518816

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:93a85671ac11446bbedef67941591b06b3151b866df12c3a71d5940068d40bd0
size 124278796

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2ca4b078f3a1c23221f726668a26682651f515fdd8ba57827c87ea41b811006e
size 128857448

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e7ee1fc3c6e2d2dec4bfdc0b38ecc3a80828655bdf6bb44d97c7a9ea76134f86
size 147868652

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Feb 27 21:39:35 UTC 2019 - jones_ld@protonmail.com
- Use same version bootstrap as package source
- Fixes to build with correct LLVM for SLE and Leap releases
-------------------------------------------------------------------
Wed Feb 27 02:38:54 UTC 2019 - Luke Jones <jones_ld@protonmail.com>
@ -324,15 +330,15 @@ Update to version 1.30.0 (2018-10-25)
- You can now use keywords as identifiers using the raw identifiers
syntax (`r#`),- e.g. `let r#for = true;`
- Using anonymous parameters in traits is now deprecated with a warning and
will be a hard error in the 2018 edition.-
will be a hard error in the 2018 edition.-
- You can now use `crate` in paths.- This allows you to refer to the
crate root in the path, e.g. `use crate::foo;` refers to `foo` in `src/lib.rs`.
- Using a external crate no longer requires being prefixed with `::`.-
- Using a external crate no longer requires being prefixed with `::`.-
Previously, using a external crate in a module without a use statement
required `let json = ::serde_json::from_str(foo);` but can now be written
as `let json = serde_json::from_str(foo);`.
- You can now apply the `#[used]` attribute to static items to prevent the
compiler from optimising them away, even if they appear to be unused,-
compiler from optimising them away, even if they appear to be unused,-
e.g. `#[used] static FOO: u32 = 1;`
- You can now import and reexport macros from other crates with the `use`
syntax.- Macros exported with `#[macro_export]` are now placed into
@ -341,17 +347,17 @@ Update to version 1.30.0 (2018-10-25)
`#[macro_export(local_inner_macros)]` attribute so users won't have to import
those macros.
- You can now catch visibility keywords (e.g. `pub`, `pub(crate)`) in macros
using the `vis` specifier.-
using the `vis` specifier.-
- Non-macro attributes now allow all forms of literals, not just
strings.- Previously, you would write `#[attr("true")]`, and you can now
write `#[attr(true)]`.
- You can now specify a function to handle a panic in the Rust runtime with the
`#[panic_handler]` attribute.-
`#[panic_handler]` attribute.-
+ Compiler
- Added the `riscv32imc-unknown-none-elf` target.-
- Added the `aarch64-unknown-netbsd` target-
- Added the `riscv32imc-unknown-none-elf` target.-
- Added the `aarch64-unknown-netbsd` target-
+ Libraries
- `ManuallyDrop` now allows the inner type to be unsized.-
- `ManuallyDrop` now allows the inner type to be unsized.-
+ Stabilized APIs
- `Ipv4Addr::BROADCAST`
- `Ipv4Addr::LOCALHOST`
@ -373,11 +379,11 @@ Update to version 1.30.0 (2018-10-25)
- Cargo will now provide a progress bar for builds.][cargo/5995]
+ Misc
- `rustdoc` allows you to specify what edition to treat your code as with the
`--edition` option.-
`--edition` option.-
- `rustdoc` now has the `--color` (specify whether to output color) and
`--error-format` (specify error format, e.g. `json`) options.-
`--error-format` (specify error format, e.g. `json`) options.-
- We now distribute a `rust-gdbgui` script that invokes `gdbgui` with Rust
debug symbols.-
debug symbols.-
- Attributes from Rust tools such as `rustfmt` or `clippy` are now
available,- e.g. `#[rustfmt::skip]` will skip formatting the next item.
- Update to version 1.29.2 (2018-10-11)
@ -437,12 +443,12 @@ Update to version 1.30.0 (2018-10-25)
allows a Rust newtype wrapper (`struct NewType<T>(T);`) to be represented as
the inner type across Foreign Function Interface (FFI) boundaries.
- The keywords `pure`, `sizeof`, `alignof`, and `offsetof` have been unreserved
and can now be used as identifiers.-
and can now be used as identifiers.-
- The `GlobalAlloc` trait and `#[global_allocator]` attribute are now
stable.- This will allow users to specify a global allocator for
their program.
- Unit test functions marked with the `#[test]` attribute can now return
`Result<(), E: Debug>` in addition to `()`.-
`Result<(), E: Debug>` in addition to `()`.-
- The `lifetime` specifier for `macro_rules!` is now stable.- This
allows macros to easily target lifetimes.
+ Compiler
@ -453,13 +459,13 @@ Update to version 1.30.0 (2018-10-25)
- The short error format is now stable.- Specified with
`--error-format=short` this option will provide a more compressed output of
rust error messages.
- Added a lint warning when you have duplicated `macro_export`s.-
- Added a lint warning when you have duplicated `macro_export`s.-
- Reduced the number of allocations in the macro parser.- This can
improve compile times of macro heavy crates on average by 5%.
+ Libraries
- Implemented `Default` for `&mut str`.-
- Implemented `From<bool>` for all integer and unsigned number types.-
- Implemented `Extend` for `()`.-
- Implemented `Default` for `&mut str`.-
- Implemented `From<bool>` for all integer and unsigned number types.-
- Implemented `Extend` for `()`.-
- The `Debug` implementation of `time::Duration` should now be more easily
human readable.- Previously a `Duration` of one second would printed as
`Duration { secs: 1, nanos: 0 }` and will now be printed as `1s`.
@ -467,12 +473,12 @@ Update to version 1.30.0 (2018-10-25)
`From<Cow<CStr>>` for `CString`, `From<CString>, From<CStr>, From<&CString>`
for `Cow<CStr>`, `From<OsString>, From<OsStr>, From<&OsString>` for
`Cow<OsStr>`, `From<&PathBuf>` for `Cow<Path>`, and `From<Cow<Path>>`
for `PathBuf`.-
for `PathBuf`.-
- Implemented `Shl` and `Shr` for `Wrapping<u128>`
and `Wrapping<i128>`.-
and `Wrapping<i128>`.-
- `DirEntry::metadata` now uses `fstatat` instead of `lstat` when
possible.- This can provide up to a 40% speed increase.
- Improved error messages when using `format!`.-
- Improved error messages when using `format!`.-
+ Stabilized APIs
- `Iterator::step_by`
- `Path::ancestors`
@ -752,7 +758,7 @@ Sat Feb 24 19:26:15 UTC 2018 - mmanu84@outlook.de
- Update to 1.24.0
- Language changes:
+ External `sysv64` ffi is now available.
+ External `sysv64` ffi is now available.
eg. `extern "sysv64" fn foo () {}`
- Compiler changes:
+ rustc now uses 16 codegen units by default for release builds.
@ -770,18 +776,18 @@ Sat Feb 24 19:26:15 UTC 2018 - mmanu84@outlook.de
+ Copied `AsciiExt` methods onto `char`
+ Remove `T: Sized` requirement on `ptr::is_null()`
+ impl `From<RecvError>` for `{TryRecvError, RecvTimeoutError}`
+ Optimised `f32::{min, max}` to generate more efficient x86
+ Optimised `f32::{min, max}` to generate more efficient x86
assembly
+ `[u8]::contains` now uses memchr which provides a 3x speed
improvement
- Compatibility Notes:
+ Floating point types `Debug` impl now always prints a decimal
point.
+ `Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses
+ `Ipv6Addr` now rejects superfluous `::`'s in IPv6 addresses
This is in accordance with IETF RFC 4291 §2.2.
+ Unwinding will no longer go past FFI boundaries, and will
instead abort.
+ `Formatter::flags` method is now deprecated. The `sign_plus`,
+ `Formatter::flags` method is now deprecated. The `sign_plus`,
`sign_minus`, `alternate`, and `sign_aware_zero_pad` should be
used instead.
+ Leading zeros in tuple struct members is now an error
@ -899,7 +905,7 @@ Thu Nov 23 00:27:24 UTC 2017 - jones_ld@protonmail.com
+ The minimum Android version that rustc can build for has been bumped
to `4.0` from `2.3`
+ Allowing `T op= &T` for numeric types has broken some type inference cases
- Remove rust-1.21.0-44203-exclude-compiler-rt-test.patch
- Remove rust-1.21.0-44066-ppc64-struct-abi.patch
- Remove rust-1.21.0-44440-s390x-global-align.patch

View File

@ -17,7 +17,7 @@
#
%global prev_rust 1.31.1
%global prev_rust 1.32.0
# some sub-packages are versioned independantly
%global rustfmt_version 1.0.0
%global rls_version 1.31.6
@ -55,20 +55,12 @@
# Will build with distro LLVM by default, but the following
# versions do not have a version new enough, >= 6.0
# add --without bundled_llvm option, i.e. enable bundled_llvm by default
# Leap 15.0
%if 0%{?sle_version} == 150000 && 0%{?is_opensuse}
# Leap 15.0, SLE 15
%if 0%{?sle_version} == 150000
%bcond_without bundled_llvm
%endif
# Leap 42.3
%if 0%{?sle_version} == 120300 && 0%{?is_opensuse}
%bcond_without bundled_llvm
%endif
# Leap 42.2
%if 0%{?sle_version} == 120200 && 0%{?is_opensuse}
%bcond_without bundled_llvm
%endif
# SLE Backports SP3 or less
%if 0%{?sle_version} <= 120300 && 0%{?is_backports}
# Leap 42 to 42.3, SLE12 SP1 to SLE12 SP3
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} <= 123000
%bcond_without bundled_llvm
%endif