Bug 130531 - perldeps.pl should replace perl.req, latter evaluates require v5.6 incorrectly
perldeps.pl should replace perl.req, latter evaluates require v5.6 incorrectly
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2004-08-21 01:06 EDT by Kenneth Porter
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-08-21 09:47:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Kenneth Porter 2004-08-21 01:06:17 EDT
Construct a Perl source containing:

require v5.6;

Requirements analysis results:

[buildmeister@colo2 tmp]$ /usr/lib/rpm/perl.req /tmp/foo.pl
[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 09:47:47 EDT
Configure rpm however you wish. Changing default behavior
in rpm takes forever these days ...
Comment 2 James Olin Oden 2004-08-21 13:23:13 EDT
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?

Comment 3 Kenneth Porter 2004-10-08 11:06:37 EDT
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.

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