Drop the use of objcopy for resources

Resolves: RHEL-186555
This commit is contained in:
Matthias Clasen 2026-07-06 15:29:39 -04:00
parent fff119d5a3
commit 63f62d88c8
2 changed files with 17 additions and 0 deletions

16
drop-objcopy-use.patch Normal file
View File

@ -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()

View File

@ -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