Bug 106672 - Typo in /usr/lib/rpm/perl.req
Summary: Typo in /usr/lib/rpm/perl.req
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm   
(Show other bugs)
Version: 9
Hardware: i386 Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: Mike McLean
Depends On:
TreeView+ depends on / blocked
Reported: 2003-10-09 13:47 UTC by Jon Warbrick
Modified: 2007-04-18 16:58 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-12-26 19:03:10 UTC
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 04:00:00 UTC

Description Jon Warbrick 2003-10-09 13:47:32 UTC
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 19:03:10 UTC
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 04:27:17 UTC
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.