Disable optimized GResource embedding
authorSimon McVittie <smcv@debian.org>
Sat, 8 Jan 2022 18:30:37 +0000 (18:30 +0000)
committerSimon McVittie <smcv@debian.org>
Sat, 8 Jan 2022 18:30:37 +0000 (18:30 +0000)
This seems to be triggering failures on armel and armhf. Second-guessing
GResource seems to be more trouble than it's worth.

debian/patches/debian/Disable-optimized-GResource-embedding.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/debian/Disable-optimized-GResource-embedding.patch b/debian/patches/debian/Disable-optimized-GResource-embedding.patch
new file mode 100644 (file)
index 0000000..240cfe4
--- /dev/null
@@ -0,0 +1,55 @@
+From: Simon McVittie <smcv@debian.org>
+Date: Sat, 8 Jan 2022 18:26:52 +0000
+Subject: Disable optimized GResource embedding
+
+This seems to be triggering failures on armel and armhf. Second-guessing
+GResource seems to be more trouble than it's worth.
+
+Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4617
+Signed-off-by: Simon McVittie <smcv@debian.org>
+Forwarded: no
+---
+ demos/gtk-demo/meson.build       | 2 +-
+ demos/widget-factory/meson.build | 2 +-
+ gtk/meson.build                  | 2 +-
+ 3 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/demos/gtk-demo/meson.build b/demos/gtk-demo/meson.build
+index 5b79dfa..294d66f 100644
+--- a/demos/gtk-demo/meson.build
++++ b/demos/gtk-demo/meson.build
+@@ -164,7 +164,7 @@ endif
+ ld = find_program('ld', required : false)
+-if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found()
++if false
+   glib_compile_resources = find_program('glib-compile-resources')
+   # Create the resource blob
+diff --git a/demos/widget-factory/meson.build b/demos/widget-factory/meson.build
+index 800230b..d78f9f6 100644
+--- a/demos/widget-factory/meson.build
++++ b/demos/widget-factory/meson.build
+@@ -8,7 +8,7 @@ endif
+ ld = find_program('ld', required : false)
+-if build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found()
++if false
+   glib_compile_resources = find_program('glib-compile-resources')
+   # Create the resource blob
+diff --git a/gtk/meson.build b/gtk/meson.build
+index 201af63..8c7c56e 100644
+--- a/gtk/meson.build
++++ b/gtk/meson.build
+@@ -872,7 +872,7 @@ endif
+ ld = find_program('ld', required : false)
+-if not meson.is_cross_build() and build_machine.system() == 'linux' and objcopy.found() and objcopy_supports_add_symbol and ld.found()
++if false
+   glib_compile_resources = find_program('glib-compile-resources')
+   # Create the resource blob
index ab7f10027c002afa9be92d1b88186bcdb74c0cdf..203f46fa89fe18ef62eac6189cb16e2d73f2a2ed 100644 (file)
@@ -7,3 +7,4 @@ debian/Disable-web-fonts-for-now.patch
 debian/templates-Remove-html5shiv.patch
 debian/Skip-some-known-failing-tests-on-mips-family-architecture.patch
 debian/Disable-clipboard-test.patch
+debian/Disable-optimized-GResource-embedding.patch