Bug#879961: disc-cover: Running disc-cover returns a Perl error message: Can't use 'defined(@array)' ...
Package: disc-cover
Version: 1.5.6-2
Severity: important
Dear Maintainer,
Trying to run 'disc-cover' command on Debian Stretch returns a Perl error :
$ disc-cover
Can't use 'defined(@array)' (Maybe you should just omit the defined()?) at /usr/bin/disc-cover line 746.
I've tried suggested action : removing 'defined' like :
--- /usr/bin/disc-cover 2006-06-20 14:16:24.000000000 +0200
+++ /tmp/disc-cover 2017-10-27 18:54:52.195819367 +0200
@@ -743,7 +743,7 @@
{
my ($error) = defined($_[0]) ? $_[0] : undef ;
shift;
- my (@solutions) = defined(@_) ? @_ : undef;
+ my (@solutions) = @_;
warn "Error: $error\n" if defined ($error);
And it seems to work.
-- System Information:
Debian Release: 9.2
APT prefers stable
APT policy: (990, 'stable'), (985, 'stable-updates'), (800, 'unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.9.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages disc-cover depends on:
ii libaudio-cd-perl 0.05-10+b3
ii perl 5.24.1-3+deb9u2
ii texlive-base 2016.20170123-5
ii texlive-fonts-recommended 2016.20170123-5
ii texlive-latex-base 2016.20170123-5
ii texlive-latex-recommended 2016.20170123-5
ii wget 1.18-5
disc-cover recommends no packages.
disc-cover suggests no packages.
-- no debconf information
Reply to: