tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: p5-gtk3 does not work



On Sat, 14 Aug 2021 at 15:24:08 +0000 (UTC), Benny Siegert wrote:

> Hi!
> 
> a few weeks ago, I added an x11/p5-gtk3 package. It built fine, whatever
> that means, but now I realize it does not actually work. Here is the
> output of "make test" (on NetBSD/aarch64):
> 
> 
> ===> Testing for p5-gtk3-0.038
> 
> PERL_DL_NONLAZY=1 "/usr/pkg/bin/perl" "-MExtUtils::Command::MM" "-
> MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0,
> 'blib/lib', 'blib/arch')" t/*.t t/00-init.t .................... Bailout
> called. Further testing stopped: Cannot load Gtk3: Could not lookup
> GType from function gdk_rectangle_get_type at t/00-init.t line 9.
> FAILED--Further testing stopped: Cannot load Gtk3: Could not lookup
> GType from function gdk_rectangle_get_type at t/00-init.t line 9.
> 
> 
> The same error message appears when you simply execute "perl -MGtk3 -e
> 1".

Hi Benny,

This isn't exactly the answer you're looking for, but this same test
works fine for me on NetBSD/amd64 9.99.88.

===> Testing for p5-gtk3-0.038
PERL_DL_NONLAZY=1 "/usr/pkg/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-init.t .................... 1/16 # Testing Gtk3 0.038
#    Running against gtk+ 3.24.30
#   Compiled against gtk+ 3.24.30
t/00-init.t .................... ok     
t/floating-refs.t .............. ok   
t/overrides.t .................. ok       
t/signals.t .................... ok   
t/vfuncs-destroy.t ............. ok   
t/vfuncs-double-setup.t ........ ok   
t/zz-GdkEvent.t ................ ok       
t/zz-GtkActionGroup.t .......... ok     
t/zz-GtkBuilder.t .............. ok     
t/zz-GtkCellLayoutIface.t ...... ok     
t/zz-GtkCellRendererIface.t .... ok     
t/zz-GtkContainer.t ............ ok     
t/zz-GtkDialog.t ............... ok     
t/zz-GtkImage.t ................ ok     
t/zz-GtkInfoBar.t .............. ok     
t/zz-GtkRadioAction.t .......... ok     
t/zz-GtkRadioButton.t .......... ok     
t/zz-GtkRadioMenuItem.t ........ ok     
t/zz-GtkRadioToolButton.t ...... ok     
t/zz-GtkRecentChooserDialog.t .. ok     
t/zz-GtkTextBuffer.t ........... ok     
t/zz-GtkTreeModelIface.t ....... ok       
All tests successful.
Files=22, Tests=946, 19 wallclock secs ( 0.26 usr  0.04 sys + 15.34 cusr  1.81 csys = 17.45 CPU)
Result: PASS

I took a look at the initial test, but didn't get much from it. It seems
it isn't finding GTK3 itself, for some reason. Not sure why there would
be an architecture-specific difference (if that's what it is), could it
be something in your environment?

Regards,

Dave




Home | Main Index | Thread Index | Old Index