From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.4.1)
Description of problem:
A bug in /usr/lib/rpm/perl.req causes rpm to generate extra
requirements for perl scripts: if a perl script contains variable
definitions like this:
use this script to test the bug in perl.req
And if the block contains a line beginning with "use "(ignoring
leading spaces and tabulars), perl.req will generate requirement like
The bug should exist in older versions of rpm.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.write a perl script that contains a block described in the
'description', save it as 'test.pl'
2.run 'echo test.pl | /usr/lib/rpm/perl.req
Actual Results: the result contains a line like:
Expected Results: no such lines
You can test it using the source rpm MySQL-4.0.16-0.src.rpm from
www.mysql.com, rpmbuild will generate requirements like
for the MySQL-client and MySQL-bench rpms.
Created attachment 95938 [details]
A patch to perl.req
Added to CVS, should be in rpm-4.2.2-0.8 and later.
Note that perl.req is being phased out, replace with
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.