mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-28 07:12:30 -05:00
gnu: gtk+: Fix testsuite failure on non-x86_64 platforms.
On non-x86_64 platforms, gtk+ is linked with a gdk-pixbuf version that doesn’t support SVG. This causes the ‘icontheme’ test to fail because it tries to fetch SVG icons in some of the tests. Therefore, we need to disable the test when SVG support isn’t available. * gnu/packages/gtk.scm (gtk+)[propagated-inputs]: Use the ‘target-x86-64?’ convenience function. [arguments]<#:phases>{disable-failing-tests}: Disable ‘icontheme’ test on non-x86_64 platforms. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org>
This commit is contained in:
parent
57c57f8541
commit
b452fe87e0
1 changed files with 7 additions and 3 deletions
|
@ -958,8 +958,7 @@ (define-public gtk+
|
|||
("freetype" ,freetype)
|
||||
;; SVG support is optional and requires librsvg, which pulls in rust.
|
||||
;; Rust is not supported well on every architecture yet.
|
||||
("gdk-pixbuf" ,(if (string-prefix? "x86_64" (or (%current-target-system)
|
||||
(%current-system)))
|
||||
("gdk-pixbuf" ,(if (target-x86-64?)
|
||||
gdk-pixbuf+svg
|
||||
gdk-pixbuf))
|
||||
("glib" ,glib)
|
||||
|
@ -1028,7 +1027,12 @@ (define-public gtk+
|
|||
(("notify no-gtk-init object objects-finalize papersize rbtree")
|
||||
"no-gtk-init papersize rbtree")
|
||||
(("stylecontext templates textbuffer textiter treemodel treepath")
|
||||
"stylecontext textbuffer textiter treemodel treepath"))
|
||||
"stylecontext textbuffer textiter treemodel treepath")
|
||||
;; The ‘icontheme’ test needs SVG support.
|
||||
,@(if (not (target-x86-64?))
|
||||
'((("floating focus gestures grid gtkmenu icontheme keyhash listbox")
|
||||
"floating focus gestures grid gtkmenu keyhash listbox"))
|
||||
'()))
|
||||
(substitute* "testsuite/a11y/Makefile.in"
|
||||
(("accessibility-dump tree-performance text children derive")
|
||||
"tree-performance text children derive"))
|
||||
|
|
Loading…
Reference in a new issue