Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
Summary: cpanspec nearly always misses the BuildRequires: perl(Test::More)
https://bugzilla.redhat.com/show_bug.cgi?id=461350
Summary: cpanspec nearly always misses the BuildRequires: perl(Test::More) Product: Fedora Version: rawhide Platform: All OS/Version: Linux Status: NEW Severity: medium Priority: medium Component: cpanspec AssignedTo: steve@silug.org ReportedBy: berrange@redhat.com QAContact: extras-qa@fedoraproject.org CC: fedora-perl-devel-list@redhat.com Estimated Hours: 0.0 Classification: Fedora
Description of problem: cpanspec nearly always misses the BuildRequires: perl(Test::More) for test suite files.
I imagine this is because the 'use' statement often has trailing arguments
use Test::More tests => 19;
instead of a more usual
use Test::More;
It'd be very helpful if cpanspec picked up this style, because then nearly all its autogenerated specs would be correct.
Version-Release number of selected component (if applicable): cpanspec-1.77-1.fc9.noarch
How reproducible: Often
Steps to Reproduce: 1. cpanspec Data-Section-0.005.tar.gz 2. 3.
Actual results: Missing BuildRequires: perl(Test::More)
Expected results: All BuildRequires are correct
Additional info:
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
Bug Zapper fedora-triage-list@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|rawhide |10
Steven Pritchard steve@silug.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #1 from Bug Zapper fedora-triage-list@redhat.com 2008-11-25 21:58:46 EDT ---
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'.
More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
--- Comment #2 from Steven Pritchard steve@silug.org 2009-01-16 16:33:59 EDT --- Sorry I missed this before...
(In reply to comment #0)
cpanspec nearly always misses the BuildRequires: perl(Test::More) for test suite files.
I imagine this is because the 'use' statement often has trailing arguments
use Test::More tests => 19;
instead of a more usual
use Test::More;
Actually, I wish it were that simple. cpanspec only looks at CPAN metadata. If a dependency isn't in META.yml or Makefile.PL, it won't be picked up. Unfortunately, it seems like hardly anyone bothers to list Test::More as a dependency.
The only way to fix this would be to use something like Module::ScanDeps, but I've never been able to decide if that would be the right thing to do.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
--- Comment #3 from Daniel Berrange berrange@redhat.com 2009-01-18 13:11:23 EDT --- THe CPANTS test suite makes use of Module::ExtractUse which seems to do a pretty good job (at least on the modules I maintain it appears accurate). The CPANTS results also suggest that on the order of 1/3 of all modules have missing PreReqs declared in their META.yml/Makefile.PL vs their actual use. So, IMHO it'd be worth making use of module like this to extract usage.
Perhaps if this detected modules not declared in the META.yml, it could add the BR to the RPM spec, along with a comment informing the packager that they should double check this module usage manually.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
--- Comment #4 from Steven Pritchard steve@silug.org 2009-01-21 20:53:21 EDT --- (In reply to comment #3)
THe CPANTS test suite makes use of Module::ExtractUse which seems to do a pretty good job (at least on the modules I maintain it appears accurate). The CPANTS results also suggest that on the order of 1/3 of all modules have missing PreReqs declared in their META.yml/Makefile.PL vs their actual use. So, IMHO it'd be worth making use of module like this to extract usage.
How about just extracting module use from the tests? The current version in CVS ( http://cpanspec.cvs.sourceforge.net/viewvc/*checkout*/cpanspec/cpanspec/cpan... ) has a simple stab at this idea.
Interestingly, see how badly it blows up on Module::ExtractUse's tests. :-)
Perhaps if this detected modules not declared in the META.yml, it could add the BR to the RPM spec, along with a comment informing the packager that they should double check this module usage manually.
That would take more code, but it would probably be better in the long run...
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
--- Comment #5 from Bug Zapper fedora-triage-list@redhat.com 2009-11-18 03:21:49 EDT ---
This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. 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 '10'.
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 10'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 10 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
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
Bug Zapper fedora-triage-list@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |WONTFIX
--- Comment #6 from Bug Zapper fedora-triage-list@redhat.com 2009-12-18 01:22:14 EDT ---
Fedora 10 changed to end-of-life (EOL) status on 2009-12-17. Fedora 10 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.
Thank you for reporting this bug and we are sorry it could not be fixed.
Please do not reply directly to this email. All additional comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
Steven Pritchard steve@silug.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ASSIGNED Version|10 |rawhide Resolution|WONTFIX | Keywords| |Reopened
--- Comment #7 from Steven Pritchard steve@silug.org 2010-12-07 15:10:29 EST --- Re-opening... I haven't pushed a version to Fedora that adds the "fix" for this yet.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|steve@silug.org |extras-orphan@fedoraproject | |.org
--- Comment #9 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Assignee|extras-orphan@fedoraproject |psabata@redhat.com |.org |
--- Comment #10 from Fedora Admin XMLRPC Client fedora-admin-xmlrpc@redhat.com --- This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
--- Comment #11 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'.
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 19 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.
https://bugzilla.redhat.com/show_bug.cgi?id=461350
Petr Šabata psabata@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|19 |rawhide
https://bugzilla.redhat.com/show_bug.cgi?id=461350
Petr Šabata psabata@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |FutureFeature
Red Hat Bugzilla bugzilla@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Doc Type|Bug Fix |Enhancement
perl-devel@lists.fedoraproject.org