Use the new way to set debuginfo level during build

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-02-22 11:47:30 +01:00
parent aa69e4762d
commit 66dcca9b77

View File

@ -22,6 +22,11 @@
%global bundled_rust_deps 0
%endif
%ifarch armv7hl
# drop debuginfo generation for armv7hl OOM problems
%global rustflags_debuginfo 0
%endif
Name: keylime-agent-rust
Version: %{crate_version}~%{commitdate}git%{shortcommit}
Release: 1%{?dist}
@ -65,7 +70,7 @@ BuildRequires: openssl-devel
BuildRequires: libarchive-devel
BuildRequires: tpm2-tss-devel
%else
BuildRequires: rust-packaging
BuildRequires: rust-packaging >= 21-2
%endif
# Virtual Provides to support swapping between Python and Rust implementation
@ -89,10 +94,6 @@ Rust agent for Keylime
%else
%cargo_prep
%endif
%ifarch armv7hl
# drop debuginfo generation for armv7hl OOM problems
sed -i "s/debuginfo=2/debuginfo=0/" .cargo/config
%endif
%if !0%{?bundled_rust_deps}
%generate_buildrequires