Use of qw(...) as parentheses is deprecated at /usr/share/perl5/Bugzilla/Bug.pm line 1085.

Bug #1057217 reported by Dan Kortschak
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
bugzilla (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

$ apt-cache policy bugzilla3
bugzilla3:
  Installed: 3.2.5.1-2
  Candidate: 3.2.5.1-2
  Version table:
 *** 3.2.5.1-2 0
        100 /var/lib/dpkg/status
$ lsb_release -r
Release: 12.04

I see these warnings in the cron burble mails:

<snip>
/etc/cron.daily/bugzilla3:
defined(%hash) is deprecated at /usr/share/perl5/Bugzilla/Install/Localconfig.pm line 254.
        (Maybe you should just omit the defined()?)
Use of uninitialized value in lc at /usr/share/perl5/Bugzilla/Search.pm line 283.
Use of uninitialized value in lc at /usr/share/perl5/Bugzilla/Search.pm line 284.
Use of uninitialized value in lc at /usr/share/perl5/Bugzilla/Search.pm line 283.
Use of uninitialized value in lc at /usr/share/perl5/Bugzilla/Search.pm line 284.
Use of uninitialized value in lc at /usr/share/perl5/Bugzilla/Search.pm line 283.
Use of uninitialized value in lc at /usr/share/perl5/Bugzilla/Search.pm line 284.
Use of uninitialized value in lc at /usr/share/perl5/Bugzilla/Search.pm line 283.
Use of uninitialized value in lc at /usr/share/perl5/Bugzilla/Search.pm line 284.
defined(%hash) is deprecated at /usr/share/perl5/Bugzilla/Install/Localconfig.pm line 254.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/share/perl5/Bugzilla/Install/Localconfig.pm line 254.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/share/perl5/Bugzilla/Install/Localconfig.pm line 254.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/share/perl5/Bugzilla/Install/Localconfig.pm line 254.
        (Maybe you should just omit the defined()?)
Use of qw(...) as parentheses is deprecated at /usr/share/perl5/Bugzilla/Bug.pm line 1085.

Suggest

--- a/usr/share/perl5/Bugzilla/Bug.pm 2012-09-27 09:29:01.179924227 +0930
+++ b/usr/share/perl5/Bugzilla/Bug.pm 2012-09-27 09:29:18.524140928 +0930
@@ -1082,7 +1082,7 @@

     my %deps_in = (dependson => $depends_on || '', blocked => $blocks || '');

- foreach my $type qw(dependson blocked) {
+ foreach my $type (qw(dependson blocked)) {
         my @bug_ids = split(/[\s,]+/, $deps_in{$type});
         # Eliminate nulls.
         @bug_ids = grep {$_} @bug_ids;

to silence this, though there are many other cases of this usage throughout.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in bugzilla (Ubuntu):
status: New → Confirmed
Revision history for this message
Marco van Hulten (marco-hulten) wrote :

Confirmed in Bugzilla 3.6.2.0 (under Debian 7.3), at least the last line of the cron message:

Use of qw(...) as parentheses is deprecated at /usr/share/perl5/Bugzilla/CGI.pm line 175.
Use of qw(...) as parentheses is deprecated at /usr/share/perl5/Bugzilla/Bug.pm line 1254.
[repeating]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.