Bug 27421

Summary: find-requires: fails on #!/usr/bin/perl -w -- -*-cperl-*-
Product: Sisyphus Reporter: viy <viy>
Component: rpm-build-perlAssignee: at <at>
Status: NEW --- QA Contact: qa-sisyphus
Severity: normal    
Priority: P3 CC: at, crux, ldv, viy
Version: unstable   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
An example src.rpm file none

Description viy 2012-06-07 22:19:23 MSK
Created attachment 5484 [details]
An example src.rpm file

find-requires: fails on the header #!/usr/bin/perl -w -- -*-cperl-*-

Finding Requires (using /usr/lib/rpm/find-requires)
Executing: /bin/sh -e /usr/src/tmp/rpm-tmp.ibilKk
find-requires: running scripts (cpp,debuginfo,files,lib,pam,perl,pkgconfig,pkgconfiglib,python,rpmlib,shebang,shell,static,symlinks)
Unrecognized switch: -*-cperl-*-  (-h will show valid options).
# /usr/src/tmp/perl-XML-Simple-DTDReader-buildroot/usr/share/perl5/XML/Simple/DTDReader.pm: deparse failed, trying to recover with -MXML::Simple
Unrecognized switch: -*-cperl-*-  (-h will show valid options).
# /usr/src/tmp/perl-XML-Simple-DTDReader-buildroot/usr/share/perl5/XML/Simple/DTDReader.pm: deparse failed. prefix=/usr/src/tmp/perl-XML-Simple-DTDReader-buildroot/usr/share/perl5
find-requires: ERROR: /usr/lib/rpm/perl.req failed
error: /bin/sh failed
error: Failed to find Requires