public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ima-evm-utils] f44: spec: Disable debug mode to not use level 1 optimization
@ 2026-11-30  6:15 Coiby Xu
  0 siblings, 0 replies; only message in thread
From: Coiby Xu @ 2026-11-30  6:15 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/ima-evm-utils
            Branch : f44
            Commit : 08ae1411ab901045899f5be691e615b53f32754c
            Author : Coiby Xu <coxu@redhat.com>
            Date   : 2026-11-30T10:51:07+08:00
            Stats  : +2/-2 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/ima-evm-utils/c/08ae1411ab901045899f5be691e615b53f32754c?branch=f44

            Log:
            spec: Disable debug mode to not use level 1 optimization

Currently annocheck fails with the following message,
    # annocheck --no-use-debuginfod --ignore-unknown --debug-dir=./usr/lib/debug/ --verbose --profile=fedora ./usr/bin/evmctl
    ...
    FAIL: optimization test because level too low (based upon annobin data) (lto)

This is because ima-evm-utils enable debugging mode by default which in
turns enable -O1. Fedora's _d_optflags uses -O2. So disable debug mode
to honor this option.

Signed-off-by: Coiby Xu <coxu@redhat.com>

---
diff --git a/ima-evm-utils.spec b/ima-evm-utils.spec
index 0d862a7..5acbbb2 100644
--- a/ima-evm-utils.spec
+++ b/ima-evm-utils.spec
@@ -83,13 +83,13 @@ popd
 
 %build
 autoreconf -vif
-%configure --disable-static --disable-engine
+%configure --disable-static --disable-engine --disable-debug
 %make_build
 
 %if 0%{bootstrap}
 pushd compat/
 autoreconf -vif
-%configure --disable-static --disable-engine
+%configure --disable-static --disable-engine --disable-debug
 %make_build
 popd
 %endif

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-30  6:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-30  6:15 [rpms/ima-evm-utils] f44: spec: Disable debug mode to not use level 1 optimization Coiby Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox