rpmbuild command (through the script /usr/lib/rpm/find-requires) gets some bad perl requires
Issue
In RHEL7.1, the rpmbuild command (through the script /usr/lib/rpm/find-requires) gets some bad perl requires.
To reproduce the behavious :
1/ Create a file test containing:
#!/usr/bin/perl
use AAA;
use BBB;
# use CCC is a comment and should not be part of requires
sub get_help
{
return <<EOT;
This text is a help and if it contains something like
use DDD , it should not be part of requires
or like
use EEE , it should not be part of requires
EOT
}
2/ Run the command:
$ echo test | /usr/lib/rpm/find-requires
/usr/bin/perl
perl(AAA)
perl(BBB)
perl(DDD)
perl(EEE)
The DDD and EEE should not be part of requires !
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
