Bug 106672 - Typo in /usr/lib/rpm/perl.req
Typo in /usr/lib/rpm/perl.req
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Mike McLean
Depends On:
  Show dependency treegraph
Reported: 2003-10-09 09:47 EDT by Jon Warbrick
Modified: 2007-04-18 12:58 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-12-26 14:03:10 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2004:098 normal SHIPPED_LIVE Updated rpm package fixes several bugs 2004-05-12 00:00:00 EDT

  None (edit)
Description Jon Warbrick 2003-10-09 09:47:32 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030703

Description of problem:
The RE 

is used in an attempt to strip anything in brackets from a posible module name.
It should be 


(note the extra dot). This bug results in a bogus dependancy, for example for
the FakeApache.pm component of HTML::Mason

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Obtain and unpack (e.g.)
2.Rin /usr/lib/rpm/perl.req HTML-Mason-1.23/lib/HTML/Mason/FakeApache.pm
3.Note (bogus) perl(HTML::Mason::MethodMaker(read_write) dependancy

Actual Results:  perl(HTML::Mason::MethodMaker(read_write)

Expected Results:  perl(HTML::Mason::MethodMaker)

Additional info:

Folowing patch fixes:

*** /usr/lib/rpm/perl.req.orig	2003-10-09 14:02:42.000000000 +0100
--- /usr/lib/rpm/perl.req	2003-10-09 14:27:37.000000000 +0100
*** 170,176 ****
        # sometimes people do use POSIX qw(foo), or use POSIX(qw(foo)) etc
        # we can strip qw.*$, as well as (.*$:
        $module =~ s/qw.*$//;
!       $module =~ s/\(*$//;
        $module =~ s/\.pm$//;
--- 170,176 ----
        # sometimes people do use POSIX qw(foo), or use POSIX(qw(foo)) etc
        # we can strip qw.*$, as well as (.*$:
        $module =~ s/qw.*$//;
!       $module =~ s/\(.*$//;
        $module =~ s/\.pm$//;
Comment 1 Jeff Johnson 2003-12-26 14:03:10 EST
Hmmm, I swear I just closed this ...

FIxed in CVS, should be in rpm-4.2.2-0.8 and later.

Note: perl.req is being replaced with perldeps.pl soonish.
Comment 2 John Flanagan 2004-05-12 00:27:17 EDT
An errata has been issued which should help the problem described in this bug report. 
This report is therefore being closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, please follow the link below. You may reopen 
this bug report if the solution does not work for you.


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