public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/gimp] rawhide: Build without libunwind by default
@ 2026-11-08 14:12 Arjun Shankar
  0 siblings, 0 replies; only message in thread
From: Arjun Shankar @ 2026-11-08 14:12 UTC (permalink / raw)
  To: git-commits

            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

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

only message in thread, other threads:[~2026-11-08 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-08 14:12 [rpms/gimp] rawhide: Build without libunwind by default Arjun Shankar

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