]> git.pld-linux.org Git - packages/rust.git/commitdiff
- cleanup and debuginfo fix from fedora
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 27 Jun 2017 21:56:01 +0000 (23:56 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 27 Jun 2017 21:56:01 +0000 (23:56 +0200)
rust-1.16.0-configure-no-override.patch [new file with mode: 0644]
rust.spec

diff --git a/rust-1.16.0-configure-no-override.patch b/rust-1.16.0-configure-no-override.patch
new file mode 100644 (file)
index 0000000..e13dfe9
--- /dev/null
@@ -0,0 +1,28 @@
+# Don't let configure clobber our debuginfo choice for stable releases.
+
+diff --git a/configure b/configure
+index 505767cede55..4074a1e2f765 100755
+--- a/configure
++++ b/configure
+@@ -753,8 +753,8 @@ case "$CFG_RELEASE_CHANNEL" in
+           *-pc-windows-gnu)
+             ;;
+           *)
+-            CFG_ENABLE_DEBUGINFO_LINES=1
+-            CFG_ENABLE_DEBUGINFO_ONLY_STD=1
++            # CFG_ENABLE_DEBUGINFO_LINES=1
++            # CFG_ENABLE_DEBUGINFO_ONLY_STD=1
+             ;;
+         esac
+@@ -765,8 +765,8 @@ case "$CFG_RELEASE_CHANNEL" in
+           *-pc-windows-gnu)
+             ;;
+           *)
+-            CFG_ENABLE_DEBUGINFO_LINES=1
+-            CFG_ENABLE_DEBUGINFO_ONLY_STD=1
++            # CFG_ENABLE_DEBUGINFO_LINES=1
++            # CFG_ENABLE_DEBUGINFO_ONLY_STD=1
+             ;;
+         esac
+       ;;
index fb55de2b3dbbfce63ccd1cc10ea5780c2bafa636..3cf025b3a35106bcc3caca3aa50af15c4624597c 100644 (file)
--- a/rust.spec
+++ b/rust.spec
@@ -35,6 +35,7 @@ Source1:      https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_ru
 # Source1-md5: 98e8f479515969123b4c203191104a54
 Source2:       https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-i686-unknown-linux-gnu.tar.gz
 # Source2-md5: 2d5de850c32aa8d40c8c21abacf749f8
+Patch0:                rust-1.16.0-configure-no-override.patch
 URL:           https://www.rust-lang.org/
 BuildRequires: cmake
 BuildRequires: curl
@@ -127,6 +128,8 @@ language and its standard library.
 
 %prep
 %setup -q -n %{rustc_package}
+%patch0 -p1
+
 %if %{with bootstrap}
 %ifarch %{x8664}
 tar xf %{SOURCE1}
@@ -162,17 +165,13 @@ sed -i -e '1i // ignore-test jemalloc is disabled' \
        src/test/compile-fail/allocator-rust-dylib-is-jemalloc.rs \
        src/test/run-pass/allocator-default.rs
 
-# Fedora's LLVM doesn't support any mips targets -- see "llc -version".
-# Fixed properly by Rust PR36344, which should be released in 1.13.
-sed -i -e '/target=mips/,+1s/^/# unsupported /' \
-       src/test/run-make/atomic-lock-free/Makefile
-
 %build
 %configure \
        --disable-option-checking \
        --build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple} \
        --enable-local-rust --local-rust-root=%{local_rust_root} \
        --llvm-root=%{_prefix} --disable-codegen-tests \
+       --enable-llvm-link-shared \
        --disable-jemalloc \
        --disable-rpath \
        --enable-debuginfo \
This page took 0.351088 seconds and 4 git commands to generate.