Bug#758287: apt-show-versions: Warning "keys on reference is experimental" with Perl 5.20

2014-08-19 Thread Axel Beckert
Control: tag -1 + patch

Hi,

Axel Beckert wrote:
> since Perl 5.20, apt-show-versions throws the following Perl warnings
> upon each invocation:
> 
> $ apt-show-versions > /dev/null
> keys on reference is experimental at /usr/bin/apt-show-versions line 264.
> keys on reference is experimental at /usr/bin/apt-show-versions line 359.
> $

Here's a patch for that:

diff -Nru apt-show-versions-0.22.3/apt-show-versions 
apt-show-versions-0.22.3+758287/apt-show-versions
--- apt-show-versions-0.22.3/apt-show-versions  2013-09-30 13:52:12.0 
+0200
+++ apt-show-versions-0.22.3+758287/apt-show-versions   2014-08-19 
23:47:29.0 +0200
@@ -258,7 +258,7 @@
 or $cache_file_corrupt) {
 my ($href, $release) = &parse_file ($_);
 foreach my $pkg (keys %$href) {
-foreach my $arch (keys $href->{$pkg}) {
+foreach my $arch (keys %{$href->{$pkg}}) {
 $apackages->{$pkg}{$arch}{$release} = $href->{$pkg}{$arch};
 }
}
@@ -353,7 +353,7 @@
 printf("%s not installed (not available)\n", $pkgname);
 }
 } else {
-foreach my $arch ($archname or sort keys $pkgs->{$pkgname}) {
+foreach my $arch ($archname or sort keys %{$pkgs->{$pkgname}}) {
 print_package_internal($pkgname, $arch);
 }
 }

Regards, Axel
-- 
 ,''`.  |  Axel Beckert , http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE
  `-|  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#758287: apt-show-versions: Warning "keys on reference is experimental" with Perl 5.20

2014-08-17 Thread Vincent Lefevre
Control: severity -1 important

On 2014-08-16 12:23:13 +0200, Axel Beckert wrote:
> since Perl 5.20, apt-show-versions throws the following Perl warnings
> upon each invocation:
> 
> $ apt-show-versions > /dev/null
> keys on reference is experimental at /usr/bin/apt-show-versions line 264.
> keys on reference is experimental at /usr/bin/apt-show-versions line 359.
> $
> 
> According to
> http://perldoc.perl.org/perldiag.html#keys-on-reference-is-experimental
> this feature "may change or be removed in a future Perl version", hence
> the severity of this bug report may be raised to RC in the future.

I'm raising the severity to important now because it corrupts the
display of aptitude when doing an update; due to that, aptitude
still says "Loading cache" and appears to be frozen (though this
disappears after a Ctrl-L). This is very confusing.

IMHO, this bug should really be fixed before the next release.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Bug#758287: apt-show-versions: Warning "keys on reference is experimental" with Perl 5.20

2014-08-16 Thread Axel Beckert
Package: apt-show-versions
Version: 0.22.3
User: debian-p...@lists.debian.org
Usertags: perl-5.20-transition

Hi,

since Perl 5.20, apt-show-versions throws the following Perl warnings
upon each invocation:

$ apt-show-versions > /dev/null
keys on reference is experimental at /usr/bin/apt-show-versions line 264.
keys on reference is experimental at /usr/bin/apt-show-versions line 359.
$

According to
http://perldoc.perl.org/perldiag.html#keys-on-reference-is-experimental
this feature "may change or be removed in a future Perl version", hence
the severity of this bug report may be raised to RC in the future.

See http://perldoc.perl.org/perldelta.html#New-Warnings for reasoning
and background.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (400, 'stable'), (110, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.15-trunk-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apt-show-versions depends on:
ii  apt  1.0.6
ii  libapt-pkg-perl  0.1.29+b2
ii  perl [libstorable-perl]  5.20.0-4

apt-show-versions recommends no packages.

apt-show-versions suggests no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org