Bug 1087027

Summary: starting renrot displays perl warning
Product: [Fedora] Fedora Reporter: mathias.f
Component: renrotAssignee: Andy Shevchenko <andy.shevchenko>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 20CC: andy.shevchenko
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-06-30 00:59:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description mathias.f 2014-04-13 06:56:04 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:
everytime

Steps to Reproduce:
1. start renrot (e. g. renrot --mtime --name-template="%Y-%m-%d_%Hh%M-%S" --extension JPG -d )

Actual results:
program runs fine, but perl displays a warning everytime a new file is processed:

defined(%hash) is deprecated at /usr/bin/renrot line 44 (#1)
    (D deprecated) defined() is not usually right on hashes and has been
    discouraged since 5.004.
    
    Although defined %hash is false on a plain not-yet-used hash, it
    becomes true in several non-obvious circumstances, including iterators,
    weak references, stash names, even remaining true after undef %hash.
    These things make defined %hash fairly useless in practice.
    
    If a check for non-empty is what you wanted then just put it in boolean
    context (see "Scalar values" in perldata):
    
        if (%hash) {
           # not empty
        }
    
    If you had defined %Foo::Bar::QUUX to check whether such a package
    variable exists then that's never really been reliable, and isn't
    a good way to enquire about the features of a package, or whether
    it's loaded, etc.
    
	(Maybe you should just omit the defined()?)

Expected results:
no warning message

Additional info:
manually changing the line 44 clears the warning

Comment 1 Fedora End Of Life 2015-05-29 11:33:23 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 2 Fedora End Of Life 2015-06-30 00:59:24 UTC
Fedora 20 changed to end-of-life (EOL) status on 2015-06-23. Fedora 20 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 3 Andy Shevchenko 2016-02-17 13:41:41 UTC

*** This bug has been marked as a duplicate of bug 1308425 ***