public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Arjun Shankar <arjun@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gimp] rawhide: Build without libunwind by default
Date: Sun, 08 Nov 2026 14:12:33 GMT	[thread overview]
Message-ID: <179414715351.1.17977025532950472414.rpms-gimp-fa78b305f36c@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/gimp
            Branch : rawhide
            Commit : fa78b305f36c3042ac474d97fc35d2d4c8129c2a
            Author : Arjun Shankar <arjun@redhat.com>
            Date   : 2026-11-05T20:58:45+01:00
            Stats  : +13/-7 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/gimp/c/fa78b305f36c3042ac474d97fc35d2d4c8129c2a?branch=rawhide

            Log:
            Build without libunwind by default

libunwind is not compatible with Shadow Stack support [1], and building
without it only drops additional lookups for descriptive symbol names
when recording performance logs using the Dashboard.

On x86_64, disable building with libunwind by default from Fedora 46 on.
Building with libunwind is still possible via '--with libunwind'.

Also drop the libunwind architecture support conditional.  All
architectures supported by Fedora have libunwind.

[1] https://fedoraproject.org/wiki/Changes/ShadowStack

Co-authored-by: Nils Philippsen <nils@tiptoe.de>
Signed-off-by: Nils Philippsen <nils@tiptoe.de>

---
diff --git a/gimp.spec b/gimp.spec
index 58c33eb..f6350a8 100644
--- a/gimp.spec
+++ b/gimp.spec
@@ -12,17 +12,18 @@
 %bcond label_overlay 1
 %endif
 
-# libunwind support (only available on some architectures)
-%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} >= 40 || 0%{?rhel} >= 11
-%global unwind_arches %{arm} aarch64 hppa ia64 mips ppc %{power64} %{ix86} x86_64 riscv64
+# Shadow Stack is available on x86_64 and enabled by default from F46 on
+%if ! 0%{?fedora}%{?rhel} || 0%{?fedora} >= 46 || 0%{?rhel} >= 11
+%global shadow_stack_arches x86_64
 %else
-%global unwind_arches %{arm} aarch64 hppa ia64 mips ppc %{power64} %{ix86} x86_64
+%global shadow_stack_arches %{nil}
 %endif
 
-%ifarch %unwind_arches
-%bcond libunwind 1
-%else
+# Libunwind is incompatible with the Shadow Stack feature
+%ifarch %shadow_stack_arches __this_is_not_an_arch__
 %bcond libunwind 0
+%else
+%bcond libunwind 1
 %endif
 
 %if ! 0%{?rhel} || 0%{?epel}
@@ -409,6 +410,11 @@ EOF
 %if %{with skip_headless_tests}
     -Dheadless-tests=disabled \
 %endif
+%if %{with libunwind}
+    -Dlibunwind=true \
+%else
+    -Dlibunwind=false \
+%endif
     -Dbug-report-url="https://bugzilla.redhat.com/"
 
 %meson_build

                 reply	other threads:[~2026-11-08 14:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179414715351.1.17977025532950472414.rpms-gimp-fa78b305f36c@fedoraproject.org \
    --to=arjun@redhat.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox