Bug 27421 - find-requires: fails on #!/usr/bin/perl -w -- -*-cperl-*-
Summary: find-requires: fails on #!/usr/bin/perl -w -- -*-cperl-*-
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: rpm-build-perl (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: at@altlinux.org
QA Contact: qa-sisyphus
Depends on:
Reported: 2012-06-07 22:19 MSK by viy
Modified: 2012-06-07 22:19 MSK (History)
4 users (show)

See Also:

An example src.rpm file (13.05 KB, application/x-rpm)
2012-06-07 22:19 MSK, viy
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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