SHA256
1
0
forked from pool/rust

Accepting request 746768 from home:aplanas:branches:devel:languages:rust

- Add hopefully-fix-rustdoc-build.patch to fix rustdoc compilation
- Update to version 1.39.0
  + Language
    - You can now create async functions and blocks with async fn,
      async move {}, and async {} respectively, and you can now call
      .await on async expressions.
    - You can now use certain attributes on function, closure, and
      function pointer parameters.
    - You can now take shared references to bind-by-move patterns in
      the if guards of match arms.
  + Compiler
    - Added tier 3 support for the i686-unknown-uefi target.
    - Added tier 3 support for the sparc64-unknown-openbsd target.
    - rustc will now trim code snippets in diagnostics to fit in your
      terminal.
    - You can now pass --show-output argument to test binaries to
      print the output of successful tests.
  + For more details:
    https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-1390-2019-11-07
- Drop patches already merged in upstream:
  + rust-61206-assume-tarball-llvm-is-fresh.patch
  + add-option-to-allow-warnings.patch

OBS-URL: https://build.opensuse.org/request/show/746768
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=233
This commit is contained in:
Luke Jones
2019-11-09 09:53:14 +00:00
committed by Git OBS Bridge
parent 3a03c62ad6
commit f55288c081
24 changed files with 116 additions and 239 deletions

View File

@@ -17,11 +17,11 @@
#
%global version_current 1.38.0
%global version_previous 1.37.0
%global version_bootstrap 1.37.0
# some sub-packages are versioned independantly
%global rustfmt_version 1.0.3
%global version_current 1.39.0
%global version_previous 1.38.0
%global version_bootstrap 1.38.0
# some sub-packages are versioned independently
%global rustfmt_version 1.4.8
%global clippy_version 0.0.212
# Build the rust target triple.
# Some rust arches don't match what SUSE labels them.
@@ -122,10 +122,8 @@ Source107: %{dl_url}/rust-%{version_bootstrap}-s390x-unknown-linux-gnu.tar.
Source108: %{dl_url}/rust-%{version_bootstrap}-powerpc-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: Fix bug with timestamps which caused LLVM to rebuild - https://github.com/rust-lang/rust/issues/61206
Patch1: rust-61206-assume-tarball-llvm-is-fresh.patch
# PATCH-FIX-UPSTREAM: Adds an option to ignore warnings, primaraily used in this build to allow v1.38 to bootstrap itself
Patch2: add-option-to-allow-warnings.patch
# PATCH-FIX-UPSTREAM: fix rustdoc compilation: https://github.com/rust-lang/rust/issues/66224
Patch1: hopefully-fix-rustdoc-build.patch
BuildRequires: ccache
# Leap 42 to 42.3, SLE12 SP1, SP2
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} <= 120200
@@ -376,7 +374,6 @@ This package includes HTML documentation for Cargo.
%patch0 -p1
%patch1 -p1
%patch2 -p1
# use python3
sed -i -e "1s|#!.*|#!%{_bindir}/python3|" x.py