[packages/rust/DEVEL] - disable full debuginfo on x86, causes SEGV due to OOM; release 1

qboosh qboosh at pld-linux.org
Fri Dec 22 23:24:30 CET 2017


commit 229550d4e5009f3444b54c6f1142f0ac437b8345
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Dec 22 23:25:53 2017 +0100

    - disable full debuginfo on x86, causes SEGV due to OOM; release 1

 rust.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/rust.spec b/rust.spec
index ed556c2..fa61b7a 100644
--- a/rust.spec
+++ b/rust.spec
@@ -27,7 +27,7 @@ Summary:	The Rust Programming Language
 Summary(pl.UTF-8):	Język programowania Rust
 Name:		rust
 Version:	1.22.1
-Release:	0.1
+Release:	1
 # Licenses: (rust itself) and (bundled libraries)
 License:	(Apache v2.0 or MIT) and (BSD and ISC and MIT)
 Group:		Development/Languages
@@ -198,6 +198,7 @@ find src/vendor -name .cargo-checksum.json \
 	-exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'
 
 %build
+# note: debuginfo needs >3GB memory, so rustc won't build on x86
 %configure \
 	--build=%{rust_triple} \
 	--host=%{rust_triple} \
@@ -208,8 +209,13 @@ find src/vendor -name .cargo-checksum.json \
 	--disable-option-checking \
 	--disable-rpath \
 	--disable-debuginfo-lines \
+%ifarch %{ix86}
+	--enable-debuginfo-only-std \
+	--disable-debuginfo \
+%else
 	--disable-debuginfo-only-std \
 	--enable-debuginfo \
+%endif
 	--enable-llvm-link-shared \
 	--enable-local-rust --local-rust-root=%{local_rust_root} \
 	--enable-vendor \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rust.git/commitdiff/229550d4e5009f3444b54c6f1142f0ac437b8345



More information about the pld-cvs-commit mailing list