From 9e518e01bfc153c84e4bb86e573c1367d5fe3937 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Sebasti=C3=A1n=20Greco?= Date: Thu, 18 Oct 2018 07:40:10 -0300 Subject: [PATCH] Disable all 32-bit debuginfo on fedora < 27 and rhel <= 7 --- rust.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/rust.spec b/rust.spec index abdcb7c..55dc640 100644 --- a/rust.spec +++ b/rust.spec @@ -480,7 +480,12 @@ export LIBSSH2_SYS_USE_PKG_CONFIG=1 %ifarch %{arm} %{ix86} # full debuginfo is exhausting memory; just do libstd for now # https://github.com/rust-lang/rust/issues/45854 +%if (0%{?fedora} && 0%{?fedora} < 27) || (0%{?rhel} && 0%{?rhel} <= 7) +%global debug_package %{nil} +%define enable_debuginfo --disable-debuginfo --disable-debuginfo-only-std --disable-debuginfo-tools --disable-debuginfo-lines +%else %define enable_debuginfo --enable-debuginfo --enable-debuginfo-only-std --disable-debuginfo-tools --disable-debuginfo-lines +%endif %else %define enable_debuginfo --enable-debuginfo --disable-debuginfo-only-std --enable-debuginfo-tools --disable-debuginfo-lines %endif