FS#61150 - [clawsker] Incorrect dependencies in 1.3.0-1

Attached to Project: Arch Linux
Opened by helle vaanzinn (glitsj16) - Friday, 21 December 2018, 17:38 GMT
Last edited by Tobias Powalowski (tpowa) - Tuesday, 12 March 2019, 13:52 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Clawsker refuses to start and throws messages from which I conclude the dependencies in the latest version are incorrect.

Additional info:
* package version(s)
$ pacman -Qi clawsker
Name : clawsker
Version : 1.3.0-1
...
Depends On : gtk2-perl perl-locale-gettext claws-mail
...

$ head -n 30 /usr/bin/clawsker
#!/usr/bin/perl -w
#
# Clawsker :: A Claws Mail Tweaker
# Copyright 2007-2018 Ricardo Mones <ricardo@mones.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# See COPYING file for license details.
# See AUTHORS file for a complete list of contributors.
#

binmode STDOUT, ":encoding(utf8)";

use 5.010_000;
use strict;
use utf8;
use version 0.77;
use Glib qw(TRUE FALSE);
use Gtk3;
use File::Which;
use File::Spec::Functions;
use POSIX qw(setlocale);
use Locale::gettext;
use Encode;
use Digest::MD5 qw(md5_hex);
use Getopt::Long;

According to the above output, clawsker needs perl-file-which and perl-gtk3. Which are missing from the current version available in extra.

Steps to reproduce:
$ clawsker
Can't locate Gtk3.pm in @INC (you may need to install the Gtk3 module) (@INC contains: /usr/lib/perl5/5.28/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.28/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.28/core_perl /usr/share/perl5/core_perl) at /usr/bin/clawsker line 22.
BEGIN failed--compilation aborted at /usr/bin/clawsker line 22.

$ sudo pacman -S perl-gtk3
...

$ clawsker
Can't locate File/Which.pm in @INC (you may need to install the File::Which module) (@INC contains: /usr/lib/perl5/5.28/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.28/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.28/core_perl /usr/share/perl5/core_perl) at /usr/bin/clawsker line 23.
BEGIN failed--compilation aborted at /usr/bin/clawsker line 23.

$ sudo pacman -S perl-file-which
...

$ clawsker
Use of uninitialized value $fver[2] in string eq at /usr/bin/clawsker line 298.
Invalid version string at /usr/bin/clawsker line 298.

In my opinion that last error is an upstream bug, due to incompatibilities with the current perl version, but that's another matter. I've filed https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4139 for that.

Advise on fixing clawsker would be welcome and appreciated.

Regards
This task depends upon

Closed by  Tobias Powalowski (tpowa)
Tuesday, 12 March 2019, 13:52 GMT
Reason for closing:  Fixed
Comment by helle vaanzinn (glitsj16) - Friday, 21 December 2018, 21:38 GMT
Follow-up: Forget about the upstream bug, a buggy PATH was throwing me off in that context. Still, I can only get clawsker running after installing perl-file-which and perl-gtk3.
Comment by marcin82 (marcin82) - Wednesday, 16 January 2019, 15:46 GMT
Confirm. After Installing two packages mentioned above program runs as expected.

Loading...