From c71937dd0d77c23df6e796b45282c9a5e4d3af2a Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 7 Feb 2024 14:17:15 -0500 Subject: [PATCH] Reduce GCC 14 type safety on i686 Issue has been reported upstream, but no fix yet: https://gitlab.gnome.org/GNOME/gtk/-/issues/6033 --- gtk4.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gtk4.spec b/gtk4.spec index 8db0bde..3b63502 100644 --- a/gtk4.spec +++ b/gtk4.spec @@ -15,6 +15,14 @@ # Filter provides for private modules %global __provides_exclude_from ^%{_libdir}/gtk-4.0 +# FTBFS on i686 with GCC 14 -Werror=int-conversion +# https://gitlab.gnome.org/GNOME/gtk/-/issues/6033 +%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10 +%ifarch %{ix86} +%global build_type_safety_c 1 +%endif +%endif + Name: gtk4 Version: 4.13.6 Release: %autorelease