gnome-gtk3 icon indicating copy to clipboard operation
gnome-gtk3 copied to clipboard

Test case failures on debian 11 (bullseye)

Open chromis opened this issue 2 years ago • 1 comments

Hello,

I managed to install Gnome::Gtk3 on my system, albeit with the --force-test option.

I got the following two errors:

===> Testing: Gnome::Glib:ver<0.20.6>
[Gnome::Glib] Cannot locate symbol 'g_prefix_error_literal' in native library 'libglib-2.0.so.0'
[Gnome::Glib]   in method setup at /home/chromisx/.rakubrew/versions/moar-2022.07/install/share/perl6/core/sources/A37F26876B58371B70EDD889AD69F064C90AC2C6 (NativeCall) line 319
[Gnome::Glib]   in method setup at /home/chromisx/.rakubrew/versions/moar-2022.07/install/share/perl6/core/sources/A37F26876B58371B70EDD889AD69F064C90AC2C6 (NativeCall) line 366
[Gnome::Glib]   in sub raku-nativecall at /home/chromisx/.rakubrew/versions/moar-2022.07/install/share/perl6/core/sources/A153F63283BF744FD66BF7212910E5F389384F6E (NativeCall::Dispatcher) line 46
[Gnome::Glib]   in method prefix-error-literal at /home/chromisx/.zef/tmp/Gnome%3A%3AGlib%3Aver%3C0.20.6%3E%3Aauth%3Ccpan%3AMARTIMM%3E.tar.gz/gnome-glib-0.20.6/lib/Gnome/Glib/Error.pm6 (Gnome::Glib::Error) line 482
[Gnome::Glib]   in block <unit> at t/Error.t line 71
[Gnome::Glib]     # dict entries: {'height': <200>, 'vd01': <-40>}
===> Testing [FAIL]: Gnome::Glib:ver<0.20.6>
[Gnome::Glib] Failed to get passing tests, but continuing with --force-test

Command pkg-config --modversion glib-2.0 emits 2.66.8 on my system.

The second error:

===> Testing: Gnome::Gtk3:ver<0.48.8>:auth<github:MARTIMM>
[Gnome::Gtk3] (AppChooser.t:601293): GLib-GIO-CRITICAL **: 07:17:17.274: g_app_info_get_commandline: assertion 'G_IS_APP_INFO (appinfo)' failed
[Gnome::Gtk3] Use of uninitialized value of type Str in string context.
[Gnome::Gtk3] Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
[Gnome::Gtk3]   in block  at t/AppChooser.t line 24
[Gnome::Gtk3] Use of uninitialized value element of type Str in string context.
[Gnome::Gtk3] Methods .^name, .raku, .gist, or .say can be used to stringify it to something meaningful.
[Gnome::Gtk3]   in block  at t/AppChooser.t line 24
[Gnome::Gtk3]     # Failed test 'commandline for type 'text/plain' = '
[Gnome::Gtk3]     # at t/AppChooser.t line 24
[Gnome::Gtk3]     # You failed 1 test of 3
[Gnome::Gtk3] # Failed test 'Interface ...'
[Gnome::Gtk3] # at t/AppChooser.t line 21
[Gnome::Gtk3] # You failed 1 test of 2
===> Testing [FAIL]: Gnome::Gtk3:ver<0.48.8>:auth<github:MARTIMM>
[Gnome::Gtk3] Failed to get passing tests, but continuing with --force-test

Command pkg-config --modversion gtk+-3.0 emits 3.24.24 on my system.

This is on Rakudo v2022.07, running on debian 11.

Thanks for your time and effort that makes this module possible!

Regards,

Raymond.

chromis avatar Aug 23 '22 07:08 chromis

Thank you for mentioning the errors.

The version I have now for glib is 2.70.5 and for gtk3 is 3.24.34. The glib docs say for this subroutine that it is available since: 2.70, so check this and upgrade the lib.

The second error is probably caused by not having a mapping of the text/plain mime-type to some application such as an editor of some sort. This is tested here in that part of the program. Try to create a mapping to an application and run this particular test again. In the next version, I will test for undefined strings returning from the call.

MARTIMM avatar Aug 29 '22 18:08 MARTIMM