bugMHonArc - Bugs: bug #32987, Lots of deprecation warnings with...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #32987: Lots of deprecation warnings with Perl 5.12

Submitter:  Thomas Jost <schnouki>
Submitted:  Sun 03 Apr 2011 02:09:52 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Undesired Behavior
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Operating System:  Linux Perl Version:  5.12.3
Component Version:  2.6.18 Fixed Release:  2.6.19

Sat 19 Jan 2013 02:55:01 PM UTC, comment #2: 

Attached patch will solve the error messages.
You can test it by "perl -wc".

Hiroaki KOBAYASHI <hkoba>
Sun 29 Jan 2012 07:51:36 PM UTC, comment #1: 

I added 'no warnings qw(deprecated)' pragmas to files affected.

Will investigate if removal of defined(%hash) usage is safe
at a later date.

Ran some quick tests with perl 5.14, and pragmas suppressed
the warnings and mhonarc appears to function as expected.

Changes available in the latest snapshot build.

Earl Hood <ehood>
Group administrator
Sun 03 Apr 2011 02:09:52 PM UTC, original submission:  

Hi,

I'm using mhonarc on Arch Linux with Perl 5.12.3.
When I run mhonarc, I have the following messages:


/usr/bin/mhonarc \
    -outdir ... \
    -mhpattern '^[^\.]' \
    -add .../cur \
    -add .../new \
    -rcfile .../my.mrc \
    -title "..." \
    -ttitle "..." \
    -tlevels 5 \
    -sort -reverse \
    -htmlext "php" -nodoc \
    -lang fr_FR -quiet
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/mhamain.pl line 1564.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/mhopt.pl line 867.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 120.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 122.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 156.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 158.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 183.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 185.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 199.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 209.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 223.
        (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /home/schnouki/test/mhonarc/pkg/usr//share/perl5/site_perl/readmail.pl line 234.
        (Maybe you should just omit the defined()?)


(The /home/.../pkg/usr/ is the build path for the package; the real files are actually installed in /usr/share/perl5/site_perl.)

When running it in a script called by cron, I have to run mhonarc through "perl -X" to disable all warnings.

Thomas Jost <schnouki>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #27303:  mhonarc-depre-warn-fix.patch added by hkoba (2KiB - text/x-patch - How about just omitting "defined()", as adviced in error diag?)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hkoba (Updated the item)
  • -email is unavailable- added by ehood (Posted a comment)
  • -email is unavailable- added by schnouki (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-22 ehood StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Fixed Release 2.6.19
    2013-01-19 hkoba Attached File- Added mhonarc-depre-warn-fix.patch, #27303
    2012-01-29 ehood StatusNone In Progress

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code