From 9c8207141ebb0254c9f889defc1490d8e7e6b008 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 6 Jun 2024 10:22:56 -0400 Subject: [PATCH] Stop using objcopy for resources It interferes with hardening. --- gtk4-no-objcopy.patch | 11 +++++++++++ gtk4.spec | 3 +++ 2 files changed, 14 insertions(+) create mode 100644 gtk4-no-objcopy.patch 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