[Users] Clawsker doesn't start (Can't locate Gtk3.pm in @INC...)

H.Merijn Brand h.m.brand at xs4all.nl
Tue Nov 13 09:12:02 CET 2018


On Mon, 12 Nov 2018 20:12:15 +0200, Removed GDPR <removed-gdpr at example.com>
wrote:

> On Mon, 12 Nov 2018 18:57:35 +0100 H.Merijn Brand
> wrote:
> 
> > > https://files.invalid.tld/2018-11-12-cpanm-4.txt    
> > 
> > File not found  
> 
> Sorry, there was a typo. Try again please.
> 
> > Stick to the 1.2.0 version: [...]  
> 
> I can do that. But in the past it happened so that if
> I find and report some issue it turns out the devs and
> I are looking at different versions which was one of
> the reasons for which I switched to building CM and
> Clawsker myself (rather than using those provided by
> openSUSE). The other one was: Git versions work better.

Ok, let's rewind ...

https://www.claws-mail.org/clawsker.php ships 1.2.0 as latest version:
https://www.claws-mail.org/tools/clawsker-1.2.0.tar.xz which still uses
Gtk2, which should work on your system

The repo https://git.claws-mail.org/?p=clawsker.git has 1.2.0 as latest
tag (2 month ago) and there is no other current branch than master

The switch to Gtk3 was made on 10-11-2018 (two days ago) in commit 81c8d:
https://git.claws-mail.org/?p=clawsker.git;a=commit;h=81c8d99f9f131e00475f9b1d9e069288aac8be31
and that has not yet been released. The commits immediately after that
one fix all of the issues I encountered in previous posts.

I understand that you want to help the devs in staying as close as
possible, but in this case, the git repo is obviously work-in-progress

On the other side, I just typed

$ cpan Gtk3

which worked fine on my openSUSE 15.0 and with my own perl
(/pro/bin/perl instead of /usr/bin/perl) and then clawsker from git
started as intended, but way more noisier than the Gtk2 version

On *your* system, it doesn't work, because prerequisites cannot be met:

> Then you said that gobject-introspection was needed
> and the other package was not. So I followed that and
> the result is in:
> 
> https://files.invalid.tld/2018-11-12-cpanm-3.txt

[/tmp/download]: cpanm Gtk3
--> Working on Gtk3
Fetching http://www.cpan.org/authors/id/X/XA/XAOC/Gtk3-0.034.tar.gz ... OK
Configuring Gtk3-0.034 ... OK
==> Found dependencies: Glib::Object::Introspection, Cairo::GObject
--> Working on Glib::Object::Introspection
Fetching http://www.cpan.org/authors/id/X/XA/XAOC/Glib-Object-Introspection-0.046.tar.gz ... OK
Configuring Glib-Object-Introspection-0.046 ... N/A
! Configure failed for Glib-Object-Introspection-0.046. See /home/████/.cpanm/work/1542036596.13751/build.log for details.

which prevents the rest of the installation. I suggest you red the
messages in .cpanm/work/1542036596.13751/build.log for more details,
as cpanm kindly tells you to do

continuing with the alternative approach won't get you much further

With Gtk3 installed, I get

$ perl clawsker

(clawsker:18199): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
(clawsker:18199): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
(clawsker:18199): Gtk-WARNING **: Theme parsing error: gtk.css:70:34: The style property GtkCheckButton:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version
(clawsker:18199): Gtk-WARNING **: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version
(clawsker:18199): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
(clawsker:18199): Gtk-WARNING **: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version
(clawsker:18199): Gtk-WARNING **: Theme parsing error: gtk.css:83:29: The style property GtkStatusbar:shadow-type is deprecated and shouldn't be used anymore. It will be removed in a future version

Argument "3.15.0.28" isn't numeric in subroutine entry at /pro/lib/perl5/site_perl/5.28.0/x86_64-linux-thread-multi-ld/Glib/Object/Introspection.pm line 67.


Note: these Gtk-messaged are caused by the settings in
/usr/share/themes/Breeze/gtk-3.20/gtk.css which is installed from
gtk3-metatheme-breeze-5.12.6-lp150.2.3.1.noarch - nothing to do with
clawsker and that should be fixed in a next release of Breeze. I
commented out the deprecated lines in that file and I now just have
that last warning.

The code where the warning is generated in Glib::Object::Introspection
is horrible: the use else after return, which IMHO shows a lack of
programming capabilities. There should never be an else after an
if-block that ends the scope: return/exit/die/croak/throw

http://tux.nl/Files/20181113085508.png

Meanwhile, I suggest you either stick to the Gtk2 version, as that is
supported by your system's installed packages or read the feedback of
cpanm and fix the prerequisites. This process will show you exactly
where things turn nasty and what packages you might be missing in order
to get stuff running. I *think* you need to install one more system package

$ y2 se -i introspect
Loading repository data...
Reading installed packages...

S | Name                        | Summary                                 | Type
--+-----------------------------+-----------------------------------------+--------
i | gobject-introspection       | GObject Introspection Tools             | package
i | gobject-introspection-devel | GObject Introspection Development Files | package

do you have installed gobject-introspection-devel ? I bet not.

$ rpm -q gobject-introspection gobject-introspection-devel
gobject-introspection-1.54.1-lp150.2.10.x86_64
gobject-introspection-devel-1.54.1-lp150.2.10.x86_64

-- 
H.Merijn Brand  http://tux.nl   Perl Monger  http://amsterdam.pm.org/
using perl5.00307 .. 5.29   porting perl5 on HP-UX, AIX, and openSUSE
http://mirrors.develooper.com/hpux/        http://www.test-smoke.org/
http://qa.perl.org   http://www.goldmark.org/jeff/stupid-disclaimers/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.claws-mail.org/pipermail/users/attachments/20181113/0eeb7130/attachment.sig>


More information about the Users mailing list