Subject: [PATCH] gnu: gtk: Disable failing tests on aarch64.

From: Roman Scherer <[email-masked]>
Date: Thu, 5 Sep 2024 19:01:46 +0200

* gnu/packages/gtk.scm (gtk): Disable failing tests on aarch64.

Change-Id: Ia950b25fa2141daff0a01a69d9dfb551e26116ea
---
 gnu/packages/gtk.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index b7650748af..3d4766713d 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -1242,6 +1242,34 @@ (define-public gtk
                 ;; related warnings (see:
                 ;; https://gitlab.gnome.org/GNOME/gtk/-/issues/5169).
                 (("[ \t]*'inscription-markup.ui',") ""))
+              ;; These tests fail on an Apple M1 (aarch64) with the following errors:
+              ;; - MESA: error: ZINK: failed to choose pdev
+              ;; - libEGL warning: egl: failed to create dri2 screen
+              ;; - MESA: error: ZINK: failed to choose pdev
+              ;; - glx: failed to create drisw screen
+              #$@(if (target-aarch64?)
+                     #~((substitute* "testsuite/gsk/meson.build"
+                          (("'border-bottom-right',") "")
+                          (("'border-one-rounded',") "")
+                          (("'border-opacity',") "")
+                          (("'border-zero-width-color',") "")
+                          (("'borders-rotated',") "")
+                          (("'borders-scaled',") "")
+                          (("'clip-in-smaller-rounded-clip',") "")
+                          (("'css-background',") "")
+                          (("'empty-border',") "")
+                          (("'empty-inset-shadow',") "")
+                          (("'empty-outset-shadow',") "")
+                          (("'inset-shadow-multiple',") "")
+                          (("'outset-shadow-scale-offset',") "")
+                          (("'outset_shadow_offset_both',") "")
+                          (("'outset_shadow_offset_x',") "")
+                          (("'outset_shadow_offset_y',") "")
+                          (("'outset_shadow_rounded_top',") "")
+                          (("'outset_shadow_simple',") "")
+                          (("'shadow-offset-clip',") "")
+                          (("'shrink-rounded-border',") "")))
+                     #~())
               ;; XXX: These failures appear specific to i686 – investigate them.
               #$@(if (target-x86-32?)
                      #~((substitute* "testsuite/gsk/meson.build"

base-commit: 7d2ced8d6d9c38327592d312376d59a8c37fc160
-- 
2.45.2