Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 157195 - perl.req does not ignore strings
perl.req does not ignore strings
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Panu Matilainen
Depends On:
  Show dependency treegraph
Reported: 2005-05-09 04:11 EDT by Tim Niemueller
Modified: 2008-07-02 21:28 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-06-12 18:17:49 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 Tim Niemueller 2005-05-09 04:11:44 EDT
Description of problem:
Consider the following snippet:

print STDOUT << "USAGE";
usage: $0
    -p port
       use non-standard port number for connection

This will result in perl(non-standard) as a requirement.

Version-Release number of selected component (if applicable):
$ rpm -q perl
$ rpm -q rpm
$ rpm -q rpm-build

How reproducible:

Steps to Reproduce:
1. Put mentioned snippet into file test.pl
2. /usr/lib/rpm/perl.req test.pl
Actual results:
Will show perl(non-standard) as a requirement.

Expected results:
Should not give perl(non-standard) as a requirement
Comment 1 Jeff Johnson 2005-08-26 22:47:47 EDT
Yep, the regexes in perl.req are fragile and will generate dependencies for tokens found after "use".
Comment 2 Matthew Miller 2006-07-10 16:33:42 EDT
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!
Comment 3 Jeff Johnson 2006-07-11 17:33:57 EDT
FWIW, the patch in bugzilla #198033 fixes a major class of problems extracting tokens after "use" in 
quoted strings.
Comment 4 Matthew Miller 2006-07-11 21:45:41 EDT
Looks like bug #198033 is a separate-but-similar issue, correct? I'm going to
move this to devel -- if anyone thinks otherwise please correct me.
Comment 5 Panu Matilainen 2007-08-10 04:47:53 EDT
Yup, the patch in #198033 doesn't help with this one even if it's similar.
Comment 6 Panu Matilainen 2007-08-22 02:35:14 EDT
Reassigning to owner after bugzilla made a mess, sorry about the noise...
Comment 7 Tim Niemueller 2008-01-19 07:41:13 EST
This one is dangling around for quite some time now. I didn't package any Perl
modules lately but doing the described test above still returns the wrong
answer. Are you going to fix this or should we close this as WONTFIX?
Comment 8 Bug Zapper 2008-05-13 21:59:30 EDT
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
Comment 9 Tim Niemueller 2008-06-12 18:17:49 EDT
There is a workaround described at http://fedoraproject.org/wiki/Packaging/Perl
so I'll close this WONTFIX. If you disagree please re-open, but this has been
open for a very long time now...
Comment 10 J. Randall Owens 2008-07-02 21:28:09 EDT
Actually, I just tried this out with the rpm-build- perl.req, and
it does not output "perl(non-standard)" (or anything else, on a very basic test
script).  I couldn't even say offhand whether it's my aforementioned #198033
patch that fixes it!  But it seems to work, one way or another.

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