diff --git a/gtk4-no-objcopy.patch b/gtk4-no-objcopy.patch new file mode 100644 index 0000000..569d578 --- /dev/null +++ b/gtk4-no-objcopy.patch @@ -0,0 +1,11 @@ +--- gtk-4.14.4/meson.build.no-objcopy 2024-06-06 10:17:08.764814627 -0400 ++++ gtk-4.14.4/meson.build 2024-06-06 10:17:31.276931886 -0400 +@@ -777,6 +777,8 @@ + can_use_objcopy_for_resources = false + endif + ++can_use_objcopy_for_resources = false ++ + project_build_root = meson.current_build_dir() + + gen_visibility_macros = find_program('build-aux/meson/gen-visibility-macros.py') diff --git a/gtk4.spec b/gtk4.spec index 03acd54..9437869 100644 --- a/gtk4.spec +++ b/gtk4.spec @@ -32,6 +32,9 @@ License: LGPL-2.0-or-later URL: https://www.gtk.org Source0: https://download.gnome.org/sources/gtk/4.14/gtk-%{version}.tar.xz +# Using objcopy for resources interferes with hardening +Patch0: gtk4-no-objcopy.patch + BuildRequires: cups-devel BuildRequires: desktop-file-utils BuildRequires: docbook-style-xsl