Bug 456357 - rpm: perl.prov fails to detect $VERSION correctly on multiple assignments
Summary: rpm: perl.prov fails to detect $VERSION correctly on multiple assignments
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-generators
Version: rawhide
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 694496
TreeView+ depends on / blocked
 
Reported: 2008-07-23 04:09 UTC by Chris Weyl
Modified: 2020-10-31 22:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
the highest $VERSION from file is used (886 bytes, patch)
2011-03-24 13:26 UTC, Marcela Mašláňová
no flags Details | Diff

Description Chris Weyl 2008-07-23 04:09:55 UTC
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

Comment 1 Bug Zapper 2009-06-10 02:11:17 UTC
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  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 WONTFIX if it remains open with a Fedora 
'version' of '9'.

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 prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 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 please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

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.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Bug Zapper 2009-11-16 08:09:56 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Marcela Mašláňová 2011-03-24 13:26:17 UTC
Created attachment 487328 [details]
the highest $VERSION from file is used

The value of $VERSION will be evaluated and only the highest defined version will be used as provided. This could fix possible typos by upstream and also bug with adding +0.0 value, which was interpreted as provided version 0.0.

Comment 4 Fedora Admin XMLRPC Client 2012-04-13 23:08:16 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 5 Fedora Admin XMLRPC Client 2012-04-13 23:11:40 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 6 Panu Matilainen 2014-06-25 15:52:44 UTC
Mmh, somewhere down the line this has gotten a patch that's fallen through the cracks, sorry about that :-/

Reassigning to perl-generators where this'll hopefully get more attention.


Note You need to log in before you can comment on or make changes to this bug.