Bug 130531

Summary: perldeps.pl should replace perl.req, latter evaluates require v5.6 incorrectly
Product: [Fedora] Fedora Reporter: Kenneth Porter <shiva>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED NOTABUG QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: nobody+pnasrat
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: 2004-08-21 13:47:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Kenneth Porter 2004-08-21 05:06:17 UTC
Construct a Perl source containing:

require v5.6;

Requirements analysis results:

[buildmeister@colo2 tmp]$ /usr/lib/rpm/perl.req /tmp/foo.pl
perl(v5.6)
[buildmeister@colo2 tmp]$ /usr/lib/rpm/perldeps.pl --requires /tmp/foo.pl
perl >= 0:v5.6

(For lurkers, see "perldoc -f require" for more on version strings in
require statements.)

In /usr/lib/rpm/macros for rpm-4.3.1-0.3 (current for FC2) is:

#%__perl_requires       /usr/lib/rpm/perldeps.pl --requires
%__perl_requires        /usr/lib/rpm/perl.req

I note in bug 106672 that Jeff Johnson promises perl.req to be
replaced with perldeps.pl "soonish". Here's some more ammunition to do
so. Meanwhile, is there any good reason for packagers not to reverse
the commenting in the global macros file?

Comment 1 Jeff Johnson 2004-08-21 13:47:47 UTC
Configure rpm however you wish. Changing default behavior
in rpm takes forever these days ...

Comment 2 James Olin Oden 2004-08-21 17:23:13 UTC
Here is a general question concring perldeps.pl.  The old perl.req 
actually picked up the versions of libraries such that provides were 
versioned, and it tried to generate versioned requires. perldeps.pl 
does not do this.  Regardless of whether this is the default vehicle 
for generating perl deps (like Jeff said you can configure it however 
you want), would you or other lurkers prefer perldeps.pl to try to 
pick the provides and requires version information?

Cheers...james

Comment 3 Kenneth Porter 2004-10-08 15:06:37 UTC
Watch out, perldeps.pl --provides fails to supply "perl(Package)" when
building CPAN packages with RPM::Specfile 1.17. RPM is rpm-4.3.1-0.3.
Dependent packages will then complain about the missing dependency.