From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.4.1) Gecko/20031030 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: $INFO =<<"_INFO"; You can use this script to test the bug in perl.req _INFO And if the block contains a line beginning with "use "(ignoring leading spaces and tabulars), perl.req will generate requirement like perl(this) The bug should exist in older versions of rpm. Version-Release number of selected component (if applicable): rpm-build-4.2.1-0.30 How reproducible: Always 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: perl(this) Expected Results: no such lines Additional info: You can test it using the source rpm MySQL-4.0.16-0.src.rpm from www.mysql.com, rpmbuild will generate requirements like perl(this) perl(the) 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 perldeps.pl {--provides|--requires}
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. http://rhn.redhat.com/errata/RHBA-2004-098.html