unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#51467] [PATCH core-updates-frozen] gnu: gtk+: Fix testsuite failure on non-x86_64 platforms.
@ 2021-10-28 19:43 Thiago Jung Bauermann via Guix-patches via
  2021-11-12  6:05 ` bug#51467: " Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Thiago Jung Bauermann via Guix-patches via @ 2021-10-28 19:43 UTC (permalink / raw)
  To: 51467; +Cc: Thiago Jung Bauermann

On non-x86_64 platforms, gtk+ is linked with a gdk-pixbuf version that
doesn’t support SVG.  This causes the ‘tree-relationships’ 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+)[arguments]<#:phases>{disable-failing-tests}:
Disable ‘tree-relationships’ test on non-x86_64 platforms.
---

Hello,

Considering that the core-updates-frozen-batched-changes branch will
soon make GTK+ depend on Rust (via an updated mozjs package), perhaps
this patch is somewhat pointless. But I thought it would be at least a
bit useful to have this information recorded.

Also, there's a good change that polkit will switch from mozjs to duktape
as its Javascript engine. In that case it will be useful again to have
this patch in.

With this patch, GTK+ builds again on core-updates-frozen on
powerpc64le-linux. This patch doesn't change the package derivation
on x86_64-linux

Thanks,
Thiago.

 gnu/packages/gtk.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gtk.scm b/gnu/packages/gtk.scm
index fadd0794c5dd..40fc2c93d681 100644
--- a/gnu/packages/gtk.scm
+++ b/gnu/packages/gtk.scm
@@ -1106,7 +1106,12 @@ (define-public gtk+
                      '()))
              (substitute* "testsuite/a11y/Makefile.in"
                (("accessibility-dump tree-performance text children derive")
-                "tree-performance text children derive"))
+                "tree-performance text children derive")
+               ;; The ‘tree-relationships’ test needs SVG support.
+               ,@(if (not (target-x86-64?))
+                     '((("value misc tree-relationships util")
+                        "value misc util"))
+                     '()))
              (substitute* "testsuite/reftests/Makefile.in"
                (("TEST_PROGS = gtk-reftest")
                 "TEST_PROGS = "))




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#51467: [PATCH core-updates-frozen] gnu: gtk+: Fix testsuite failure on non-x86_64 platforms.
  2021-10-28 19:43 [bug#51467] [PATCH core-updates-frozen] gnu: gtk+: Fix testsuite failure on non-x86_64 platforms Thiago Jung Bauermann via Guix-patches via
@ 2021-11-12  6:05 ` Maxim Cournoyer
       [not found]   ` <2566471.izIe66Ckzq@popigai>
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2021-11-12  6:05 UTC (permalink / raw)
  To: Thiago Jung Bauermann; +Cc: 51467-done

Thiago Jung Bauermann <bauermann@kolabnow.com> writes:

> On non-x86_64 platforms, gtk+ is linked with a gdk-pixbuf version that
> doesn’t support SVG.  This causes the ‘tree-relationships’ 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+)[arguments]<#:phases>{disable-failing-tests}:
> Disable ‘tree-relationships’ test on non-x86_64 platforms.

Mathieu applied it on core-updates(-frozen) with commit
b452fe87e0c6e7634a2cb44274fa46832c763b40.

Closing.

Thank you!

Maxim




^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#51467: [PATCH core-updates-frozen] gnu: gtk+: Fix testsuite failure on non-x86_64 platforms.
       [not found]   ` <2566471.izIe66Ckzq@popigai>
@ 2021-11-17  0:56     ` Thiago Jung Bauermann via Guix-patches via
  0 siblings, 0 replies; 3+ messages in thread
From: Thiago Jung Bauermann via Guix-patches via @ 2021-11-17  0:56 UTC (permalink / raw)
  To: 51467-done; +Cc: Maxim Cournoyer

Hello again,

Em sexta-feira, 12 de novembro de 2021, às 11:45:43 -03, Thiago Jung 
Bauermann escreveu:
> This patch disables the ‘tree-relationships’ test, and it’s not yet
> applied on core-updates-frozen so I’m reopening the bug report.

Strange, I recently built gtk+ on core-updates-frozen (commit ef77c3b3f120) 
on powerpc64le-linux and  the ‘tree-relationships’ test passed!

I don’t understand what is different this time, but it looks like this patch 
isn’t necessary anymore.

Closing again.

-- 
Thanks,
Thiago






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-11-17  0:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-28 19:43 [bug#51467] [PATCH core-updates-frozen] gnu: gtk+: Fix testsuite failure on non-x86_64 platforms Thiago Jung Bauermann via Guix-patches via
2021-11-12  6:05 ` bug#51467: " Maxim Cournoyer
     [not found]   ` <2566471.izIe66Ckzq@popigai>
2021-11-17  0:56     ` Thiago Jung Bauermann via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).