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

* update to v1.14.0
* cleanup spec
* build archv7hl using bootstrap binary since no previous package builds were successful

OBS-URL: https://build.opensuse.org/request/show/447471
OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=22
This commit is contained in:
Luke Jones 2016-12-23 23:13:37 +00:00 committed by Git OBS Bridge
parent 2f5f2f2954
commit a1c48bbe77
5 changed files with 47 additions and 46 deletions

View File

@ -1,28 +0,0 @@
From 10ce90fca20fce776b8bdad504a5e3b915ded99f Mon Sep 17 00:00:00 2001
From: "Matwey V. Kornilov" <matwey.kornilov@gmail.com>
Date: Sun, 30 Oct 2016 11:26:25 +0300
Subject: [PATCH 1/2] Fix armv7 autodetection
armv7l is armv7 architecture and CFG_CPUTYPE should be armv7 in order to end up
with armv7-unknown-linux-gnueabihf.mk rather than
arm-unknown-linux-gnueabihf.mk
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index 2bc8c72..d62084c 100755
--- a/configure
+++ b/configure
@@ -508,7 +508,7 @@ case $CFG_CPUTYPE in
;;
armv7l)
- CFG_CPUTYPE=arm
+ CFG_CPUTYPE=armv7
CFG_OSTYPE="${CFG_OSTYPE}eabihf"
;;
--
2.1.4

View File

@ -1,3 +1,39 @@
-------------------------------------------------------------------
Fri Dec 23 08:22:26 UTC 2016 - luke.nukem.jones@gmail.com
- Remove patch 0001-Fix-armv7-autodetection.patch
+ appears to have been fixed upstream.
- Building armv7hl arch with bootstrap binary since previously
packaged versions haven't successfully built in the past
-------------------------------------------------------------------
Fri Dec 23 07:57:24 UTC 2016 - luke.nukem.jones@gmail.com
- Update to version 1.14.0
+ Announcement: https://blog.rust-lang.org/2016/12/22/Rust-1.14.html
+ Details: https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1140-2016-12-22
- Release highlights:
+ support for RFC 1492. This small addition lets you use `..`
in more places, for example when destructuring a struct or tuple
+ println!(), with no arguments, prints newline
+ Wrapping impls standard binary and unary operators on
references, as well as the Sum and Product iterators, making
references to these types easier to use
+ Implement From<Cow<str>> for String and From<Cow<[T]>> for
Vec<T>. These implementations make sense, but were not yet added.
+ Expand .zip() specialization to .map() and .cloned() for
improved performance.
+ Implement RefUnwindSafe for atomic types, as these types are
“unwind safe,” though that wasnt obvious at first.
+ Specialize Vec::extend to Vec::extend_from_slice for
performance gains.
+ Dont reuse HashMap random seeds. This helps to mitigate one
type of DDoS attack.
+ The internal memory layout of HashMap is more cache-friendly,
for significant improvements in some operations
+ Impl Add<{str, Cow<str>}> for Cow<str>. We already support Add
for other string types, so not having it on Cow is inconsistent.
-------------------------------------------------------------------
Sun Dec 18 09:27:44 UTC 2016 - luke.nukem.jones@gmail.com

View File

@ -16,10 +16,10 @@
#
%global prev_version 1.12.1
%global prev_version 1.13.0
%bcond_with bootstrap
Name: rust
Version: 1.13.0
Version: 1.14.0
Release: 0
Summary: A systems programming language
License: MIT or Apache-2.0
@ -29,8 +29,6 @@ Source0: https://static.rust-lang.org/dist/rustc-%{version}-src.tar.gz
Source100: %{name}-rpmlintrc
# PATCH-FIX-OPENSUSE: Set DT_SONAME when building dylibs
Patch1: add-soname.patch
# PATCH-FIX-UPSTREAM build armv7 on armv7
Patch2: 0001-Fix-armv7-autodetection.patch
BuildRequires: cmake
BuildRequires: curl
BuildRequires: gcc-c++
@ -52,9 +50,15 @@ BuildRequires: fdupes
BuildRequires: rustc-bootstrap <= %{prev_version}
BuildRequires: rustc-bootstrap >= %{prev_version}
%else
%ifnarch armv7hl
BuildRequires: rust <= %{version}
BuildRequires: rust >= %{prev_version}
%endif
%ifarch armv7hl
BuildRequires: rustc-bootstrap <= %{prev_version}
BuildRequires: rustc-bootstrap >= %{prev_version}
%endif
%endif
%description
Rust is a systems programming language focused on three goals:
@ -97,20 +101,9 @@ Provides: rustc-1_10-gdb <= %{version}
This subpackage provides pretty printers and a wrapper script for
invoking gdb on rust binaries.
%if %{with bootstrap_tarball}
%package bootstrap-tarball
Summary: Bootstrap tarball with rust binaries
Group: Development/Languages/Other
%description bootstrap-tarball
This subpackage provides tarball with rust binaries used for rust-bootstrap
package.
%endif
%prep
%setup -q -n rustc-%{version}
%patch1 -p1
%patch2 -p1
%build
export CPPFLAGS="%{optflags}" # eliminate complain from RPMlint

View File

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

3
rustc-1.14.0-src.tar.gz Normal file
View File

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