From 63f62d88c81d969fa5f4a3598ec0f5afeb2061cb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 6 Jul 2026 15:29:39 -0400 Subject: [PATCH] Drop the use of objcopy for resources Resolves: RHEL-186555 --- drop-objcopy-use.patch | 16 ++++++++++++++++ gtk4.spec | 1 + 2 files changed, 17 insertions(+) create mode 100644 drop-objcopy-use.patch diff --git a/drop-objcopy-use.patch b/drop-objcopy-use.patch new file mode 100644 index 0000000..62ab05c --- /dev/null +++ b/drop-objcopy-use.patch @@ -0,0 +1,16 @@ +diff -up gtk-4.12.3/meson.build.no-objcopy gtk-4.12.3/meson.build +--- gtk-4.12.3/meson.build.no-objcopy 2026-07-06 15:25:56.910656318 -0400 ++++ gtk-4.12.3/meson.build 2026-07-06 15:26:06.371549860 -0400 +@@ -762,11 +762,7 @@ if ld.found() + ld_is_bfd = run_command(ld, '--version', check: false).stdout().contains('GNU ld') + endif + +-if not meson.is_cross_build() and build_machine.cpu_family() == 'x86_64' and build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and objcopy_supports_section_alignment and ld.found() and ld_is_bfd +- can_use_objcopy_for_resources = true +-else +- can_use_objcopy_for_resources = false +-endif ++can_use_objcopy_for_resources = false + + project_build_root = meson.current_build_dir() + diff --git a/gtk4.spec b/gtk4.spec index fb73909..aa547c9 100644 --- a/gtk4.spec +++ b/gtk4.spec @@ -91,6 +91,7 @@ Recommends: dconf%{?_isa} Obsoletes: gtk4-devel-docs < 4.1.2 Patch00001: preserve-old-glib-pango.diff +Patch00002: drop-objcopy-use.patch %description GTK is a multi-platform toolkit for creating graphical user