[Bug 456357] New: rpm: perl.prov fails to detect $VERSION correctly on multiple assignments

bugzilla at redhat.com bugzilla at redhat.com
Wed Jul 23 04:09:56 UTC 2008


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.




https://bugzilla.redhat.com/show_bug.cgi?id=456357

           Summary: rpm: perl.prov fails to detect $VERSION correctly on
                    multiple assignments
           Product: Fedora
           Version: 9
          Platform: All
        OS/Version: Linux
            Status: NEW
          Severity: low
          Priority: low
         Component: rpm
        AssignedTo: pmatilai at redhat.com
        ReportedBy: cweyl at alumni.drew.edu
         QAContact: extras-qa at fedoraproject.org
                CC: fedora-perl-devel-
                    list at redhat.com,jnovy at redhat.com,pauln at truemesh.com


Description of problem:
When $VERSION is set twice inside the same package, the latest definition prevails.

Version-Release number of selected component (if applicable):
rpm-4.4.2.3-2.fc9.x86_64

How reproducible:
Package DateTime-Format-DBI :)  (see bug 455788)

Lines 10 and 11 of lib/DateTime/Format/DBI.pm are:
$VERSION = '0.031';
$VERSION = $VERSION + 0.0;

Note that perl.prov finds the version as "0.0".

  
Actual results:
====> provides for perl-DateTime-Format-DBI-0.031-1.fc9.noarch.rpm
perl(DateTime::Format::DBI) = 0.0
perl-DateTime-Format-DBI = 0.031-1.fc9


Expected results:
====> provides for perl-DateTime-Format-DBI-0.031-1.fc9.noarch.rpm
perl(DateTime::Format::DBI) = 0.031
perl-DateTime-Format-DBI = 0.031-1.fc9

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the Fedora-perl-devel-list mailing list